Skip to content

Commit c03bf03

Browse files
committed
chore(main): switch release‑please to use a GitHub App token
Use the actions/create‑github‑app‑token action to generate a token with write‑contents permission for the Homebrew tap repository. This replaces the TAP_GITHUB_TOKEN secret and ensures the release workflow has the necessary permissions to push to the tap.
1 parent 37e5a9e commit c03bf03

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

.github/workflows/release-please.yml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,9 +43,15 @@ jobs:
4343
fetch-depth: 0
4444
persist-credentials: false
4545
- uses: ./.github/actions/setup
46+
- uses: actions/create-github-app-token@7e473efe3cb98aa54f8d4bac15400b15fad77d94 # v2.2.0
47+
id: app-token
48+
with:
49+
app-id: ${{ secrets.HOMEBREW_TAP_APP_ID }}
50+
private-key: ${{ secrets.HOMEBREW_TAP_APP_PRIVATE_KEY }}
51+
permission-contents: write
4652

4753
- name: release
4854
run: goreleaser release --clean
4955
env:
5056
GITHUB_TOKEN: ${{ github.token }}
51-
TAP_GITHUB_TOKEN: ${{ secrets.TAP_GITHUB_TOKEN }}
57+
TAP_GITHUB_TOKEN: ${{ steps.app-token.outputs.token }}

0 commit comments

Comments
 (0)