Skip to content

Scorecard supply-chain security #66

Scorecard supply-chain security

Scorecard supply-chain security #66

Workflow file for this run

name: Scorecard supply-chain security
on:
# Re-evaluate when branch protection rules change, since they feed the score.
branch_protection_rule:
schedule:
- cron: '20 7 * * 1'
push:
branches: [main]
# Read-only by default; the analysis job widens only the scopes it needs.
permissions: read-all
jobs:
analysis:
name: Scorecard analysis
runs-on: ubuntu-latest
permissions:
# Needed to upload the SARIF results to the code-scanning dashboard.
security-events: write
# Needed to publish results for the public Scorecard badge / API.
id-token: write
steps:
- name: Checkout code
uses: actions/checkout@v7
with:
persist-credentials: false
- name: Run analysis
uses: ossf/scorecard-action@v2.4.4
with:
results_file: results.sarif
results_format: sarif
# Publishes the score to the OpenSSF API that backs the README badge.
publish_results: true
- name: Upload artifact
uses: actions/upload-artifact@v7
with:
name: SARIF file
path: results.sarif
retention-days: 5
- name: Upload to code-scanning
uses: github/codeql-action/upload-sarif@v4
with:
sarif_file: results.sarif