Encode URI component to fix 404
This commit is contained in:
+2
-2
@@ -49,11 +49,11 @@ async function getDepsDevData(
|
||||
}
|
||||
|
||||
async function getDepsDevProjectData(
|
||||
projectKeyId: String
|
||||
projectKeyId: string
|
||||
): Promise<DepsDevProject> {
|
||||
try {
|
||||
core.debug(`Getting deps.dev project data for ${projectKeyId}`)
|
||||
const url = `${depsDevAPIRoot}//v3alpha/projects/${projectKeyId}`
|
||||
const url = `${depsDevAPIRoot}//v3alpha/projects/${encodeURIComponent(projectKeyId)}`
|
||||
const response = await fetch(url)
|
||||
if (response.ok) {
|
||||
const data = await response.json()
|
||||
|
||||
Reference in New Issue
Block a user