Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .github/workflows/release-tag.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
#
# Callers grant
# permissions: { contents: read }
# secrets: inherit (environment secrets reach a reusable workflow only so)
name: release-tag

on:
Expand Down
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,8 @@ release GitHub App may create `v*` tags (bypass actor of the repository's
`release-tag.yml` takes its token in the repository's `release` environment:
deployments from `main` only, variable `RELEASE_APP_CLIENT_ID`, secret
`RELEASE_APP_PRIVATE_KEY`; the token covers the contents of that one
repository. Callers grant `contents: read` only.
repository. Callers grant `contents: read` only and pass `secrets: inherit`:
environment secrets reach a reusable workflow only that way.

## Exceptions

Expand Down
3 changes: 3 additions & 0 deletions templates/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -49,5 +49,8 @@ jobs:
uses: IronFlock/workflows/.github/workflows/release-tag.yml@v1
permissions:
contents: read
# The App key is a secret of the `release` environment; environment
# secrets reach a reusable workflow only through `secrets: inherit`.
secrets: inherit # zizmor: ignore[secrets-inherit]
with:
version-file: VERSION
Loading