Skip to content

Commit bebaaec

Browse files
hyperpolymathclaude
andcommitted
fix(ci): use the canonical Scorecard wrapper instead of a local copy
The staleness gate rejects ANY workflow containing both `ossf/scorecard-action@` and `github/codeql-action/upload-sarif@`, whatever its triggers. Deleting the retired `scorecard-enforcer.yml` did not address this — `scorecard.yml` itself carried the banned pair. 273 of 302 repos already call standards' `scorecard-reusable.yml`, which reports with `results_format: json` + `publish_results: true` and never uploads SARIF to Code Scanning. This converges the remaining local copies on that template rather than leaving bespoke files to drift again. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
1 parent f5f87b4 commit bebaaec

1 file changed

Lines changed: 7 additions & 14 deletions

File tree

.github/workflows/scorecard.yml

Lines changed: 7 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,27 +1,20 @@
11
# SPDX-License-Identifier: MPL-2.0
22
name: Scorecards supply-chain security
3+
34
on:
45
branch_protection_rule:
56
schedule:
67
- cron: '23 4 * * 1'
78
push:
89
branches: [main]
10+
911
permissions: read-all
12+
1013
jobs:
11-
scorecard:
12-
runs-on: ubuntu-latest
14+
analysis:
15+
uses: hyperpolymath/standards/.github/workflows/scorecard-reusable.yml@81dbf2dd854b1444fd6236fa2352474383b2c2b9
1316
permissions:
17+
contents: read
1418
security-events: write
1519
id-token: write
16-
steps:
17-
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
18-
with:
19-
persist-credentials: false
20-
- uses: ossf/scorecard-action@4eaacf0543bb3f2c246792bd56e8cdeffafb205a # v2.4.3
21-
with:
22-
results_file: results.sarif
23-
results_format: sarif
24-
publish_results: true
25-
- uses: github/codeql-action/upload-sarif@7188fc363630916deb702c7fdcf4e481b751f97a # v3.31.8
26-
with:
27-
sarif_file: results.sarif
20+
secrets: inherit

0 commit comments

Comments
 (0)