Skip to content

chore(ci): pin actions to SHA, tighten release perms, link SECURITY.md #7

chore(ci): pin actions to SHA, tighten release perms, link SECURITY.md

chore(ci): pin actions to SHA, tighten release perms, link SECURITY.md #7

Workflow file for this run

name: OSSF Scorecard
on:
branch_protection_rule:
schedule:
# Weekly: Saturday 01:30 UTC.
- cron: "30 1 * * 6"
push:
branches: [main]
permissions: read-all
jobs:
analysis:
runs-on: ubuntu-latest
timeout-minutes: 15
permissions:
# Required to upload SARIF results to the Security tab.
security-events: write
# Required for OIDC token used by publish_results.
id-token: write
# Optional read perms used by various Scorecard checks.
contents: read
actions: read
steps:
- uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4.3.1
with:
persist-credentials: false
- uses: ossf/scorecard-action@99c09fe975337306107572b4fdf4db224cf8e2f2 # v2.4.3
with:
results_file: results.sarif
results_format: sarif
# Publishes results so the badge auto-generates and the score is
# discoverable at https://scorecard.dev/viewer/?uri=github.com/<owner>/<repo>
publish_results: true
- uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4.6.2
with:
name: SARIF
path: results.sarif
retention-days: 5
- uses: github/codeql-action/upload-sarif@1521896cd211af95be3f02edf6f436e10b819c27 # v3.35.4
with:
sarif_file: results.sarif