Skip to content

Commit 72630ea

Browse files
authored
Replace tibdex/github-app-token with actions/create-github-app-token (#421)
1 parent de26738 commit 72630ea

3 files changed

Lines changed: 16 additions & 25 deletions

File tree

.github/workflows/create-tag.yml

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

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

3431
- run: make create-release
3532
env:

.github/workflows/labeler.yml

Lines changed: 7 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -17,17 +17,14 @@ jobs:
1717

1818
- name: Get token
1919
id: get_token
20-
uses: tibdex/github-app-token@3beb63f4bd073e61482598c45c71c1019b59b73a # v2.1.0
20+
uses: actions/create-github-app-token@v2
2121
with:
22-
app_id: ${{ secrets.OBS_AUTOMATION_APP_ID }}
23-
private_key: ${{ secrets.OBS_AUTOMATION_APP_PEM }}
24-
permissions: >-
25-
{
26-
"members": "read",
27-
"organization_projects": "write",
28-
"issues": "read",
29-
"pull_requests": "write"
30-
}
22+
app-id: ${{ secrets.OBS_AUTOMATION_APP_ID }}
23+
private-key: ${{ secrets.OBS_AUTOMATION_APP_PEM }}
24+
permission-members: read
25+
permission-organization-projects: write
26+
permission-issues: read
27+
permission-pull-requests: write
3128

3229
- name: Add agent-java label
3330
run: gh issue edit "${NUMBER}" --add-label "agent-java" --repo "${{ github.repository }}"

.github/workflows/updatecli.yml

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

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

3330
- uses: elastic/oblt-actions/updatecli/run@v1
3431
with:

0 commit comments

Comments
 (0)