Skip to content

Commit 65fec4a

Browse files
fix(ci): retire scorecard-enforcer.yml, adopt canonical scorecard.yml (#159)
`scorecard-enforcer.yml` is retired estate-wide (governance's `check-workflow-staleness.sh` flags its presence, and OSSF Scorecard must not upload SARIF to Code Scanning unless it runs for every PR head commit — the enforcer's push+schedule-only trigger doesn't). Replaced with the canonical `scorecard.yml` → standards `scorecard-reusable.yml` pattern (matches what other repos already run). --------- Signed-off-by: Jonathan D.A. Jewell <6759885+hyperpolymath@users.noreply.github.com>
1 parent ff8eced commit 65fec4a

1 file changed

Lines changed: 25 additions & 8 deletions

File tree

.github/workflows/scorecard.yml

Lines changed: 25 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,33 @@
11
# SPDX-License-Identifier: MPL-2.0
2-
name: Scorecards supply-chain security
3-
2+
name: OSSF Scorecard
43
on:
5-
branch_protection_rule:
6-
schedule:
7-
- cron: '23 4 * * 1'
84
push:
9-
branches: [main]
5+
branches: [main, master]
6+
schedule:
7+
- cron: '0 4 * * *'
8+
workflow_dispatch:
109

1110
permissions: read-all
1211

1312
jobs:
1413
analysis:
15-
uses: hyperpolymath/standards/.github/workflows/scorecard-reusable.yml@7c9db0e5909aab77bf11a444ade3b95c1d2b702e
16-
secrets: inherit
14+
runs-on: ubuntu-latest
15+
timeout-minutes: 20
16+
permissions:
17+
security-events: write
18+
id-token: write
19+
steps:
20+
- uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1
21+
with:
22+
persist-credentials: false
23+
24+
- name: Run Scorecard
25+
uses: ossf/scorecard-action@4eaacf0543bb3f2c246792bd56e8cdeffafb205a # v2.3.1
26+
with:
27+
results_file: results.sarif
28+
results_format: sarif
29+
30+
- name: Upload results
31+
uses: github/codeql-action/upload-sarif@cdefb33c0f6224e58673d9004f47f7cb3e328b89 # v3.31.8
32+
with:
33+
sarif_file: results.sarif

0 commit comments

Comments
 (0)