Skip to content

Commit 2ef12fb

Browse files
authored
Replace tibdex/github-app-token with actions/create-github-app-token (#801)
1 parent b368e46 commit 2ef12fb

File tree

3 files changed

+19
-28
lines changed

3 files changed

+19
-28
lines changed

.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/pre-post-release.yml

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

6262
- name: Get token
6363
id: get_token
64-
uses: tibdex/github-app-token@3beb63f4bd073e61482598c45c71c1019b59b73a # v2.1.0
64+
uses: actions/create-github-app-token@v2
6565
with:
66-
app_id: ${{ secrets.OBS_AUTOMATION_APP_ID }}
67-
private_key: ${{ secrets.OBS_AUTOMATION_APP_PEM }}
68-
permissions: >-
69-
{
70-
"contents": "write",
71-
"pull_requests": "write"
72-
}
73-
repositories: >-
74-
["elastic-otel-java"]
66+
app-id: ${{ secrets.OBS_AUTOMATION_APP_ID }}
67+
private-key: ${{ secrets.OBS_AUTOMATION_APP_PEM }}
68+
permission-contents: write
69+
permission-pull-requests: write
70+
repositories: |
71+
elastic-otel-java
7572
7673
- uses: actions/checkout@v5
7774
with:

.github/workflows/updatecli.yml

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

1717
- name: Get token
1818
id: get_token
19-
uses: tibdex/github-app-token@3beb63f4bd073e61482598c45c71c1019b59b73a # v2.1.0
19+
uses: actions/create-github-app-token@v2
2020
with:
21-
app_id: ${{ secrets.OBS_AUTOMATION_APP_ID }}
22-
private_key: ${{ secrets.OBS_AUTOMATION_APP_PEM }}
23-
permissions: >-
24-
{
25-
"contents": "write",
26-
"pull_requests": "write"
27-
}
21+
app-id: ${{ secrets.OBS_AUTOMATION_APP_ID }}
22+
private-key: ${{ secrets.OBS_AUTOMATION_APP_PEM }}
23+
permission-contents: write
24+
permission-pull-requests: write
2825

2926
- uses: elastic/oblt-actions/updatecli/run@v1
3027
with:

0 commit comments

Comments
 (0)