Skip to content

Merge pull request #50 from carterscode/feat/settings-learnmore-and-p… #55

Merge pull request #50 from carterscode/feat/settings-learnmore-and-p…

Merge pull request #50 from carterscode/feat/settings-learnmore-and-p… #55

Workflow file for this run

name: Scorecard
on:
branch_protection_rule:
schedule:
- cron: '17 4 * * 2'
push:
branches: [main]
permissions: read-all
jobs:
analysis:
name: Scorecard analysis
runs-on: ubuntu-latest
permissions:
security-events: write
id-token: write
contents: read
actions: read
steps:
- uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6.0.3
with:
persist-credentials: false
- name: Run analysis
uses: ossf/scorecard-action@4eaacf0543bb3f2c246792bd56e8cdeffafb205a # v2.4.3
with:
results_file: results.sarif
results_format: sarif
publish_results: true
# SCORECARD_TOKEN is an optional fine-grained PAT with
# 'metadata: read' + 'administration: read' on this repo. When set,
# the Branch-Protection check can read protection rules and score
# them. Without it, that check returns -1 (internal error) because
# the default GITHUB_TOKEN can't read admin settings.
repo_token: ${{ secrets.SCORECARD_TOKEN || secrets.GITHUB_TOKEN }}
- name: Upload artifact
uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7.0.1
with:
name: SARIF file
path: results.sarif
retention-days: 5
- name: Upload to code-scanning
uses: github/codeql-action/upload-sarif@8aad20d150bbac5944a9f9d289da16a4b0d87c1e # v4.36.2
with:
sarif_file: results.sarif