Skip to content

OpenSSF Scorecard

OpenSSF Scorecard #158

---
name: OpenSSF Scorecard
on:
branch_protection_rule:
push:
branches:
- main
schedule:
- cron: "30 6 * * 1"
workflow_dispatch:
permissions: {}
jobs:
openssf-scorecard:
name: OpenSSF Scorecard
runs-on: ubuntu-latest
permissions:
id-token: write
security-events: write
steps:
- name: Checkout
id: checkout
uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
- name: Run Analysis
id: run_analysis
uses: ossf/scorecard-action@62b2cac7ed8198b15735ed49ab1e5cf35480ba46 # v2.4.0
with:
results_file: results.sarif
results_format: sarif
publish_results: true
- name: Upload SARIF
id: upload_sarif
uses: actions/upload-artifact@834a144ee995460fba8ed112a2fc961b36a5ec5a # v4.3.6
with:
name: SARIF Results
path: results.sarif
retention-days: 5
- name: Upload to CodeQL
id: upload_to_codeql
uses: github/codeql-action/upload-sarif@29d86d22a34ea372b1bbf3b2dced2e25ca6b3384 # v3.26.1
with:
sarif_file: results.sarif