ci: run governance gate advisory until Tier 2, skip scorecard while p… #2
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: OpenSSF Scorecard | |
| on: | |
| branch_protection_rule: | |
| schedule: | |
| - cron: '30 4 * * 1' | |
| push: | |
| branches: | |
| - main | |
| permissions: read-all | |
| jobs: | |
| scorecard: | |
| runs-on: ubuntu-latest | |
| # Scorecard requires a public repo. Skip (neutral) while private; this runs | |
| # for real once the repo is made public at launch. | |
| if: github.event.repository.visibility == 'public' | |
| permissions: | |
| security-events: write | |
| id-token: write | |
| contents: read | |
| actions: read | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v7 | |
| with: | |
| persist-credentials: false | |
| fetch-depth: 0 | |
| - name: Run Scorecard | |
| uses: ossf/scorecard-action@4eaacf0543bb3f2c246792bd56e8cdeffafb205a # v2.4.3 | |
| with: | |
| results_file: scorecard-results.sarif | |
| results_format: sarif | |
| # publish_results requires a public repo; flip to true after the | |
| # 2026-06-23 public launch. | |
| publish_results: false | |
| - name: Upload SARIF | |
| uses: github/codeql-action/upload-sarif@v4 | |
| with: | |
| sarif_file: scorecard-results.sarif |