Repository navigation
Commit 703dd77
ci: drop secrets: inherit where unused; explicit mirror secrets; scorecard actions: read (#348)
## Summary
Three workflow callers here forward every repository secret with
`secrets: inherit` to reusable workflows that do not use them, and the
scorecard caller is missing a permission its callee requires. Both were
raised by CodeRabbit on #344 (already merged); I checked each claim
against the callee at the pinned commit before acting.
## Changes
- `secret-scanner.yml`: remove `secrets: inherit`.
`secret-scanner-reusable.yml@75bd5994` declares no `workflow_call`
secrets and reads none (its gitleaks is a pinned local binary; the
`GITHUB_TOKEN` it runs under comes from `permissions:`).
- `scorecard.yml`: remove `secrets: inherit`
(`scorecard-reusable.yml@75bd5994` declares none and reads none), and
add `actions: read` to the job-level `permissions:` block. A job-level
block replaces the workflow-level one, so `actions: read` was being
dropped; the callee's job requests it, and GitHub refuses a called job
that asks for more than its caller grants. This is the same startup
failure found in choreographic-types #31, here only on the scheduled and
`branch_protection_rule` triggers.
- `mirror.yml`: replace `secrets: inherit` with an explicit map of the
seven secrets `mirror-reusable.yml@75bd5994` declares (all optional), as
affinescript-libraries already does. Behaviour is unchanged; future
secrets are no longer shared implicitly.
## Testing
- All three workflow files parse; `check-lock-sync.sh` still passes (no
`uses:` change).
- The scorecard fix can only be proven by a scheduled or manual
Scorecard run; I have not run one. A branch-run cannot exercise it.
- The mirror map passes secrets by name; a repo that has none of the
seven set behaves as before.
---
_Generated by [Claude
Code](https://claude.ai/code/session_01MF5GeeBBDF6sUzr6pZTjWV)_
Co-authored-by: Claude <noreply@anthropic.com>1 parent 8d7e882 commit 703dd77
3 files changed
Lines changed: 14 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
16 | 16 | | |
17 | 17 | | |
18 | 18 | | |
19 | | - | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
19 | 19 | | |
20 | 20 | | |
21 | 21 | | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
22 | 25 | | |
| 26 | + | |
23 | 27 | | |
24 | 28 | | |
25 | 29 | | |
26 | 30 | | |
27 | | - | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
24 | 24 | | |
25 | 25 | | |
26 | 26 | | |
27 | | - | |
0 commit comments