Skip to content

Scorecard

Scorecard #105

Workflow file for this run

name: Scorecard
on:
branch_protection_rule:
schedule:
- cron: "0 4 * * 1"
push:
branches: [main]
permissions: read-all
jobs:
analysis:
# Both of these publish SARIF to code scanning, which requires GitHub
# Advanced Security -- unavailable on a private repository, where the job
# fails on the upload rather than on any finding. Gated rather than deleted
# so it starts working by itself the day this repo goes public.
if: ${{ !github.event.repository.private }}
runs-on: ubuntu-latest
permissions:
security-events: write
id-token: write
steps:
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7
with:
persist-credentials: false
- uses: ossf/scorecard-action@2d1146689b8cda280b9bc96326124645441f03bc # v2.4.4
with:
results_file: results.sarif
results_format: sarif
publish_results: false
- uses: github/codeql-action/upload-sarif@db488ddef3bf6cb639b32c2e9a7c0a7ea8271d28 # v4.37.8
with:
sarif_file: results.sarif