Browse Source

fix github credentials (#3656)

Signed-off-by: Gustavo Carvalho <gustavo.carvalho@productmadness.com>
Gustavo Fernandes de Carvalho 1 year ago
parent
commit
2be716aff4
1 changed files with 4 additions and 4 deletions
  1. 4 4
      .github/workflows/e2e.yml

+ 4 - 4
.github/workflows/e2e.yml

@@ -103,7 +103,7 @@ jobs:
         # Conveniently, job.status maps to https://developer.github.com/v3/checks/runs/#update-a-check-run
         conclusion: ${{ job.status }}
       with:
-        github-token: ${{ secrets.GITHUB_TOKEN }}
+        github-token: ${{ secrets.TEST_GITHUB_TOKEN }}
         script: |
           const { data: pull } = await github.rest.pulls.get({
             ...context.repo,
@@ -131,14 +131,14 @@ jobs:
       uses: peter-evans/find-comment@3eae4d37986fb5a8592848f6a574fdf654e61f9e # v3.1.0
       id: fc
       with:
-        token: ${{ secrets.GITHUB_TOKEN }}
+        token: ${{ secrets.TEST_GITHUB_TOKEN }}
         issue-number: ${{ github.event.client_payload.pull_request.number }}
         body-includes: /ok-to-test sha=${{ env.TARGET_SHA }}
     - name: Update on Succeess
       if: always() && steps.fc.outputs.comment-id != '' &&  steps.e2e.conclusion == 'success'
       uses: peter-evans/create-or-update-comment@71345be0265236311c031f5c7866368bd1eff043 # v4.0.0
       with:
-        token: ${{ secrets.GITHUB_TOKEN }}
+        token: ${{ secrets.TEST_GITHUB_TOKEN }}
         issue-number: ${{ github.event.client_payload.pull_request.number }}
         body: |
             [Bot] - :white_check_mark: [e2e tests pass](https://github.com/external-secrets/external-secrets/actions/runs/${{ steps.update-check-run.outputs.result.id }})
@@ -148,7 +148,7 @@ jobs:
       if: always() && steps.fc.outputs.comment-id != '' &&  steps.e2e.conclusion != 'success'
       uses: peter-evans/create-or-update-comment@71345be0265236311c031f5c7866368bd1eff043 # v4.0.0
       with:
-        token: ${{ secrets.GITHUB_TOKEN }}
+        token: ${{ secrets.TEST_GITHUB_TOKEN }}
         issue-number: ${{ github.event.client_payload.pull_request.number }}
         body: |
             [Bot] - :x: [e2e tests failed](https://github.com/external-secrets/external-secrets/actions/runs/${{ steps.update-check-run.outputs.result.id }})