Skip to content

Commit 4a80e66

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 6d08bef commit 4a80e66

1 file changed

Lines changed: 12 additions & 29 deletions

File tree

.github/workflows/scorecard.yml

Lines changed: 12 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -1,37 +1,20 @@
11
# SPDX-License-Identifier: MPL-2.0
2-
name: OSSF Scorecard
2+
name: Scorecards supply-chain security
3+
34
on:
4-
push:
5-
branches: [main, master]
5+
branch_protection_rule:
66
schedule:
7-
- cron: '0 4 * * *'
8-
workflow_dispatch:
9-
# Estate guardrail: cancel superseded runs so re-pushes / rebased PR
10-
# updates do not pile up queued runs against the shared account-wide
11-
# Actions concurrency pool. Applied only to read-only check workflows
12-
# (no publish/mutation), so cancelling a superseded run is always safe.
13-
concurrency:
14-
group: ${{ github.workflow }}-${{ github.ref }}
15-
cancel-in-progress: true
16-
permissions:
17-
contents: read
7+
- cron: '23 4 * * 1'
8+
push:
9+
branches: [main]
10+
11+
permissions: read-all
12+
1813
jobs:
1914
analysis:
20-
runs-on: ubuntu-latest
21-
timeout-minutes: 15
15+
uses: hyperpolymath/standards/.github/workflows/scorecard-reusable.yml@81dbf2dd854b1444fd6236fa2352474383b2c2b9
2216
permissions:
17+
contents: read
2318
security-events: write
2419
id-token: write
25-
steps:
26-
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
27-
with:
28-
persist-credentials: false
29-
- name: Run Scorecard
30-
uses: ossf/scorecard-action@4eaacf0543bb3f2c246792bd56e8cdeffafb205a # v2.3.1
31-
with:
32-
results_file: results.sarif
33-
results_format: sarif
34-
- name: Upload results
35-
uses: github/codeql-action/upload-sarif@c6f931105cb2c34c8f901cc885ba1e2e259cf745 # v3.31.8
36-
with:
37-
sarif_file: results.sarif
20+
secrets: inherit

0 commit comments

Comments
 (0)