Skip to content

OpenSSF Scorecard

OpenSSF Scorecard #225

# Runs OSSF
#
# Description:
# Runs OpenSSF Scorecard scan on the project
#
# Triggers:
# - branch_protection_rule
# - cron: 09:00AM
# - push
# - workflow_dispatch
#
# Secrets:
# - Security.SCORECARD_TOKEN
on:
branch_protection_rule:
schedule:
- cron: "0 9 * * *"
push:
branches: [main]
workflow_dispatch: {}
name: OpenSSF Scorecard
run-name: OpenSSF Scorecard
permissions: read-all
jobs:
analysis:
name: Scorecard analysis
runs-on: ubuntu-latest
environment: Security
permissions:
security-events: write
id-token: write
steps:
- name: Checkout Repository
uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
with:
persist-credentials: false
- name: Run Analysis
uses: ossf/scorecard-action@05b42c624433fc40578a4040d5cf5e36ddca8cde # v2.4.2
with:
results_file: results.sarif
results_format: sarif
publish_results: true
repo_token: ${{ secrets.SCORECARD_TOKEN }}
- name: Upload Results
uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4.6.2
with:
name: SARIF file
path: results.sarif
retention-days: 5
- name: Upload to Code-Scanning
uses: github/codeql-action/upload-sarif@3c3833e0f8c1c83d449a7478aa59c036a9165498 # v3.29.5
with:
sarif_file: results.sarif