Skip to content

Commit a693dac

Browse files
authored
Replace tibdex/github-app-token with actions/create-github-app-token (#221)
1 parent 9d079e0 commit a693dac

File tree

3 files changed

+14
-23
lines changed

3 files changed

+14
-23
lines changed

.github/workflows/addToProject.yml

Lines changed: 5 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -13,15 +13,12 @@ jobs:
1313
steps:
1414
- name: Get token
1515
id: get_token
16-
uses: tibdex/github-app-token@3beb63f4bd073e61482598c45c71c1019b59b73a # v2.1.0
16+
uses: actions/create-github-app-token@v2
1717
with:
18-
app_id: ${{ secrets.OBS_AUTOMATION_APP_ID }}
19-
private_key: ${{ secrets.OBS_AUTOMATION_APP_PEM }}
20-
permissions: >-
21-
{
22-
"organization_projects": "write",
23-
"issues": "read"
24-
}
18+
app-id: ${{ secrets.OBS_AUTOMATION_APP_ID }}
19+
private-key: ${{ secrets.OBS_AUTOMATION_APP_PEM }}
20+
permission-organization-projects: write
21+
permission-issues: read
2522
- name: Get project data
2623
env:
2724
GITHUB_TOKEN: ${{ steps.get_token.outputs.token }}

.github/workflows/labeler.yml

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -17,14 +17,11 @@ jobs:
1717
steps:
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-
}
22+
app-id: ${{ secrets.OBS_AUTOMATION_APP_ID }}
23+
private-key: ${{ secrets.OBS_AUTOMATION_APP_PEM }}
24+
permission-members: read
2825

2926
- id: is_elastic_member
3027
uses: elastic/oblt-actions/github/is-member-of@v1

.github/workflows/update-specs.yml

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

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

3431
- uses: docker/login-action@184bdaa0721073962dff0199f1fb9940f07167d1 # v3.5.0
3532
with:

0 commit comments

Comments
 (0)