Skip to content

Commit e274017

Browse files
committed
fix(ci): pass reusable workflows only the secrets they declare
mirror-reusable declares seven optional mirror keys; secret-scanner-reusable declares none and its header says callers pass no secrets: line. Replace secrets: inherit with the explicit mapping (mirror) and nothing (scanner) so unrelated repo/org secrets are not forwarded. Flagged by zizmor secrets-inherit via CodeRabbit. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_019a95kk88TZ1iegsBK3kox3
1 parent 0e6febb commit e274017

2 files changed

Lines changed: 8 additions & 2 deletions

File tree

‎.github/workflows/mirror.yml‎

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,4 +16,11 @@ permissions:
1616
jobs:
1717
mirror:
1818
uses: hyperpolymath/standards/.github/workflows/mirror-reusable.yml@333b06a01db1874ffedb2de1bfabb195640927c7
19-
secrets: inherit
19+
secrets:
20+
GITLAB_SSH_KEY: ${{ secrets.GITLAB_SSH_KEY }}
21+
BITBUCKET_SSH_KEY: ${{ secrets.BITBUCKET_SSH_KEY }}
22+
CODEBERG_SSH_KEY: ${{ secrets.CODEBERG_SSH_KEY }}
23+
SOURCEHUT_SSH_KEY: ${{ secrets.SOURCEHUT_SSH_KEY }}
24+
DISROOT_SSH_KEY: ${{ secrets.DISROOT_SSH_KEY }}
25+
GITEA_SSH_KEY: ${{ secrets.GITEA_SSH_KEY }}
26+
RADICLE_KEY: ${{ secrets.RADICLE_KEY }}

‎.github/workflows/secret-scanner.yml‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,4 +22,3 @@ jobs:
2222
permissions:
2323
contents: read
2424
uses: hyperpolymath/standards/.github/workflows/secret-scanner-reusable.yml@333b06a01db1874ffedb2de1bfabb195640927c7
25-
secrets: inherit

0 commit comments

Comments
 (0)