OSSF Scorecard #42
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: OSSF Scorecard | |
| on: | |
| # See https://github.com/ossf/scorecard/blob/main/docs/checks.md#maintained | |
| schedule: | |
| - cron: '0 12 * * 3' | |
| push: | |
| branches: ["main"] | |
| permissions: {} | |
| concurrency: | |
| group: ${{ github.workflow }}-${{ github.ref }} | |
| cancel-in-progress: false | |
| jobs: | |
| analysis: | |
| name: Scorecard analysis | |
| runs-on: ubuntu-24.04 | |
| permissions: | |
| contents: read # Required to clone the repo | |
| security-events: write # Required to publish SARIF results to code scanning (codeql-action/upload-sarif) | |
| id-token: write # Required for OIDC verification when publishing (ossf/scorecard-action) | |
| actions: read # Required to read workflow metadata (ossf/scorecard-action) | |
| issues: read # Required for issue queries (ossf/scorecard-action) | |
| pull-requests: read # Required for the Branch-Protection check (ossf/scorecard-action) | |
| checks: read # Required for SAST detection checks (ossf/scorecard-action) | |
| steps: | |
| - name: Harden the runner | |
| uses: step-security/harden-runner@9af89fc71515a100421586dfdb3dc9c984fbf411 # v2.19.4 | |
| with: | |
| egress-policy: audit | |
| - name: Checkout code | |
| uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 | |
| 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 | |
| # Upload the results to GitHub's code scanning dashboard | |
| - name: Upload to code-scanning | |
| uses: github/codeql-action/upload-sarif@7211b7c8077ea37d8641b6271f6a365a22a5fbfa # v4.36.0 | |
| with: | |
| sarif_file: results.sarif |