Skip to content

Commit

Permalink
fix/pipeline: fix github token to replace GHCR manul token
Browse files Browse the repository at this point in the history
  • Loading branch information
catherine meng authored and catherine meng committed Aug 29, 2022
1 parent dfd82c0 commit 1b553c7
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 16 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/merge-dev.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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: |
Expand Down
8 changes: 4 additions & 4 deletions .github/workflows/merge-main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand All @@ -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
Expand All @@ -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: |
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/pr-close.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand All @@ -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: |
Expand Down
14 changes: 7 additions & 7 deletions .github/workflows/pr-open.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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:
Expand Down Expand Up @@ -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:
Expand Down Expand Up @@ -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: |
Expand Down

0 comments on commit 1b553c7

Please sign in to comment.