scorecard #84
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 | |
| on: | |
| branch_protection_rule: | |
| schedule: | |
| - cron: '23 3 * * 1' | |
| push: | |
| branches: ["main"] | |
| workflow_dispatch: | |
| permissions: | |
| contents: read | |
| jobs: | |
| scorecard: | |
| runs-on: ubuntu-latest | |
| permissions: | |
| contents: read | |
| steps: | |
| - name: Checkout repository | |
| uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4 | |
| - name: Prepare scorecard artifact directory | |
| run: mkdir -p artifacts/ci/scorecard | |
| - name: Run OpenSSF Scorecard | |
| uses: ossf/scorecard-action@dc50aa9510b46c811795eb24b2f1ba02a914e534 # v2.3.3 | |
| with: | |
| repo_token: ${{ secrets.SECURITY_CLAIMS_TOKEN }} | |
| results_file: artifacts/ci/scorecard/results.sarif | |
| results_format: sarif | |
| # Intentionally do not upload SARIF to Code Scanning; Scorecard findings are kept as artifacts only. | |
| # Keep deterministic local evidence + SARIF upload, avoid remote publish rejection | |
| # when workflow permissions include security-events write for SARIF upload. | |
| publish_results: false | |
| - name: Upload Artifact | |
| if: always() | |
| uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4 | |
| with: | |
| name: ci-scorecard | |
| path: artifacts/ci/scorecard/ | |
| if-no-files-found: error |