Skip to content

Commit a2c3ad8

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

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
@@ -35,12 +35,24 @@ jobs:
3535
curl -fsSL https://github.com/github/hub/raw/master/script/get | bash -s 2.14.1
3636
sudo mv bin/hub /usr/local/bin
3737
38+
- name: Generate GitHub App token
39+
id: app-token
40+
if: |
41+
github.event.action == 'closed' &&
42+
github.event.pull_request.merged == true
43+
uses: actions/create-github-app-token@bcd2ba49218906704ab6c1aa796996da409d3eb1 # v3.2.0
44+
with:
45+
client-id: ${{ secrets.LGTM_APP_CLIENT_ID }}
46+
private-key: ${{ secrets.LGTM_APP_PRIVATE_KEY }}
47+
owner: ${{ github.repository_owner }}
48+
repositories: CHANGELOG
49+
3850
- name: Update release tracker
3951
if: |
4052
github.event.action == 'closed' &&
4153
github.event.pull_request.merged == true
4254
env:
4355
GITHUB_USER: ${{ github.actor }}
44-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
56+
GITHUB_TOKEN: ${{ steps.app-token.outputs.token }}
4557
run: |
4658
./hack/scripts/update-release-tracker.sh

0 commit comments

Comments
 (0)