Skip to content

Commit cdc578c

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

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
@@ -45,12 +45,24 @@ jobs:
4545
curl -fsSL https://github.com/github/hub/raw/master/script/get | bash -s 2.14.1
4646
sudo mv bin/hub /usr/local/bin
4747
48+
- name: Generate GitHub App token
49+
id: app-token
50+
if: |
51+
github.event.action == 'closed' &&
52+
github.event.pull_request.merged == true
53+
uses: actions/create-github-app-token@bcd2ba49218906704ab6c1aa796996da409d3eb1 # v3.2.0
54+
with:
55+
client-id: ${{ secrets.LGTM_APP_CLIENT_ID }}
56+
private-key: ${{ secrets.LGTM_APP_PRIVATE_KEY }}
57+
owner: ${{ github.repository_owner }}
58+
repositories: CHANGELOG
59+
4860
- name: Update release tracker
4961
if: |
5062
github.event.action == 'closed' &&
5163
github.event.pull_request.merged == true
5264
env:
5365
GITHUB_USER: ${{ github.actor }}
54-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
66+
GITHUB_TOKEN: ${{ steps.app-token.outputs.token }}
5567
run: |
5668
./hack/scripts/update-release-tracker.sh

0 commit comments

Comments
 (0)