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

Install snyk cli for local vulnerabilty testing #429

Open
basmasking opened this issue Jan 4, 2024 · 13 comments
Open

Install snyk cli for local vulnerabilty testing #429

basmasking opened this issue Jan 4, 2024 · 13 comments
Labels
build Tasks related to development and ci/cd chore Tasks that do not belong to features or bugs

Comments

@basmasking
Copy link
Member

Snyk is enabled in the CI pipeline. To make it easier for ourselves to execute the scans locally, we should add the cli tool from snyk.

@basmasking basmasking added chore Tasks that do not belong to features or bugs build Tasks related to development and ci/cd labels Jan 4, 2024
@tony-nyagah
Copy link

I can look at this.

@basmasking
Copy link
Member Author

Hello @tony-nyagah,

You're more than welcome to pick up this issue :)

If you have any questions, don't hesitate to ask them. You can reach out to us here, or on our discord channel

Thank you

@OriloyeEmerald
Copy link

I want to look at this issue.

@basmasking
Copy link
Member Author

Hi @OriloyeEmerald,

Thanks for your interest in picking up this issue. Just a couple of hours ago @tony-nyagah also showed interest in this ticket. Maybe you can work together on this issue?

If you have any questions, don't hesitate to ask them. You can reach out to us here, or on our discrod channel

@tony-nyagah
Copy link

@basmasking When I try to run npm install I get this error  ERR_PNPM_FETCH_404  GET https://registry.npmjs.org/eslint-plugin-jitar: Not Found - 404.

@basmasking
Copy link
Member Author

@tony-nyagah the package eslint-plugin-jitar is not published on npm, but should be in the tools folder in the root of jitar. It's also defined in the package.json as a workspace, thus npm should be able to resolve the package.

From the error message it seems you're using pnpm, is that correct?

@tony-nyagah
Copy link

From the error message it seems you're using pnpm, is that correct?

I tried with npm but was getting some errors. I think my internet was acting up. npm install works now.

@basmasking
Copy link
Member Author

@tony-nyagah do you need any help with the issue?

@OriloyeEmerald
Copy link

I'm sorry about my unavailability, I had issues with my computer. I have installed the snyk tool and configured it for local vulnerability testing. What is the next step please?

@tony-nyagah
Copy link

@tony-nyagah do you need any help with the issue?

@OriloyeEmerald seems to have resolved the issue so I'm going to leave this issue with him.

@OriloyeEmerald
Copy link

@tony-nyagah, that's great then. Are you on discord so I can connect with you?

@petermasking
Copy link
Member

@OriloyeEmerald the description in this issue has been a bit sparse. After the CLI is installed locally (added as a devDependency in the package.json), it should be possible to run the cli with a snyk account and use environment variables to set the tokens and account details into the cli configuration.

Ideally, we have another script in the package.json to run the cli and get the vulnerabilites from the snyk api by typing npm run snyk-test in the terminal.

@tony-nyagah
Copy link

@tony-nyagah, that's great then. Are you on discord so I can connect with you?

I am on Discord. I go by osteerich on there.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
build Tasks related to development and ci/cd chore Tasks that do not belong to features or bugs
Projects
None yet
Development

No branches or pull requests

4 participants