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

refactor: use api.snyk.io as default url #99

Merged
merged 1 commit into from
Jul 17, 2024
Merged

Conversation

jlourenc
Copy link
Contributor

snyk.io/api is the legacy and deprecated way to access Snyk APIs. Let's default to api.snyk.io instead.

@jlourenc jlourenc requested a review from a team as a code owner July 13, 2024 22:03
@jlourenc jlourenc changed the title refactor: use api.nyk.io as default url refactor: use api.snyk.io as default url Jul 13, 2024
`snyk.io/api` is the legacy and deprecated way to access Snyk APIs.
Let's default to `api.snyk.io` instead.
@jlourenc jlourenc force-pushed the refactor/snyk-api-url branch from a4a0768 to e6ca91e Compare July 17, 2024 10:44
@@ -41,7 +41,7 @@ void shouldTestPipPackage() throws Exception {
TestResult result = scanner.scan(fileLayoutInfo, repoPath);
assertFalse(result.success);
assertEquals(1, result.dependencyCount);
assertEquals(5, result.issues.vulnerabilities.size());
assertEquals(6, result.issues.vulnerabilities.size());
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Had to bump this to 6 as this seems to use real data and number of vulns has increased.

@jlourenc jlourenc merged commit 3e42217 into main Jul 17, 2024
10 checks passed
@jlourenc jlourenc deleted the refactor/snyk-api-url branch July 17, 2024 10:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants