name: Scorecard # OpenSSF Scorecard: rates the repo's supply chain practices (pinned # dependencies, token permissions, branch protection, code review, ...). # Results go to Security > Code scanning and to the README badge. on: push: branches: [main] branch_protection_rule: schedule: - cron: "41 4 * * 1" permissions: read-all jobs: analysis: name: Scorecard analysis runs-on: ubuntu-latest permissions: security-events: write # the results to code scanning id-token: write # publishing the results for the badge steps: - name: Check out code uses: actions/checkout@11d5960a326750d5838078e36cf38b85af677262 # v4.4.0 with: persist-credentials: false - name: Run analysis uses: ossf/scorecard-action@fa7117db83c52d787ae5a89f350999701505d78e # v2.5.0 with: results_file: results.sarif results_format: sarif publish_results: true - name: Upload to code scanning uses: github/codeql-action/upload-sarif@9b3254085494b55a0f7c4c2b3d2d52cc712ce370 # v4.39.1 with: sarif_file: results.sarif