Skip to content

Commit

Permalink
add hardcode values
Browse files Browse the repository at this point in the history
  • Loading branch information
carlosu7 committed Apr 30, 2024
1 parent 77dda23 commit 32d4f06
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions src/defect-dojo.ts
Original file line number Diff line number Diff line change
Expand Up @@ -49,15 +49,18 @@ export function getDefectDojoInputs(): DefectDojoInputs {
productName = repo;
}

core.info(`apiUrl ${apiUrl} productName ${productName} token ${token}`);
return { token, productName, apiUrl };
// TODO
core.info(`apiUrl https://pixee-test.cloud.defectdojo.com productName ${productName} token ${token}`);

return { token: "d27a66703fe2be1c989c6d987c27fc4595209613", productName: "pygoat_demo", apiUrl: "https://pixee-test.cloud.defectdojo.com" };
}

function buildDefectDojoUrl({
apiUrl,
productName,
}: DefectDojoInputs): string {
const { sha } = getGitHubContext();
core.info(`sha : ${sha}`)
const url = `${apiUrl}/api/v2/findings/?product_name=${productName}&commit_hash=${sha}&limit=100`;
core.info(`final url ${url}`);
return url;
Expand Down

0 comments on commit 32d4f06

Please sign in to comment.