Skip to content

Commit cd1f74b

Browse files
committed
Fix token usage for changelog helper
Signed-off-by: Kunal Kotwani <[email protected]>
1 parent f16ea9c commit cd1f74b

File tree

2 files changed

+13
-1
lines changed

2 files changed

+13
-1
lines changed

.github/workflows/changelog_verifier.yml

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,21 @@ jobs:
77
# Enforces the update of a changelog file on every pull request
88
verify-changelog:
99
runs-on: ubuntu-latest
10+
permissions:
11+
pull-requests: write
12+
contents: write
1013
steps:
14+
- name: GitHub App token
15+
id: github_app_token
16+
uses: tibdex/[email protected]
17+
with:
18+
app_id: ${{ secrets.APP_ID }}
19+
private_key: ${{ secrets.APP_PRIVATE_KEY }}
20+
installation_id: 22958780
21+
1122
- uses: actions/checkout@v3
1223
with:
13-
token: ${{ secrets.GITHUB_TOKEN }}
24+
token: ${{ steps.github_app_token.outputs.token }}
1425
ref: ${{ github.event.pull_request.head.sha }}
1526

1627
- uses: dangoslen/dependabot-changelog-helper@v1

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@ Inspired from [Keep a Changelog](https://keepachangelog.com/en/1.0.0/)
2525
- Do not fail replica shard due to primary closure ([#4133](https://github.com/opensearch-project/OpenSearch/pull/4133))
2626
- Add timeout on Mockito.verify to reduce flakyness in testReplicationOnDone test([#4314](https://github.com/opensearch-project/OpenSearch/pull/4314))
2727
- Commit workflow for dependabot changelog helper ([#4331](https://github.com/opensearch-project/OpenSearch/pull/4331))
28+
- Token usage for dependabot changelog helper ([#4351](https://github.com/opensearch-project/OpenSearch/pull/4351))
2829

2930
### Security
3031
- CVE-2022-25857 org.yaml:snakeyaml DOS vulnerability ([#4341](https://github.com/opensearch-project/OpenSearch/pull/4341))

0 commit comments

Comments
 (0)