Skip to content

Commit

Permalink
Remove GITHUB_TOKEN from "main" jobs
Browse files Browse the repository at this point in the history
  • Loading branch information
clementguillot committed Feb 24, 2024
1 parent 7c6bdd3 commit 8496559
Showing 1 changed file with 3 additions and 8 deletions.
11 changes: 3 additions & 8 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -38,8 +38,6 @@ 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 @@ -51,12 +49,12 @@ jobs:
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ env.GITHUB_TOKEN }}
password: ${{ secrets.GITHUB_TOKEN }}
- uses: ./.github/actions/nx-affected-target
with:
target: container
env:
INPUT_GITHUB_TOKEN: ${{ env.GITHUB_TOKEN }}
INPUT_GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

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

0 comments on commit 8496559

Please sign in to comment.