Skip to content

Commit 481df51

Browse files
[patch] Separate release publication tokens (#16)
1 parent 431c745 commit 481df51

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

.github/workflows/reusable-goreleaser.yaml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -82,11 +82,13 @@ jobs:
8282
uses: goreleaser/goreleaser-action@5daf1e915a5f0af01ddbcd89a43b8061ff4f1a89 # v7
8383
with:
8484
distribution: goreleaser
85-
# This binary receives the Homebrew publication token.
85+
# Keep source-release and cross-repository publication credentials
86+
# independently scoped.
8687
version: v2.17.0
8788
args: ${{ inputs.goreleaser-args }}
8889
env:
89-
GITHUB_TOKEN: ${{ secrets.HOMEBREW_REPO }}
90+
GITHUB_TOKEN: ${{ github.token }}
91+
HOMEBREW_REPO_TOKEN: ${{ secrets.HOMEBREW_REPO }}
9092

9193
- name: Authenticate to Google Cloud
9294
if: ${{ inputs.publish-package-repo }}

0 commit comments

Comments
 (0)