Skip to content

Commit 7672853

Browse files
authored
Use actions/create-github-app-token (#1009)
1 parent b89b67f commit 7672853

File tree

1 file changed

+9
-8
lines changed

1 file changed

+9
-8
lines changed

.github/workflows/docker.yaml

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -40,14 +40,15 @@ jobs:
4040
go-version: 1.21.5
4141

4242
# set up the test environment
43-
- uses: cybozu/octoken-action@v1
44-
id: octoken
43+
- uses: actions/create-github-app-token@v1
44+
id: e2e-test-token
4545
with:
46-
github_app_id: ${{ secrets.E2E_SETUP_GITHUB_APP_ID }}
47-
github_app_private_key: ${{ secrets.E2E_SETUP_GITHUB_APP_PRIVATE_KEY }}
46+
app-id: ${{ secrets.E2E_SETUP_GITHUB_APP_ID }}
47+
private-key: ${{ secrets.E2E_SETUP_GITHUB_APP_PRIVATE_KEY }}
48+
repositories: argocd-commenter-e2e-test
4849
- uses: actions/checkout@v4
4950
with:
50-
token: ${{ steps.octoken.outputs.token }}
51+
token: ${{ steps.e2e-test-token.outputs.token }}
5152
repository: int128/argocd-commenter-e2e-test
5253
path: e2e_test/argocd-commenter-e2e-test-repository
5354
- run: make -C e2e_test setup-fixture-branch
@@ -92,21 +93,21 @@ jobs:
9293
env:
9394
PULL_REQUEST_BODY: "e2e-test ${{ github.repository }}#${{ github.event.pull_request.number }}"
9495
DEPLOYMENT_URL: ${{ steps.deployment-app1.outputs.url }}
95-
GITHUB_TOKEN: ${{ steps.octoken.outputs.token }}
96+
GITHUB_TOKEN: ${{ steps.e2e-test-token.outputs.token }}
9697

9798
- run: make -C e2e_test restart-app1
9899

99100
- run: make -C e2e_test deploy-app2
100101
env:
101102
PULL_REQUEST_BODY: "e2e-test ${{ github.repository }}#${{ github.event.pull_request.number }}"
102103
DEPLOYMENT_URL: ${{ steps.deployment-app2.outputs.url }}
103-
GITHUB_TOKEN: ${{ steps.octoken.outputs.token }}
104+
GITHUB_TOKEN: ${{ steps.e2e-test-token.outputs.token }}
104105

105106
- run: make -C e2e_test deploy-app3
106107
env:
107108
PULL_REQUEST_BODY: "e2e-test ${{ github.repository }}#${{ github.event.pull_request.number }}"
108109
DEPLOYMENT_URL: ${{ steps.deployment-app3.outputs.url }}
109-
GITHUB_TOKEN: ${{ steps.octoken.outputs.token }}
110+
GITHUB_TOKEN: ${{ steps.e2e-test-token.outputs.token }}
110111

111112
# show logs
112113
- run: make -C e2e_test logs-argocd

0 commit comments

Comments
 (0)