Scorecards supply-chain security #208
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
--- | |
# Reference: https://github.com/ossf/scorecard/blob/main/.github/workflows/scorecard-analysis.yml | |
name: Scorecards supply-chain security | |
on: | |
push: | |
# Only the default branch is supported. | |
branches: | |
- main | |
schedule: | |
# Weekly on Saturdays. | |
- cron: '30 1 * * 6' | |
permissions: read-all | |
jobs: | |
analysis: | |
name: Scorecards analysis | |
runs-on: ubuntu-latest | |
permissions: | |
security-events: write | |
id-token: write | |
# Uncomment the permissions below if installing in a private repository. | |
# contents: read | |
# actions: read | |
steps: | |
- name: "Checkout code" | |
uses: actions/checkout@v4 | |
with: | |
persist-credentials: false | |
- name: "Run analysis" | |
uses: ossf/scorecard-action@62b2cac7ed8198b15735ed49ab1e5cf35480ba46 # v2.4.0 | |
with: | |
results_file: results.sarif | |
results_format: sarif | |
publish_results: true | |
# Upload the results as artifacts (optional). | |
- name: "Upload artifact" | |
uses: actions/upload-artifact@v4 | |
with: | |
name: SARIF file | |
path: results.sarif | |
retention-days: 7 | |
# Upload the results to GitHub's code scanning dashboard. | |
- name: "Upload to code-scanning" | |
uses: github/codeql-action/upload-sarif@4f3212b61783c3c68e8309a0f18a699764811cda # v3.27.1 | |
with: | |
sarif_file: results.sarif |