Commit 0a66402
fix(security): scorecard job permissions, dispatch secret-gate, .envrc placeholder (#30)
Addresses pre-existing Hypatia workflow_audit findings (unrelated to the timeout PR):
- scorecard.yml: add explicit least-privilege job permissions to the OpenSSF
Scorecard reusable-workflow caller (was inheriting top-level read-all, which
can't grant the security-events/id-token writes publishing needs). Clears
scorecard_wrapper_missing_job_permissions.
- instant-sync.yml: presence-gate the repository-dispatch step on
FARM_DISPATCH_TOKEN (mapped to a job env var, since secrets can't be used in
if:) so forks skip it instead of firing with an empty token. Clears
secret_action_without_presence_gate.
- .envrc: substitute the unsubstituted {{PROJECT_NAME}} scaffold placeholder
with the real project name.
Deferred: SHA-pinning governance.yml's governance-reusable.yml@main needs the
standards@main commit SHA, and the standards repo is out of this session's
scope. The critical .envrc 'Generic API key' finding is a false positive (a
commented-out '# export API_KEY="..."' placeholder on line 24; gitleaks and
trufflehog both pass).
Claude-Session: https://claude.ai/code/session_01Y2MWTAqX2x7goVJzjFB4j5
Co-authored-by: Claude <noreply@anthropic.com>1 parent 86ce866 commit 0a66402
3 files changed
Lines changed: 17 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
18 | 18 | | |
19 | 19 | | |
20 | 20 | | |
21 | | - | |
| 21 | + | |
22 | 22 | | |
23 | 23 | | |
24 | 24 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
15 | 15 | | |
16 | 16 | | |
17 | 17 | | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
18 | 24 | | |
19 | 25 | | |
| 26 | + | |
20 | 27 | | |
21 | 28 | | |
22 | 29 | | |
| |||
31 | 38 | | |
32 | 39 | | |
33 | 40 | | |
| 41 | + | |
34 | 42 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
12 | 12 | | |
13 | 13 | | |
14 | 14 | | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
15 | 23 | | |
16 | 24 | | |
0 commit comments