Skip to content

Commit 6bbd5e0

Browse files
authored
Replace tibdex/github-app-token with actions/create-github-app-token (#297)
1 parent 41944d6 commit 6bbd5e0

2 files changed

Lines changed: 9 additions & 15 deletions

File tree

.github/workflows/bump-opbeans-ruby.yml

Lines changed: 5 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -23,15 +23,12 @@ jobs:
2323

2424
- name: Get token
2525
id: get_token
26-
uses: tibdex/github-app-token@3beb63f4bd073e61482598c45c71c1019b59b73a # v2.1.0
26+
uses: actions/create-github-app-token@v2
2727
with:
28-
app_id: ${{ secrets.OBS_AUTOMATION_APP_ID }}
29-
private_key: ${{ secrets.OBS_AUTOMATION_APP_PEM }}
30-
permissions: >-
31-
{
32-
"contents": "write",
33-
"pull_requests": "write"
34-
}
28+
app-id: ${{ secrets.OBS_AUTOMATION_APP_ID }}
29+
private-key: ${{ secrets.OBS_AUTOMATION_APP_PEM }}
30+
permission-contents: write
31+
permission-pull-requests: write
3532

3633
- uses: elastic/oblt-actions/updatecli/run@v1
3734
with:

.github/workflows/create-tag.yml

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -23,14 +23,11 @@ jobs:
2323

2424
- name: Get token
2525
id: get_token
26-
uses: tibdex/github-app-token@3beb63f4bd073e61482598c45c71c1019b59b73a # v2.1.0
26+
uses: actions/create-github-app-token@v2
2727
with:
28-
app_id: ${{ secrets.OBS_AUTOMATION_APP_ID }}
29-
private_key: ${{ secrets.OBS_AUTOMATION_APP_PEM }}
30-
permissions: >-
31-
{
32-
"contents": "write"
33-
}
28+
app-id: ${{ secrets.OBS_AUTOMATION_APP_ID }}
29+
private-key: ${{ secrets.OBS_AUTOMATION_APP_PEM }}
30+
permission-contents: write
3431

3532
- run: make create-release
3633
env:

0 commit comments

Comments
 (0)