chore(deps): bump github/codeql-action/upload-sarif (#100) #24
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 | |
| permissions: read-all | |
| on: # yamllint disable-line rule:truthy | |
| branch_protection_rule: | |
| schedule: | |
| # Weekly on Mondays at 9:17 AM UTC (avoiding :00/:30 for API load distribution) | |
| - cron: '17 9 * * 1' | |
| push: | |
| branches: | |
| - main | |
| workflow_dispatch: | |
| jobs: | |
| analysis: | |
| name: Scorecard Analysis | |
| runs-on: ubuntu-latest | |
| permissions: | |
| security-events: write # Upload SARIF results to GitHub Security tab | |
| id-token: write # Publish results to OpenSSF API | |
| contents: read # Read repository contents | |
| actions: read # Read workflow configurations | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0 | |
| with: | |
| persist-credentials: false | |
| - name: Run OpenSSF Scorecard | |
| uses: ossf/scorecard-action@2d1146689b8cda280b9bc96326124645441f03bc # v2.4.4 | |
| with: | |
| results_file: results.sarif | |
| results_format: sarif | |
| publish_results: true | |
| - name: Upload SARIF results to Security tab | |
| uses: github/codeql-action/upload-sarif@ff2f1c621b7f889edc0d3c761ac2e6a3f8cdb0dd # v3 | |
| with: | |
| sarif_file: results.sarif | |
| - name: Upload Scorecard results as artifact | |
| uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7.0.1 | |
| with: | |
| name: scorecard-results | |
| path: results.sarif | |
| retention-days: 30 |