Scorecard supply-chain security #622
This file contains 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 supply-chain security | |
on: | |
schedule: | |
# Non-peak hour 23:15 on Tuesdays. | |
- cron: '15 23 * * 1' | |
push: | |
branches: [ "main" ] | |
permissions: read-all | |
concurrency: | |
group: ${{ github.workflow }}-${{ github.ref }} | |
cancel-in-progress: ${{ github.ref != 'refs/heads/main' }} | |
jobs: | |
analysis: | |
name: Scorecard analysis | |
runs-on: ubuntu-24.04 | |
permissions: | |
security-events: write | |
id-token: write | |
timeout-minutes: 5 | |
steps: | |
- name: Checkout | |
uses: >- # v4.1.7 | |
actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 | |
with: | |
persist-credentials: false | |
- name: Run analysis | |
uses: >- # v2.4.0 | |
ossf/scorecard-action@62b2cac7ed8198b15735ed49ab1e5cf35480ba46 | |
with: | |
results_file: results.sarif | |
results_format: sarif | |
publish_results: true | |
- name: Upload artifact | |
uses: >- # v4.4.0 | |
actions/upload-artifact@50769540e7f4bd5e21e526ee35c689e35e0d6874 | |
with: | |
name: SARIF file | |
path: results.sarif | |
retention-days: 5 | |
- name: Upload to code-scanning | |
uses: >- # v3.26.6 | |
github/codeql-action/upload-sarif@4dd16135b69a43b6c8efb853346f8437d92d3c93 | |
with: | |
sarif_file: results.sarif |