Skip to content

Commit f3cd136

Browse files
Copilotv1v
andcommitted
Replace tibdex/github-app-token with actions/create-github-app-token@v2
Co-authored-by: v1v <[email protected]>
1 parent 36f49e1 commit f3cd136

File tree

2 files changed

+9
-15
lines changed

2 files changed

+9
-15
lines changed

.github/workflows/labeler.yml

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -20,14 +20,11 @@ jobs:
2020
steps:
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-
"members": "read"
30-
}
25+
app-id: ${{ secrets.OBS_AUTOMATION_APP_ID }}
26+
private-key: ${{ secrets.OBS_AUTOMATION_APP_PEM }}
27+
permission-members: read
3128
- name: Add agent-python label
3229
run: gh issue edit "$NUMBER" --add-label "agent-python" --repo "${{ github.repository }}"
3330
- id: is_elastic_member

.github/workflows/updatecli.yml

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

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

3229
- uses: docker/login-action@184bdaa0721073962dff0199f1fb9940f07167d1 # v3.5.0
3330
with:

0 commit comments

Comments
 (0)