Skip to content

Commit 2ecaaaf

Browse files
Copilotv1v
andauthored
Replace tibdex/github-app-token with actions/create-github-app-token (#104)
* Initial plan * Replace tibdex/github-app-token with actions/create-github-app-token in workflow files Co-authored-by: v1v <[email protected]> --------- Co-authored-by: copilot-swe-agent[bot] <[email protected]> Co-authored-by: v1v <[email protected]>
1 parent fa475c9 commit 2ecaaaf

File tree

2 files changed

+10
-12
lines changed

2 files changed

+10
-12
lines changed

.github/workflows/e2e.yml

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

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

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

.github/workflows/validate.yaml

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -30,14 +30,15 @@ jobs:
3030
- name: Validate
3131
run: make test
3232

33-
- uses: tibdex/github-app-token@3beb63f4bd073e61482598c45c71c1019b59b73a # v2.1.0
33+
- name: Get token from GitHub App
34+
id: generate_testing_token
35+
uses: actions/create-github-app-token@v2
3436
# Only run e2e tests from the main branch as we need some credentials
3537
# that we don't want to risk leaking from pullrequest opened by random contributors
3638
if: github.ref == 'refs/heads/main'
37-
id: generate_testing_token
3839
with:
39-
app_id: ${{ secrets.ELASTIC_OBSERVABILITY_APP_ID }}
40-
private_key: ${{ secrets.ELASTIC_OBSERVABILITY_APP_PEM }}
40+
app-id: ${{ secrets.ELASTIC_OBSERVABILITY_APP_ID }}
41+
private-key: ${{ secrets.ELASTIC_OBSERVABILITY_APP_PEM }}
4142

4243
- name: e2e tests
4344
# Only run e2e tests from the main branch as we need some credentials

0 commit comments

Comments
 (0)