question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

pass-enoaudit flag passes integration even without registry returning ENOAUDIT

See original GitHub issue

Test:

pass-enoaudit: true
critical: true

Expected Behavior: If registry does not return ENOAUDIT, the expected behavior is the integration fails with error

    "vulnerabilities": {
      "info": 0,
      "low": 18,
      "moderate": 47,
      "high": 402,
      "critical": 1
    }
Failed security audit due to critical vulnerabilities.
Exiting...

Current Behavior: Registry is not returning ENOAUDIT and audit-ci passes the integration even with critical vulnerabilities

    "vulnerabilities": {
      "info": 0,
      "low": 18,
      "moderate": 47,
      "high": 402,
      "critical": 1
    }
ACTION RECOMMENDED: An audit could not performed due to 5 audits that resulted in ENOAUDIT. Perform an audit manually and verify that no significant vulnerabilities exist before merging.
Passed npm security audit.

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:5 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
sumanapotturucommented, Aug 5, 2019

Fix is to change line 27 in lib/audit.js to if (config[‘pass-enoaudit’] && message.includes(RETRY_ERROR_MSG[pm])) {

0reactions
quinnturnercommented, Aug 5, 2019

Closed with #108

Read more comments on GitHub >

github_iconTop Results From Across the Web

29 - Stack Overflow
`npm audit` keeps returning "Your configured registry (https://registry.npmjs.org/) does not support audit requests.". How do I make it work ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found