Bump actions/upload-artifact action to v7.0.1 (#1494) #962
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: ossf-scorecard | |
| on: | |
| branch_protection_rule: | |
| push: | |
| branches: [ main ] | |
| schedule: | |
| - cron: '0 5 * * MON' | |
| workflow_dispatch: | |
| permissions: read-all # zizmor: ignore[excessive-permissions] Recommended permissions for OSSF Scorecard | |
| jobs: | |
| analysis: | |
| name: analysis | |
| runs-on: ubuntu-latest | |
| permissions: | |
| id-token: write | |
| security-events: write | |
| steps: | |
| - name: Checkout code | |
| uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 | |
| with: | |
| filter: 'tree:0' | |
| persist-credentials: false | |
| show-progress: false | |
| - name: Run analysis | |
| uses: ossf/scorecard-action@4eaacf0543bb3f2c246792bd56e8cdeffafb205a # v2.4.3 | |
| with: | |
| publish_results: true | |
| results_file: results.sarif | |
| results_format: sarif | |
| - name: Upload artifact | |
| uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7.0.1 | |
| with: | |
| name: SARIF | |
| path: results.sarif | |
| retention-days: 5 | |
| - name: Upload to code-scanning | |
| uses: github/codeql-action/upload-sarif@c10b8064de6f491fea524254123dbe5e09572f13 # v4.35.1 | |
| with: | |
| sarif_file: results.sarif |