Skip to content

Commit

Permalink
Merge pull request #39 from clementguillot/38-remove-duplicate-secret…
Browse files Browse the repository at this point in the history
…-usages-in-ci-build

Store secret as environment variable
  • Loading branch information
clementguillot authored Feb 23, 2024
2 parents 1565609 + 5f8bebb commit 7c6bdd3
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,8 @@ jobs:
- build
if: github.event_name == 'pull_request'
runs-on: ubuntu-latest
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
steps:
- uses: actions/checkout@v4
with:
Expand All @@ -49,12 +51,12 @@ jobs:
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
password: ${{ env.GITHUB_TOKEN }}
- uses: ./.github/actions/nx-affected-target
with:
target: container
env:
INPUT_GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
INPUT_GITHUB_TOKEN: ${{ env.GITHUB_TOKEN }}

test:
runs-on: ubuntu-latest
Expand Down Expand Up @@ -91,6 +93,8 @@ jobs:
permissions:
contents: read
packages: write
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
steps:
- uses: actions/checkout@v4
with:
Expand All @@ -102,10 +106,10 @@ jobs:
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
password: ${{ env.GITHUB_TOKEN }}
- uses: ./.github/actions/nx-affected-target
with:
target: container
env:
INPUT_GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
INPUT_GITHUB_TOKEN: ${{ env.GITHUB_TOKEN }}
INPUT_PUSH: true

0 comments on commit 7c6bdd3

Please sign in to comment.