Skip to content

Commit

Permalink
Merge pull request #334 from product-os/kyle/hide-ghcr-token-secret
Browse files Browse the repository at this point in the history
Remove the global GHCR_TOKEN env var as it contains secrets
  • Loading branch information
bulldozer-balena[bot] authored Nov 24, 2022
2 parents c0d3ae0 + 93c0b56 commit 9b7db86
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 6 deletions.
5 changes: 2 additions & 3 deletions .github/workflows/flowzone.yml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 2 additions & 3 deletions flowzone.yml
Original file line number Diff line number Diff line change
Expand Up @@ -180,7 +180,6 @@ concurrency:

env:
GHCR_USER: "flowzone" # does not seem to matter what is used here
GHCR_TOKEN: ${{ secrets.GHCR_TOKEN || secrets.FLOWZONE_TOKEN }}
NPM_REGISTRY: registry.npmjs.org
CARGO_REGISTRY: crates.io

Expand Down Expand Up @@ -1053,7 +1052,7 @@ jobs:
with:
registry: ghcr.io
username: ${{ env.GHCR_USER }}
password: ${{ env.GHCR_TOKEN }}
password: ${{ secrets.GHCR_TOKEN || secrets.FLOWZONE_TOKEN }}

- name: Login to Docker Hub
continue-on-error: true
Expand Down Expand Up @@ -1199,7 +1198,7 @@ jobs:
with:
registry: ghcr.io
username: ${{ env.GHCR_USER }}
password: ${{ env.GHCR_TOKEN }}
password: ${{ secrets.GHCR_TOKEN || secrets.FLOWZONE_TOKEN }}

- name: Login to Docker Hub
continue-on-error: true
Expand Down

0 comments on commit 9b7db86

Please sign in to comment.