Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions src/snyk/service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -46,9 +46,9 @@ export class SnykService {
}

let backportedProjects: SnykProject[] = []
const snykRestApiVersion = "2023-08-04"
const snykRestApiVersion = "2025-11-05"

let nextUrl: string | undefined = `/orgs/${encodeURIComponent(
let nextUrl: string | undefined = `/rest/orgs/${encodeURIComponent(
snykAccountId,
)}/projects?version=${snykRestApiVersion}&meta.latest_dependency_total=true&meta.latest_issue_counts=true&limit=100`

Expand All @@ -57,7 +57,7 @@ export class SnykService {
* We continue calling the Snyk API and retrieving more projects until links.next is null
* */
while (nextUrl) {
const response = await fetch(`https://api.snyk.io/rest${nextUrl}`, {
const response = await fetch(`https://api.snyk.io${nextUrl}`, {
method: "GET",
headers: {
Accept: "application/json",
Expand Down
3 changes: 1 addition & 2 deletions src/snyk/types.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// See https://apidocs.snyk.io/?version=2023-08-04#get-/orgs/-org_id-/projects
// See https://apidocs.snyk.io/?version=2025-11-05#get-/orgs/-org_id-/projects
export interface ProjectResponse {
data: RestAPIProject[]
links: {
Expand All @@ -20,7 +20,6 @@ export interface RestAPIProject {
}
}
}
status: boolean
meta: {
latest_dependency_total: {
updated_at: string
Expand Down