Skip to content

Scorecard

Scorecard #12

Workflow file for this run

# OpenSSF Scorecard: assesses the repository's supply-chain security posture
# (branch protection, token permissions, pinned dependencies, etc.).
# Results appear under the repository's "Security > Code scanning" tab.
name: Scorecard
on:
branch_protection_rule:
push:
branches: [ "master" ]
schedule:
- cron: '23 4 * * 1'
permissions: read-all
jobs:
analysis:
name: Scorecard analysis
runs-on: ubuntu-latest
permissions:
security-events: write
# Needed to publish results and get a badge (OpenSSF API, OIDC token).
id-token: write
steps:
- uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0
with:
persist-credentials: false
- name: Run analysis
uses: ossf/scorecard-action@4eaacf0543bb3f2c246792bd56e8cdeffafb205a # v2.4.3
with:
results_file: results.sarif
results_format: sarif
publish_results: true
# Keep the raw SARIF as an artifact for inspection.
- name: Upload artifact
uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7.0.1
with:
name: scorecard-results
path: results.sarif
retention-days: 5
- name: Upload to code scanning
uses: github/codeql-action/upload-sarif@8aad20d150bbac5944a9f9d289da16a4b0d87c1e # v4.36.2
with:
sarif_file: results.sarif
category: scorecard