OpenSSF Scorecard #50
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
| # .github/workflows/scorecards.yml | |
| name: "OpenSSF Scorecard" | |
| on: | |
| branch_protection_rule: | |
| schedule: | |
| - cron: "0 7 * * 1" # Weekly Monday 07:00 UTC | |
| push: | |
| branches: [main] | |
| # NO top-level env or defaults — required by scorecard-action | |
| permissions: read-all | |
| jobs: | |
| analysis: | |
| name: "Scorecard Analysis" | |
| runs-on: ubuntu-latest | |
| permissions: | |
| security-events: write # upload SARIF | |
| id-token: write # publish results + OIDC | |
| contents: read | |
| actions: read | |
| issues: read # better detection | |
| pull-requests: read # better detection | |
| checks: read # better detection | |
| steps: | |
| - uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 | |
| with: | |
| persist-credentials: false | |
| - name: Run OpenSSF Scorecard | |
| uses: ossf/scorecard-action@62b2cac7ed8198b15735ed49ab1e5cf35480ba46 # v2.4.0 | |
| with: | |
| results_file: results.sarif | |
| results_format: sarif | |
| publish_results: true | |
| - name: Upload Scorecard SARIF | |
| uses: github/codeql-action/upload-sarif@48ab28a6f5dbc2a99bf1e0131198dd8f1df78169 # v3.28.0 | |
| with: | |
| sarif_file: results.sarif |