Skip to content

OpenSSF Scorecard

OpenSSF Scorecard #2

Workflow file for this run

---
name: OpenSSF Scorecard
# Scorecard grades repository configuration rather than the crate.
# It scores pinned action SHAs, workflow permissions and release
# provenance, which makes it a regression check on the supply-chain work.
#
# `publish_results` and the SARIF upload both require a public repository.
# Runs before this one goes public are expected to fail.
on:
branch_protection_rule:
schedule:
# Every Monday at 05:30 UTC: https://crontab.guru/#30_5_*_*_1
- cron: '30 5 * * 1'
push:
branches:
- main
workflow_dispatch:
permissions: read-all
jobs:
analysis:
name: Scorecard analysis
runs-on: ubuntu-24.04
permissions:
# Upload the results to the code-scanning dashboard.
security-events: write
# Publish results to the public Scorecard API, which backs the badge.
id-token: write
contents: read
actions: read
steps:
- uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
with:
persist-credentials: false
- name: Run analysis
uses: ossf/scorecard-action@2d1146689b8cda280b9bc96326124645441f03bc # v2.4.4
with:
results_file: results.sarif
results_format: sarif
publish_results: true
- name: Upload results to code scanning
uses: github/codeql-action/upload-sarif@a2983b8bed1923f44751c5c43237f479442827b3 # v3.37.4
with:
sarif_file: results.sarif