Skip to content

ci: add ossf-scorecard.yml (#236) #1

ci: add ossf-scorecard.yml (#236)

ci: add ossf-scorecard.yml (#236) #1

---
name: Supply-chain security
on:
workflow_dispatch:
branch_protection_rule:
schedule:
- cron: "16 19 * * 6"
push:
branches: [main]
permissions: read-all
jobs:
analysis:
name: OSSF Scorecard
runs-on: ubuntu-latest
permissions:
security-events: write
id-token: write
steps:
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
with:
persist-credentials: false
- uses: ossf/scorecard-action@0864cf19026789058feabb7e87baa5f140aac736 # v2.3.1
with:
results_file: results.sarif
results_format: sarif
repo_token: ${{ secrets.SCORECARD_TOKEN }}
publish_results: true
- name: "Upload to code-scanning"
uses: github/codeql-action/upload-sarif@66b90a5db151a8042fa97405c6cf843bbe433f7b # v2.22.7
with:
sarif_file: results.sarif