Scorecards supply-chain security #763
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: Scorecards supply-chain security | |
on: | |
# For Branch-Protection check. Only the default branch is supported. See | |
# https://github.com/ossf/scorecard/blob/main/docs/checks.md#branch-protection | |
branch_protection_rule: | |
schedule: | |
# Run security checks every day at 2 AM UTC | |
- cron: "0 2 * * *" | |
workflow_dispatch: | |
permissions: {} | |
jobs: | |
analysis: | |
name: Scorecards analysis | |
runs-on: ubuntu-latest | |
permissions: | |
# Needed to upload the results to code-scanning dashboard | |
security-events: write | |
# Needed to publish results and get a badge | |
id-token: write | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0 | |
with: | |
persist-credentials: false | |
- name: Run analysis | |
uses: ossf/scorecard-action@05b42c624433fc40578a4040d5cf5e36ddca8cde # v2.4.2 | |
with: | |
results_file: results.sarif | |
results_format: sarif | |
publish_results: true | |
# Upload the results to GitHub's code scanning dashboard | |
- name: Upload to code-scanning | |
uses: github/codeql-action/upload-sarif@192325c86100d080feab897ff886c34abd4c83a3 # v3.30.3 | |
with: | |
sarif_file: results.sarif |