Repository navigation
Fix Scorecard workflow failures #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: Scorecard | |
| on: | |
| push: | |
| branches: ["main"] | |
| pull_request: | |
| branches: ["main"] | |
| schedule: | |
| - cron: "0 2 * * 1" | |
| permissions: | |
| contents: read | |
| jobs: | |
| analysis: | |
| runs-on: ubuntu-24.04 | |
| permissions: | |
| security-events: write | |
| contents: read | |
| actions: read | |
| # Required for OIDC when publish_results is true. Publishing is | |
| # skipped automatically on pull requests (analysis only, per the | |
| # ossf/scorecard-action docs); full results publish after merge. | |
| id-token: write | |
| steps: | |
| - uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 | |
| with: | |
| persist-credentials: false | |
| - uses: ossf/scorecard-action@fa7117db83c52d787ae5a89f350999701505d78e # v2.5.0 | |
| with: | |
| results_file: results.sarif | |
| results_format: sarif | |
| publish_results: true | |
| - uses: actions/upload-artifact@cf430e030ddbb5b0abf93d22962f4752f3646cd9 # v7.0.2 | |
| with: | |
| name: scorecard-results | |
| path: results.sarif | |
| if-no-files-found: ignore |