Scorecard analysis #20
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
| # OpenSSF Scorecard — https://securityscorecards.dev/ | |
| # Based on https://github.com/ossf/scorecard/blob/main/.github/workflows/scorecard-analysis.yml | |
| name: Scorecard analysis | |
| on: | |
| push: | |
| branches: | |
| - main | |
| schedule: | |
| # Weekly on Saturdays | |
| - cron: '30 1 * * 6' | |
| permissions: read-all | |
| jobs: | |
| analysis: | |
| name: Scorecard analysis | |
| runs-on: ubuntu-latest | |
| permissions: | |
| # Needed for actions/checkout and scorecard analysis | |
| contents: read | |
| # Needed for Code scanning upload | |
| security-events: write | |
| # Needed for GitHub OIDC token if publish_results is true | |
| id-token: write | |
| steps: | |
| - name: Checkout code | |
| uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6 | |
| with: | |
| persist-credentials: false | |
| - name: Run analysis | |
| uses: ossf/scorecard-action@4eaacf0543bb3f2c246792bd56e8cdeffafb205a # v2.4.3 | |
| with: | |
| results_file: results.sarif | |
| results_format: sarif | |
| publish_results: true | |
| - name: Upload artifact | |
| uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7.0.1 | |
| with: | |
| name: SARIF file | |
| path: results.sarif | |
| retention-days: 5 | |
| - name: Upload to code-scanning | |
| uses: github/codeql-action/upload-sarif@7211b7c8077ea37d8641b6271f6a365a22a5fbfa # v4 | |
| with: | |
| sarif_file: results.sarif |