From 9d2e041da655f97e73e2fcd96f10e4a78af8e77b Mon Sep 17 00:00:00 2001 From: Filipe C Menezes Date: Fri, 11 Apr 2025 16:16:52 +0100 Subject: [PATCH 1/2] chore: check npm token --- .github/workflows/code_health.yaml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/.github/workflows/code_health.yaml b/.github/workflows/code_health.yaml index 5a99be15..95865b33 100644 --- a/.github/workflows/code_health.yaml +++ b/.github/workflows/code_health.yaml @@ -42,5 +42,9 @@ jobs: cache: "npm" - name: Install dependencies run: npm ci + - name: Check NPM + env: + NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} + run: npm whoami - name: Run tests run: npm test From 357ea985bcb0eabbb0ef3e8f5f3a7dade22ac601 Mon Sep 17 00:00:00 2001 From: Filipe C Menezes Date: Fri, 11 Apr 2025 16:19:37 +0100 Subject: [PATCH 2/2] fix: check --- .github/workflows/code_health.yaml | 19 +++++++++++++++---- 1 file changed, 15 insertions(+), 4 deletions(-) diff --git a/.github/workflows/code_health.yaml b/.github/workflows/code_health.yaml index 95865b33..d2d8c057 100644 --- a/.github/workflows/code_health.yaml +++ b/.github/workflows/code_health.yaml @@ -6,6 +6,21 @@ on: - main pull_request: jobs: + check-npm: + runs-on: ubuntu-latest + environment: Production + steps: + - uses: GitHubSecurityLab/actions-permissions/monitor@v1 + - uses: actions/checkout@v4 + - uses: actions/setup-node@v4 + with: + node-version-file: package.json + cache: "npm" + - name: Check NPM + env: + NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} + run: npm whoami + check-style: runs-on: ubuntu-latest steps: @@ -42,9 +57,5 @@ jobs: cache: "npm" - name: Install dependencies run: npm ci - - name: Check NPM - env: - NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} - run: npm whoami - name: Run tests run: npm test