Skip to content

Commit e877148

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

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

0 commit comments

Comments
 (0)