Commit 11d33d6
ci(governance): refresh standards pins to d72fe5a + add Hypatia baseline (#42)
* ci(governance): refresh standards pins to d72fe5a + add Hypatia baseline
Two follow-ups after #41.
1. Pin refresh. The standards estate advanced 5a93d9d5 -> d72fe5a, so the
governance + scorecard reusable pins went stale again (the "Check
Workflow Staleness" gate compares pins against standards HEAD; this is
why it went red on #41, independent of that PR's content). Bump both to
d72fe5a. Verified against check-workflow-staleness.sh@d72fe5a: the only
rules that match this repo are the two pin-freshness checks. The
no_scorecard_sarif_code_scanning rule does not fire (no single workflow
uses ossf/scorecard-action@ together with upload-sarif@) and
no_stale_hypatia_reusable_pin does not apply (no hypatia-scan-reusable
reference). scorecard-reusable.yml@d72fe5a needs exactly contents:read +
security-events:write + id-token:write, which the job already grants.
2. .hypatia-baseline.json. Acknowledge the reviewed false positives so the
governance baseline gate runs clean and the advisory scan stops raising
them (including the two "critical" secret detections). Covers the
file-based code_safety/security_errors findings -- the only ones the
tokenless validate-hypatia-baseline scan sees: the two test-fixture
"secrets" (a fuzzer seed and a commented-out placeholder), the three
escaped-markup innerHTML sinks, the loopback HTTP URL, and the syscall
@bitcast. Each entry carries a rationale note and validates against
standards' hypatia-baseline.schema.json. The API-dependent meta findings
(git_state, code_scanning_alerts, scorecard SAST) use uppercase types the
schema forbids and are absent from the tokenless gate scan, so they are
intentionally not baselined.
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01LvsZgNxFbeqfRmrVFNhJ8G
* fix(ci): keep reusable pin token out of scorecard.yml comment
The estate staleness check greps every workflow line for
"scorecard-reusable.yml@" and extracts the SHA after it. The #42 comment
("... declared by scorecard-reusable.yml@d72fe5a.") added a SECOND match,
so the extracted PINNED_SHA became two lines and never equalled the
expected single SHA — a false "stale Scorecard reusable" failure even
though the actual `uses:` pin is correct. Reword the comment to drop the
token, with a NOTE to prevent regression. Verified locally:
check-workflow-staleness.sh@d72fe5a now exits 0.
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01LvsZgNxFbeqfRmrVFNhJ8G
---------
Co-authored-by: Claude <noreply@anthropic.com>1 parent d37caa4 commit 11d33d6
3 files changed
Lines changed: 58 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
31 | 31 | | |
32 | 32 | | |
33 | 33 | | |
34 | | - | |
| 34 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
14 | 14 | | |
15 | 15 | | |
16 | 16 | | |
17 | | - | |
18 | | - | |
| 17 | + | |
| 18 | + | |
19 | 19 | | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
20 | 23 | | |
21 | 24 | | |
22 | 25 | | |
23 | 26 | | |
24 | | - | |
| 27 | + | |
25 | 28 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
0 commit comments