Skip to content

OpenSSF

OpenSSF #447

Workflow file for this run

name: OpenSSF
on:
workflow_dispatch:
branch_protection_rule:
push:
branches: [main, '+.x', next, next-major, beta, alpha]
schedule:
- cron: '24 3 * * *' # At 03:24 every day
permissions: read-all
jobs:
scorecard-secure-supply-chain-analysis:
name: Scorecard - Secure supply-chain analysis
runs-on: ubuntu-24.04
timeout-minutes: 5
permissions:
security-events: write # Required to upload found security gaps
id-token: write # Required to publish results and get a badge
steps:
- name: Harden runner
uses: step-security/harden-runner@0080882f6c36860b6ba35c610c98ce87d4e2f26f # v2.10.2
with:
disable-sudo: true
egress-policy: block
allowed-endpoints: >
github.com:443
api.github.com:443
api.osv.dev:443
www.bestpractices.dev:443
api.securityscorecards.dev:443
oss-fuzz-build-logs.storage.googleapis.com:443
rekor.sigstore.dev:443
fulcio.sigstore.dev:443
tuf-repo-cdn.sigstore.dev:443
api.deps.dev:443
api.scorecard.dev:443
- name: Checkout repository
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
with:
ref: main
persist-credentials: false
- name: Perform Scorecard Analysis
uses: ossf/scorecard-action@62b2cac7ed8198b15735ed49ab1e5cf35480ba46 # v2.4.0
with:
results_file: results.sarif
results_format: sarif
repo_token: ${{ secrets.SCORECARD_TOKEN }}
publish_results: true
- name: Upload artifact
uses: actions/upload-artifact@6f51ac03b9356f520e9adb1b1b7802705f340c2b # v4.5.0
with:
name: SARIF file
path: results.sarif
retention-days: 5
- name: Upload to GitHub's code scanning dashboard
uses: github/codeql-action/upload-sarif@48ab28a6f5dbc2a99bf1e0131198dd8f1df78169 # v3.28.0
with:
sarif_file: results.sarif