Skip to content

Commit 6471180

Browse files
fix(ci): use the canonical Scorecard wrapper instead of a local copy (#703)
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> Co-authored-by: Claude Opus 4.8 <noreply@anthropic.com>
1 parent 30a5c1c commit 6471180

1 file changed

Lines changed: 7 additions & 29 deletions

File tree

.github/workflows/scorecard.yml

Lines changed: 7 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -1,42 +1,20 @@
11
# SPDX-License-Identifier: MPL-2.0
2-
#
3-
# Standalone OpenSSF Scorecard. Previously a thin caller of
4-
# `hyperpolymath/standards/.github/workflows/scorecard-reusable.yml`; that
5-
# cross-repo dependency had a persistent startup_failure history (see the
6-
# prior note in this file's git history). This self-contained version calls
7-
# `ossf/scorecard-action` directly — mirroring the already-direct sibling
8-
# `scorecard-enforcer.yml` — so there is no external-repo workflow dependency.
9-
# `ossf/scorecard-action` / `github/codeql-action` stay SHA-pinned (third-party
10-
# actions); they match the pins used in scorecard-enforcer.yml.
112
name: Scorecards supply-chain security
3+
124
on:
135
branch_protection_rule:
146
schedule:
157
- cron: '23 4 * * 1'
168
push:
179
branches: [main]
18-
permissions:
19-
contents: read
10+
11+
permissions: read-all
12+
2013
jobs:
2114
analysis:
22-
name: Scorecard analysis
23-
runs-on: ubuntu-latest
24-
timeout-minutes: 10
15+
uses: hyperpolymath/standards/.github/workflows/scorecard-reusable.yml@81dbf2dd854b1444fd6236fa2352474383b2c2b9
2516
permissions:
17+
contents: read
2618
security-events: write
2719
id-token: write
28-
steps:
29-
- name: Checkout code
30-
uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0
31-
with:
32-
persist-credentials: false
33-
- name: Run analysis
34-
uses: ossf/scorecard-action@4eaacf0543bb3f2c246792bd56e8cdeffafb205a # v2.4.3
35-
with:
36-
results_file: results.sarif
37-
results_format: sarif
38-
publish_results: true
39-
- name: Upload SARIF to code-scanning
40-
uses: github/codeql-action/upload-sarif@7188fc363630916deb702c7fdcf4e481b751f97a # v3
41-
with:
42-
sarif_file: results.sarif
20+
secrets: inherit

0 commit comments

Comments
 (0)