Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

NodeAuditAnalyzer failed on /github/workspace/client/package-lock.json #6026

Closed
RooshanNaeem opened this issue Oct 30, 2023 · 2 comments
Closed
Labels

Comments

@RooshanNaeem
Copy link

RooshanNaeem commented Oct 30, 2023

Hi,

I am using Dependency Check as Github Action, that is configured to run on PR on my nodeJs project. Below is the file for workflow. I want it to skip devdependencies with the flag --nodeAuditSkipDevDependencies, but introducing this flag throws error that

Error:  NodeAuditAnalyzer failed on /github/workspace/client/package-lock.json
[WARN] An error occurred while analyzing '/github/workspace/client/package-lock.json' (Node Audit Analyzer).

Can anyone help me getting rid of this error? This fails my check even though it generates the report but check gets failed and is causing hinderance.

`name: Dependency-Checker
on: 
  pull_request:
    branches:
    - master
    - trunk

jobs:
  depchecktest:
    runs-on: ubuntu-latest
    name: depecheck_test
    steps:
      - name: Checkout
        uses: actions/checkout@v2
      - name: Build project with NPM
        run: npm ci --production
      - name: Depcheck
        uses: dependency-check/Dependency-Check_Action@main
        id: Depcheck
        with:
          project: 'myProject'
          path: '.'
          format: 'HTML'
          args: >
            --failOnCVSS 7
            --nodeAuditSkipDevDependencies`
@oliverlockwood
Copy link
Contributor

Having encountered similar, and tested this with a local build of the main branch of Dependency-Check.

I believe that PR #6690 (done in the context of #6437) has fixed this.

@jeremylong
Copy link
Owner

Thank you for testing and confirming this is closed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants