Skip to content

Commit 7eedfc2

Browse files
committed
Use GitHub App token for release tracker comments
Signed-off-by: Tamal Saha <tamal@appscode.com>
1 parent 6ba49d4 commit 7eedfc2

1 file changed

Lines changed: 13 additions & 1 deletion

File tree

.github/workflows/release-tracker.yml

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,12 +32,24 @@ jobs:
3232
curl -fsSL https://github.com/github/hub/raw/master/script/get | bash -s 2.14.1
3333
sudo mv bin/hub /usr/local/bin
3434
35+
- name: Generate GitHub App token
36+
id: app-token
37+
if: |
38+
github.event.action == 'closed' &&
39+
github.event.pull_request.merged == true
40+
uses: actions/create-github-app-token@bcd2ba49218906704ab6c1aa796996da409d3eb1 # v3.2.0
41+
with:
42+
client-id: ${{ secrets.LGTM_APP_CLIENT_ID }}
43+
private-key: ${{ secrets.LGTM_APP_PRIVATE_KEY }}
44+
owner: ${{ github.repository_owner }}
45+
repositories: CHANGELOG
46+
3547
- name: Update release tracker
3648
if: |
3749
github.event.action == 'closed' &&
3850
github.event.pull_request.merged == true
3951
env:
4052
GITHUB_USER: ${{ github.actor }}
41-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
53+
GITHUB_TOKEN: ${{ steps.app-token.outputs.token }}
4254
run: |
4355
./hack/scripts/update-release-tracker.sh

0 commit comments

Comments
 (0)