Skip to content

Commit b9736e8

Browse files
committed
ci: pass secrets explicitly to reusable workflow
Using `secrets: inherit` forwards all secrets to the workflow and makes it harder to determine which secrets the workflow was actually executed with. See: https://docs.zizmor.sh/audits/#secrets-inherit Signed-off-by: Daniel Hast <hast.daniel@protonmail.com>
1 parent 64ddbfe commit b9736e8

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

.github/workflows/release.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -389,6 +389,7 @@ jobs:
389389
contents: write # to push to a branch
390390
pull-requests: write # to read and create PRs
391391
if: needs.check.outputs.buildonly == 'false'
392-
secrets: inherit
392+
secrets:
393+
PODMANBOT_TOKEN: ${{ secrets.PODMANBOT_TOKEN }}
393394
with:
394395
version: ${{ needs.check.outputs.version }}

0 commit comments

Comments
 (0)