consumerfinance.gov
consumerfinance.gov copied to clipboard
Document snyk usage
Current behavior
-
snyk
dependency is used for runningnpm run test
, however, this requires an authenticated snyk account. (snyk test requires an authenticated account. Please run
snyk authand try again.
). There is documentation on why snyk is in the project or how it should be setup.
Expected behavior
- When/why/how to use
npm run test
is documented in the project testing docs.
@ascott1 Since we're trialling snyk.io accounts, is having a command in the project necessary?
Since we're trialling snyk.io accounts, is having a command in the project necessary?
I'd lean towards no, assuming we have a process for monitoring/resolving snyk alerts.
Is this still an issue you want help on? Wasn't sure based on the conversation above. Thanks!
Hi @saracope,
We could use a section in above https://cfpb.github.io/consumerfinance.gov/other-front-end-testing/#performance-testing for "Security testing" that lists running yarn test
(formerly npm test
) to run the snyk tests. We also have https://github.com/cfpb/cfgov-refresh/issues/2303, but looks like I ran into issues there.