From c5225f4a659eea81a3c07df6c907636f99a73796 Mon Sep 17 00:00:00 2001 From: Ruben Romero Montes Date: Tue, 14 Nov 2023 18:19:11 +0100 Subject: [PATCH] chore: use GITHUB_TOKEN Signed-off-by: Ruben Romero Montes --- .github/workflows/cicd.yaml | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/.github/workflows/cicd.yaml b/.github/workflows/cicd.yaml index afcb129..c221f2e 100644 --- a/.github/workflows/cicd.yaml +++ b/.github/workflows/cicd.yaml @@ -39,6 +39,7 @@ jobs: with: definition-file: api/v4/openapi.yaml deploy-packages: + if: github.repository_owner == 'RHEcosystemAppEng' runs-on: ubuntu-latest permissions: contents: read @@ -52,8 +53,8 @@ jobs: with: java-version: '17' distribution: 'temurin' + - run: echo "//registry.npmjs.org/:_authToken=${{ secrets.GITHUB_TOKEN }}" > ~/.npmrc - name: Build and Publish to GitHub Maven Packages run: mvn -B deploy --file pom.xml env: - GITHUB_TOKEN: ${{ github.token }} - NODE_AUTH_TOKEN: ${{ github.token }} \ No newline at end of file + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} \ No newline at end of file