Scorecard supply-chain security #66
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: Scorecard supply-chain security | |
| on: | |
| # Re-evaluate when branch protection rules change, since they feed the score. | |
| branch_protection_rule: | |
| schedule: | |
| - cron: '20 7 * * 1' | |
| push: | |
| branches: [main] | |
| # Read-only by default; the analysis job widens only the scopes it needs. | |
| permissions: read-all | |
| jobs: | |
| analysis: | |
| name: Scorecard analysis | |
| runs-on: ubuntu-latest | |
| permissions: | |
| # Needed to upload the SARIF results to the code-scanning dashboard. | |
| security-events: write | |
| # Needed to publish results for the public Scorecard badge / API. | |
| id-token: write | |
| steps: | |
| - name: Checkout code | |
| uses: actions/checkout@v7 | |
| with: | |
| persist-credentials: false | |
| - name: Run analysis | |
| uses: ossf/scorecard-action@v2.4.4 | |
| with: | |
| results_file: results.sarif | |
| results_format: sarif | |
| # Publishes the score to the OpenSSF API that backs the README badge. | |
| publish_results: true | |
| - name: Upload artifact | |
| uses: actions/upload-artifact@v7 | |
| with: | |
| name: SARIF file | |
| path: results.sarif | |
| retention-days: 5 | |
| - name: Upload to code-scanning | |
| uses: github/codeql-action/upload-sarif@v4 | |
| with: | |
| sarif_file: results.sarif |