Skip to content

Commit

Permalink
Use actions/create-github-app-token (#1009)
Browse files Browse the repository at this point in the history
  • Loading branch information
int128 authored Dec 10, 2023
1 parent b89b67f commit 7672853
Showing 1 changed file with 9 additions and 8 deletions.
17 changes: 9 additions & 8 deletions .github/workflows/docker.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -40,14 +40,15 @@ jobs:
go-version: 1.21.5

# set up the test environment
- uses: cybozu/octoken-action@v1
id: octoken
- uses: actions/create-github-app-token@v1
id: e2e-test-token
with:
github_app_id: ${{ secrets.E2E_SETUP_GITHUB_APP_ID }}
github_app_private_key: ${{ secrets.E2E_SETUP_GITHUB_APP_PRIVATE_KEY }}
app-id: ${{ secrets.E2E_SETUP_GITHUB_APP_ID }}
private-key: ${{ secrets.E2E_SETUP_GITHUB_APP_PRIVATE_KEY }}
repositories: argocd-commenter-e2e-test
- uses: actions/checkout@v4
with:
token: ${{ steps.octoken.outputs.token }}
token: ${{ steps.e2e-test-token.outputs.token }}
repository: int128/argocd-commenter-e2e-test
path: e2e_test/argocd-commenter-e2e-test-repository
- run: make -C e2e_test setup-fixture-branch
Expand Down Expand Up @@ -92,21 +93,21 @@ jobs:
env:
PULL_REQUEST_BODY: "e2e-test ${{ github.repository }}#${{ github.event.pull_request.number }}"
DEPLOYMENT_URL: ${{ steps.deployment-app1.outputs.url }}
GITHUB_TOKEN: ${{ steps.octoken.outputs.token }}
GITHUB_TOKEN: ${{ steps.e2e-test-token.outputs.token }}

- run: make -C e2e_test restart-app1

- run: make -C e2e_test deploy-app2
env:
PULL_REQUEST_BODY: "e2e-test ${{ github.repository }}#${{ github.event.pull_request.number }}"
DEPLOYMENT_URL: ${{ steps.deployment-app2.outputs.url }}
GITHUB_TOKEN: ${{ steps.octoken.outputs.token }}
GITHUB_TOKEN: ${{ steps.e2e-test-token.outputs.token }}

- run: make -C e2e_test deploy-app3
env:
PULL_REQUEST_BODY: "e2e-test ${{ github.repository }}#${{ github.event.pull_request.number }}"
DEPLOYMENT_URL: ${{ steps.deployment-app3.outputs.url }}
GITHUB_TOKEN: ${{ steps.octoken.outputs.token }}
GITHUB_TOKEN: ${{ steps.e2e-test-token.outputs.token }}

# show logs
- run: make -C e2e_test logs-argocd
Expand Down

0 comments on commit 7672853

Please sign in to comment.