Skip to content

Commit 48f76e1

Browse files
committed
Use actions/create-github-app-token in the Dependabot workflow
The Dependabot workflow failed at the GitHub App token step with "A JSON web token could not be decoded" using the deprecated tibdex/github-app-token action, so it could not push the license SHA and changelog updates to the PR branch. Switch to actions/create-github-app-token, matching opensearch-java and opensearch-net. Resolves #799 Signed-off-by: Sotaro Hikita <bering1814@gmail.com>
1 parent 408dca7 commit 48f76e1

1 file changed

Lines changed: 6 additions & 6 deletions

File tree

.github/workflows/dependabot_pr.yml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -18,17 +18,17 @@ jobs:
1818
steps:
1919
- name: GitHub App token
2020
id: github_app_token
21-
uses: tibdex/github-app-token@1901dc7d52169e70c27a8da37aef0d423e2867a2 # v1.5.0
21+
uses: actions/create-github-app-token@bcd2ba49218906704ab6c1aa796996da409d3eb1 # v3
2222
with:
23-
app_id: ${{ secrets.APP_ID }}
24-
private_key: ${{ secrets.APP_PRIVATE_KEY }}
25-
installation_id: 22958780
23+
app-id: ${{ secrets.APP_ID }}
24+
private-key: ${{ secrets.APP_PRIVATE_KEY }}
2625

2726
- name: Check out code
28-
uses: actions/checkout@ee0669bd1cc54295c223e0bb666b733df41de1c5 # v2
27+
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
2928
with:
3029
token: ${{ steps.github_app_token.outputs.token }}
31-
30+
ref: ${{ github.event.pull_request.head.ref }}
31+
repository: ${{ github.event.pull_request.head.repo.full_name }}
3232

3333
- name: Set up JDK 11
3434
uses: actions/setup-java@17f84c3641ba7b8f6deff6309fc4c864478f5d62 # v3

0 commit comments

Comments
 (0)