From e398dc4ca325c1c529048ccf0f77d7da21b44add Mon Sep 17 00:00:00 2001 From: Super Zheng Date: Fri, 16 Dec 2022 14:41:26 +0800 Subject: [PATCH] fix(workflows): update Github bot app key and id configuration (#2810) --- .github/workflows/gh_action_approve_checks.yml | 8 ++++---- .github/workflows/gh_pr_checks_approval.yml | 4 ++-- .github/workflows/gh_pr_review_notification.yml | 4 ++-- 3 files changed, 8 insertions(+), 8 deletions(-) diff --git a/.github/workflows/gh_action_approve_checks.yml b/.github/workflows/gh_action_approve_checks.yml index 30922ba9df8..85bd6da45fc 100644 --- a/.github/workflows/gh_action_approve_checks.yml +++ b/.github/workflows/gh_action_approve_checks.yml @@ -26,8 +26,8 @@ jobs: uses: navikt/github-app-token-generator@v1 id: get-token with: - private-key: ${{ secrets.PRIVATE_KEY }} - app-id: ${{ secrets.APP_ID }} + private-key: ${{ secrets.ACTION_PRIVATE_KEY }} + app-id: ${{ secrets.ACTION_APP_ID }} - name: Action uses: actions/github-script@v6.3.3 env: @@ -124,8 +124,8 @@ jobs: uses: navikt/github-app-token-generator@v1 id: get-token with: - private-key: ${{ secrets.PRIVATE_KEY }} - app-id: ${{ secrets.APP_ID }} + private-key: ${{ secrets.ACTION_PRIVATE_KEY }} + app-id: ${{ secrets.ACTION_APP_ID }} - name: Action uses: actions/github-script@v6.3.3 with: diff --git a/.github/workflows/gh_pr_checks_approval.yml b/.github/workflows/gh_pr_checks_approval.yml index aee8abbe361..8999516ecfd 100644 --- a/.github/workflows/gh_pr_checks_approval.yml +++ b/.github/workflows/gh_pr_checks_approval.yml @@ -112,8 +112,8 @@ jobs: if: steps.find_comment.outputs.comment-id == '' uses: navikt/github-app-token-generator@v1 with: - private-key: ${{ secrets.PRIVATE_KEY }} - app-id: ${{ secrets.APP_ID }} + private-key: ${{ secrets.BOT_APP_KEY }} + app-id: ${{ secrets.BOT_APP_ID }} - name: Comment uses: peter-evans/create-or-update-comment@v2 if: steps.get-token.outputs.token != '' diff --git a/.github/workflows/gh_pr_review_notification.yml b/.github/workflows/gh_pr_review_notification.yml index 5c3c6979421..e285f4effda 100644 --- a/.github/workflows/gh_pr_review_notification.yml +++ b/.github/workflows/gh_pr_review_notification.yml @@ -109,8 +109,8 @@ jobs: if: steps.find_comment.outputs.comment-id == '' && steps.parse_workflow_output.outputs.review_state == 'changes_requested' uses: navikt/github-app-token-generator@v1 with: - private-key: ${{ secrets.PRIVATE_KEY }} - app-id: ${{ secrets.APP_ID }} + private-key: ${{ secrets.BOT_APP_KEY }} + app-id: ${{ secrets.BOT_APP_ID }} - name: Comment uses: peter-evans/create-or-update-comment@v2 if: steps.get-token.outputs.token != ''