chore: release v0.11.8 #306
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: OpenSSF Scorecard | |
| on: | |
| push: | |
| branches: [main] | |
| schedule: | |
| # Run weekly so the score stays current on scorecard.dev | |
| - cron: '30 3 * * 1' # Mondays 03:30 UTC | |
| workflow_dispatch: | |
| permissions: read-all | |
| jobs: | |
| scorecard: | |
| name: OpenSSF Scorecard | |
| runs-on: ubuntu-latest | |
| permissions: | |
| id-token: write # publish results to OpenSSF REST API (public badge) | |
| contents: read | |
| steps: | |
| - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 | |
| with: | |
| persist-credentials: false | |
| - name: Run OpenSSF Scorecard | |
| uses: ossf/scorecard-action@2d1146689b8cda280b9bc96326124645441f03bc # v2.4.4 | |
| with: | |
| results_file: scorecard-results.sarif | |
| results_format: sarif | |
| # Publish to https://scorecard.dev/viewer/?uri=github.com/aleksUIX/vastlint | |
| # so the live badge pulls a real score | |
| publish_results: true | |
| - name: Upload raw Scorecard SARIF artifact | |
| uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7.0.1 | |
| with: | |
| name: scorecard-results-sarif | |
| path: scorecard-results.sarif | |
| upload-scorecard-sarif: | |
| name: Upload filtered Scorecard SARIF | |
| runs-on: ubuntu-latest | |
| needs: scorecard | |
| permissions: | |
| security-events: write | |
| steps: | |
| - name: Download raw Scorecard SARIF artifact | |
| uses: actions/download-artifact@3e5f45b2cfb9172054b4087a40e8e0b5a5461e7c # v8.0.1 | |
| with: | |
| name: scorecard-results-sarif | |
| path: . | |
| - name: Filter non-remediable Maintained finding from Security tab SARIF | |
| shell: bash | |
| run: | | |
| jq '(.runs[]?.results) |= map(select(.ruleId != "Maintained")) | | |
| (.runs[]?.tool.driver.rules) |= map(select(.id != "Maintained"))' \ | |
| scorecard-results.sarif > scorecard-results.filtered.sarif | |
| - name: Upload filtered SARIF to GitHub Security tab | |
| uses: github/codeql-action/upload-sarif@5595ccaf912efad79be6eef63a5619ff05969be3 # v4.37.6 | |
| with: | |
| sarif_file: scorecard-results.filtered.sarif |