diff --git a/.github/workflows/merge-dev.yml b/.github/workflows/merge-dev.yml index ca76aaca3c..7f56b67bf7 100644 --- a/.github/workflows/merge-dev.yml +++ b/.github/workflows/merge-dev.yml @@ -134,7 +134,7 @@ jobs: - name: Delete old packages uses: davahome/ghcr-cleanup@v1 with: - token: ${{ secrets.GHCR_TOKEN }} + token: ${{ secrets.GITHUB_TOKEN }} package: ${{ github.event.repository.name }} owner: orgs/bcgov skip_tags: prod-frontend,prod-backend @@ -200,7 +200,7 @@ jobs: - uses: actions/setup-node@v1 with: node-version: 10 - TOKEN: ${ secrets.GHCR_TOKEN } + TOKEN: ${ secrets.GITHUB_TOKEN } - name: Get GWA Command Line run: | diff --git a/.github/workflows/merge-main.yml b/.github/workflows/merge-main.yml index b7542d5c6a..76eb5565a7 100644 --- a/.github/workflows/merge-main.yml +++ b/.github/workflows/merge-main.yml @@ -190,7 +190,7 @@ jobs: - name: Delete old packages uses: davahome/ghcr-cleanup@v1 with: - token: ${{ secrets.GHCR_TOKEN }} + token: ${{ secrets.GITHUB_TOKEN }} package: ${{ github.event.repository.name }} owner: orgs/bcgov skip_tags: prod-frontend,prod-backend @@ -347,7 +347,7 @@ jobs: with: registry: ghcr.io repository: ${{ github.repository }} - token: ${{ secrets.GHCR_TOKEN }} + token: ${{ secrets.GITHUB_TOKEN }} target: ${{ env.PREV }}-backend tags: | prod-backend @@ -357,7 +357,7 @@ jobs: with: registry: ghcr.io repository: ${{ github.repository }} - token: ${{ secrets.GHCR_TOKEN }} + token: ${{ secrets.GITHUB_TOKEN }} target: ${{ env.PREV }}-frontend tags: | prod-frontend @@ -376,7 +376,7 @@ jobs: - uses: actions/setup-node@v1 with: node-version: 10 - TOKEN: ${ secrets.GHCR_TOKEN } + TOKEN: ${ secrets.GITHUB_TOKEN } - name: Get GWA Command Line run: | diff --git a/.github/workflows/pr-close.yml b/.github/workflows/pr-close.yml index d1e09f71a9..402515625d 100644 --- a/.github/workflows/pr-close.yml +++ b/.github/workflows/pr-close.yml @@ -37,7 +37,7 @@ jobs: with: registry: ghcr.io repository: ${{ github.repository }} - token: ${{ secrets.GHCR_TOKEN }} + token: ${{ secrets.GITHUB_TOKEN }} target: ${{ github.event.number }}-backend tags: | test-backend @@ -46,7 +46,7 @@ jobs: with: registry: ghcr.io repository: ${{ github.repository }} - token: ${{ secrets.GHCR_TOKEN }} + token: ${{ secrets.GITHUB_TOKEN }} target: ${{ github.event.number }}-frontend tags: | test-frontend @@ -59,7 +59,7 @@ jobs: - name: Pre-merge update uses: mshick/add-pr-comment@v1 env: - GITHUB_TOKEN: ${{ secrets.GHCR_TOKEN }} + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} with: allow-repeats: false message: | diff --git a/.github/workflows/pr-open.yml b/.github/workflows/pr-open.yml index 872660c4aa..baa7c18076 100644 --- a/.github/workflows/pr-open.yml +++ b/.github/workflows/pr-open.yml @@ -49,7 +49,7 @@ jobs: with: registry: ${{ env.REGISTRY }} repository: ${{ github.repository }} - token: ${{ secrets.GHCR_TOKEN }} + token: ${{ secrets.GITHUB_TOKEN }} target: prod-backend tags: | ${{ github.event.number }}-backend @@ -92,7 +92,7 @@ jobs: with: registry: ${{ env.REGISTRY }} repository: ${{ github.repository }} - token: ${{ secrets.GHCR_TOKEN }} + token: ${{ secrets.GITHUB_TOKEN }} target: prod-frontend tags: | ${{ github.event.number }}-frontend @@ -125,7 +125,7 @@ jobs: with: registry: ${{ env.REGISTRY }} username: ${{ github.actor }} - password: ${{ secrets.GHCR_TOKEN }} + password: ${{ secrets.GITHUB_TOKEN }} - name: Build and push Backend Docker image uses: docker/build-push-action@v2 @@ -164,7 +164,7 @@ jobs: with: registry: ${{ env.REGISTRY }} username: ${{ github.actor }} - password: ${{ secrets.GHCR_TOKEN }} + password: ${{ secrets.GITHUB_TOKEN }} - name: Build and push Backend Docker image uses: docker/build-push-action@v2 @@ -218,7 +218,7 @@ jobs: with: title: Backend coverage report delete-old-comments: true - github-token: ${{ secrets.GHCR_TOKEN }} + github-token: ${{ secrets.GITHUB_TOKEN }} lcov-file: ./backend/coverage/lcov.info tests-frontend: @@ -264,7 +264,7 @@ jobs: with: title: Frontend coverage report delete-old-comments: true - github-token: ${{ secrets.GHCR_TOKEN }} + github-token: ${{ secrets.GITHUB_TOKEN }} lcov-file: ./frontend/coverage/lcov.info sonarcloud: @@ -381,7 +381,7 @@ jobs: - name: DEV Deployment update uses: mshick/add-pr-comment@v1 env: - GITHUB_TOKEN: ${{ secrets.GHCR_TOKEN }} + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} with: allow-repeats: false message: |