Skip to content

Commit 0e66990

Browse files
committed
.github/workflows: use a GitHub app token for create-release
Use a GitHub application token for create-release to give it the necessary permissions to do historical releases. Updates #47 Updates tailscale/corp#26875 Signed-off-by: Mario Minardi <[email protected]>
1 parent eaa9296 commit 0e66990

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

.github/workflows/build.yml

+8-1
Original file line numberDiff line numberDiff line change
@@ -91,11 +91,18 @@ jobs:
9191
outputs:
9292
url: ${{ steps.create_release.outputs.upload_url }}
9393
steps:
94+
- name: create app token
95+
uses: actions/create-github-app-token@v1
96+
id: app-token
97+
with:
98+
# required
99+
app-id: ${{ vars.TS_LEGACY_BUILDER_APP_ID }}
100+
private-key: ${{ secrets.TS_LEGACY_BUILDER_PRIVKEY }}
94101
- name: create release
95102
id: create_release
96103
uses: actions/create-release@v1
97104
env:
98-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
105+
GITHUB_TOKEN: ${{ steps.app-token.outputs.token }}
99106
with:
100107
# Release name can't be the same as tag name, sigh
101108
tag_name: build-${{ inputs.ref || github.sha }}

0 commit comments

Comments
 (0)