From 84965596bd074c46611a427e2f54ffd253f32333 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Cl=C3=A9ment=20Guillot?= Date: Sat, 24 Feb 2024 21:27:44 +0100 Subject: [PATCH] Remove GITHUB_TOKEN from "main" jobs --- .github/workflows/ci.yaml | 11 +++-------- 1 file changed, 3 insertions(+), 8 deletions(-) diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index c2030362..ece6df1e 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -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: @@ -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 @@ -93,8 +91,6 @@ jobs: permissions: contents: read packages: write - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} steps: - uses: actions/checkout@v4 with: @@ -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