Skip to content

OpenSSF Scorecard

OpenSSF Scorecard #15

name: OpenSSF Scorecard
on:
branch_protection_rule:
schedule:
- cron: "30 6 * * 1"
workflow_dispatch:
push:
branches: ["master"]
permissions:
contents: read
security-events: write
id-token: write
jobs:
scorecard:
name: Security posture scan
runs-on: ubuntu-latest
timeout-minutes: 10
steps:
- name: Checkout repository
uses: actions/checkout@v4
with:
persist-credentials: false
- name: Run OpenSSF Scorecard
id: scorecard
continue-on-error: true
uses: ossf/scorecard-action@v2.4.3
with:
results_file: scorecard-results.sarif
results_format: sarif
publish_results: true
- name: Upload Scorecard SARIF
if: always() && hashFiles('scorecard-results.sarif') != ''
uses: github/codeql-action/upload-sarif@v3
with:
sarif_file: scorecard-results.sarif
- name: Summarize advisory result
if: always()
run: |
if [ "${{ steps.scorecard.outcome }}" = "failure" ]; then
{
echo "OpenSSF Scorecard completed with advisory findings."
echo "The workflow is non-blocking so existing repository-wide"
echo "dependency findings can be triaged without blocking docs."
} >> "$GITHUB_STEP_SUMMARY"
fi