Skip to content

Commit 2abec1c

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. 273 of 302 estate repos already call standards' `scorecard-reusable.yml`, which reports with `results_format: json` + `publish_results: true` and never uploads SARIF to Code Scanning. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
1 parent b0895a9 commit 2abec1c

1 file changed

Lines changed: 9 additions & 24 deletions

File tree

.github/workflows/scorecard.yml

Lines changed: 9 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -1,35 +1,20 @@
11
# SPDX-License-Identifier: MPL-2.0
2-
name: OSSF Scorecard
2+
name: Scorecards supply-chain security
33

44
on:
5-
push:
6-
branches: [main, master]
5+
branch_protection_rule:
76
schedule:
8-
- cron: '0 4 * * *'
9-
workflow_dispatch:
7+
- cron: '23 4 * * 1'
8+
push:
9+
branches: [main]
1010

11-
permissions:
12-
contents: read
11+
permissions: read-all
1312

1413
jobs:
1514
analysis:
16-
runs-on: ubuntu-latest
17-
timeout-minutes: 15
15+
uses: hyperpolymath/standards/.github/workflows/scorecard-reusable.yml@81dbf2dd854b1444fd6236fa2352474383b2c2b9
1816
permissions:
17+
contents: read
1918
security-events: write
2019
id-token: write
21-
steps:
22-
- uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0
23-
with:
24-
persist-credentials: false
25-
26-
- name: Run Scorecard
27-
uses: ossf/scorecard-action@4eaacf0543bb3f2c246792bd56e8cdeffafb205a # v2.3.1
28-
with:
29-
results_file: results.sarif
30-
results_format: sarif
31-
32-
- name: Upload results
33-
uses: github/codeql-action/upload-sarif@7188fc363630916deb702c7fdcf4e481b751f97a # v3.31.8
34-
with:
35-
sarif_file: results.sarif
20+
secrets: inherit

0 commit comments

Comments
 (0)