Skip to content

Commit 7d52c9a

Browse files
Copilotv1v
andauthored
Replace tibdex/github-app-token with actions/create-github-app-token (#4221)
* Initial plan * Replace tibdex/github-app-token with actions/create-github-app-token in all workflows Co-authored-by: v1v <[email protected]> --------- Co-authored-by: copilot-swe-agent[bot] <[email protected]> Co-authored-by: v1v <[email protected]>
1 parent 7289979 commit 7d52c9a

File tree

4 files changed

+24
-36
lines changed

4 files changed

+24
-36
lines changed

.github/workflows/addToProject.yml

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

2724
- name: Get project data
2825
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/pre-post-release.yml

Lines changed: 7 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -56,17 +56,14 @@ jobs:
5656
steps:
5757
- name: Get token
5858
id: get_token
59-
uses: tibdex/github-app-token@3beb63f4bd073e61482598c45c71c1019b59b73a # v2.1.0
59+
uses: actions/create-github-app-token@v2
6060
with:
61-
app_id: ${{ secrets.OBS_AUTOMATION_APP_ID }}
62-
private_key: ${{ secrets.OBS_AUTOMATION_APP_PEM }}
63-
permissions: >-
64-
{
65-
"contents": "write",
66-
"pull_requests": "write"
67-
}
68-
repositories: >-
69-
["apm-agent-java"]
61+
app-id: ${{ secrets.OBS_AUTOMATION_APP_ID }}
62+
private-key: ${{ secrets.OBS_AUTOMATION_APP_PEM }}
63+
permission-contents: write
64+
permission-pull-requests: write
65+
repositories: |
66+
apm-agent-java
7067
7168
- uses: actions/checkout@v5
7269
with:

.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)