Skip to content

Scorecard

Scorecard #57

Workflow file for this run

# Scorecard analysis, looking for vulnerabilities and bad practices in the repo.
name: Scorecard
on:
# For Branch-Protection check. Only the default branch is supported. See
# https://github.com/ossf/scorecard/blob/main/docs/checks.md#branch-protection
branch_protection_rule:
workflow_dispatch:
schedule:
# Runs at 01:00 UTC on Saturday.
- cron: '0 1 * * 6'
push:
branches: [ "main" ]
permissions: read-all
jobs:
analyze:
name: Scorecard analysis
runs-on: ubuntu-latest
permissions:
# Needed to upload the results to code-scanning dashboard.
security-events: write
# Needed to publish results and get a badge (see publish_results below).
id-token: write
steps:
- name: Checkout
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
- name: Run analysis
uses: ossf/scorecard-action@e38b1902ae4f44df626f11ba0734b14fb91f8f86 # v2.1.2
with:
results_file: scorecard_results.sarif
results_format: sarif
publish_results: true
# Upload the results as artifacts to the repository Actions tab.
- name: Upload artifact
uses: actions/upload-artifact@c7d193f32edcb7bfad88892161225aeda64e9392 # 4.0.0
with:
name: Scorecard results
path: scorecard_results.sarif
retention-days: 5
# Upload the results to GitHub's code scanning dashboard.
- name: Upload to code-scanning
uses: github/codeql-action/upload-sarif@b7bf0a3ed3ecfa44160715d7c442788f65f0f923 # v3.23.2
with:
sarif_file: scorecard_results.sarif