Files
oc/.github/workflows/scorecard.yml
T
only-cli bf9fd98137 fix scorecard-action pin: v2 doesn't exist as a tag upstream
ossf/scorecard-action only publishes point-release tags (v2.4.4, etc),
no floating v2 major tag, so the workflow failed to even resolve the
action and never published results -- which is why the README badge
showed "invalid repo path". Pin to the v2.4.4 commit SHA instead.
2026-08-19 16:25:14 -04:00

44 lines
1009 B
YAML

# Weekly OpenSSF Scorecard run: an automated supply-chain risk score,
# published for the README badge and as SARIF in the Security tab.
name: Scorecard analysis
on:
branch_protection_rule:
schedule:
- cron: "27 3 * * 3"
push:
branches: [main]
permissions: read-all
jobs:
analysis:
name: Scorecard analysis
runs-on: ubuntu-latest
permissions:
security-events: write
id-token: write
contents: read
actions: read
steps:
- uses: actions/checkout@v7
with:
persist-credentials: false
- uses: ossf/scorecard-action@55891bbd73f2425e97637d96e306fc9d491d0b21 # v2.4.4
with:
results_file: results.sarif
results_format: sarif
publish_results: true
- uses: actions/upload-artifact@v4
with:
name: SARIF file
path: results.sarif
retention-days: 5
- uses: github/codeql-action/upload-sarif@v3
with:
sarif_file: results.sarif