Skip to content

Commit 0f748c7

Browse files
Use javabin-platform GitHub App for Homebrew tap token
Replace HOMEBREW_TAP_TOKEN secret with a short-lived token generated from the org's javabin-platform GitHub App via actions/create-github-app-token.
1 parent 621cfc9 commit 0f748c7

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

.github/workflows/release.yml

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,10 +20,18 @@ jobs:
2020
with:
2121
go-version-file: go.mod
2222

23+
- uses: actions/create-github-app-token@v1
24+
id: app-token
25+
with:
26+
app-id: ${{ secrets.PLATFORM_APP_ID }}
27+
private-key: ${{ secrets.PLATFORM_APP_PRIVATE_KEY }}
28+
owner: javaBin
29+
repositories: homebrew-tap
30+
2331
- uses: goreleaser/goreleaser-action@v6
2432
with:
2533
version: latest
2634
args: release --clean
2735
env:
2836
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
29-
HOMEBREW_TAP_TOKEN: ${{ secrets.HOMEBREW_TAP_TOKEN }}
37+
HOMEBREW_TAP_TOKEN: ${{ steps.app-token.outputs.token }}

0 commit comments

Comments
 (0)