X-Git-Url: https://git.piment-noir.org/?a=blobdiff_plain;f=.github%2Fworkflows%2Fci.yml;h=2e3a29104aeb5511843842ca01ead77955df9b44;hb=be9f397bd55b221c24bacb110a64c21f012f36ab;hp=348a6720dee705aa24738de02cffa63b3870064e;hpb=f70b733f029455a227628814cd396b1abfd4cd1c;p=e-mobility-charging-stations-simulator.git diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 348a6720..2e3a2910 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -52,6 +52,9 @@ jobs: cache: 'pnpm' - name: pnpm install run: pnpm install --ignore-scripts --frozen-lockfile + - name: pnpm audit + if: ${{ matrix.os == 'ubuntu-latest' && matrix.node == '20.x' }} + run: pnpm audit --prod - name: pnpm lint if: ${{ matrix.os == 'ubuntu-latest' && matrix.node == '20.x' }} run: pnpm lint @@ -64,7 +67,7 @@ jobs: run: pnpm coverage - name: SonarCloud Scan if: ${{ needs.check-secrets.outputs.sonar-token-exists == 'true' && github.repository == 'sap/e-mobility-charging-stations-simulator' && matrix.os == 'ubuntu-latest' && matrix.node == '20.x' }} - uses: sonarsource/sonarcloud-github-action@v2.0.2 + uses: sonarsource/sonarcloud-github-action@v2.1.1 env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }} @@ -102,6 +105,9 @@ jobs: cache: 'pnpm' - name: pnpm install run: pnpm install --ignore-scripts --frozen-lockfile + - name: pnpm audit + if: ${{ matrix.os == 'ubuntu-latest' && matrix.node == '20.x' }} + run: pnpm audit --prod - name: pnpm lint if: ${{ matrix.os == 'ubuntu-latest' && matrix.node == '20.x' }} run: pnpm lint @@ -114,7 +120,7 @@ jobs: run: pnpm coverage - name: SonarCloud Scan if: ${{ needs.check-secrets.outputs.sonar-token-exists == 'true' && github.repository == 'sap/e-mobility-charging-stations-simulator' && matrix.os == 'ubuntu-latest' && matrix.node == '20.x' }} - uses: sonarsource/sonarcloud-github-action@v2.0.2 + uses: sonarsource/sonarcloud-github-action@v2.1.1 with: projectBaseDir: ui/web env: