Skip to content

ci: add ossf scorecard workflow (#539) #1

ci: add ossf scorecard workflow (#539)

ci: add ossf scorecard workflow (#539) #1

Workflow file for this run

name: Scorecard analysis
on:
push:
branches:
- main
schedule:
- cron: "30 1 * * 6" # https://crontab.guru/#30_1_*_*_6
permissions: read-all
jobs:
analysis:
name: Scorecard analysis
runs-on: ubuntu-latest
permissions:
# Needed for Code scanning upload
security-events: write
# Needed for GitHub OIDC token if publish_results is true
id-token: write
steps:
- uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
with:
persist-credentials: false
- uses: ossf/scorecard-action@dc50aa9510b46c811795eb24b2f1ba02a914e534 # v2.3.3
with:
results_file: results.sarif
results_format: sarif
publish_results: true
- uses: github/codeql-action/upload-sarif@5cf07d8b700b67e235fbb65cbc84f69c0cf10464 # v3.25.14
with:
sarif_file: results.sarif