Skip to content

Commit

Permalink
Fix duplicate report URL
Browse files Browse the repository at this point in the history
  • Loading branch information
airadier committed Apr 20, 2020
1 parent f6709c6 commit e500687
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -50,9 +50,9 @@ const querystring = require("querystring");

try {
await exec.exec(cmd);
core.info(`Scan was SUCCESS. Check scan results at ${sysdig_secure_url}/#/scanning/scan-results/localbuild%2F${querystring.escape(image_tag)}/${image_id}`);
core.info(`Scan was SUCCESS.`);
} catch (error) {
core.setFailed(`Scan FAILED. Check scan results at ${sysdig_secure_url}/#/scanning/scan-results/localbuild%2F${querystring.escape(image_tag)}/${image_id}`);
core.setFailed(`Scan FAILED.`);
}

} catch (error) {
Expand Down
2 changes: 1 addition & 1 deletion inline_scan.sh
Original file line number Diff line number Diff line change
Expand Up @@ -451,7 +451,7 @@ print_scan_result_summary_message() {
echo "Result Details: "
curl -s -k --header "Content-Type: application/json" -H "Authorization: Bearer ${SYSDIG_API_TOKEN}" "${SYSDIG_ANCHORE_URL}/images/by_id/${SYSDIG_IMAGE_ID}/check?tag=$FULLTAG&detail=true"
fi
ENCODED_TAG=$(urlencode ${FULLTAG})
ENCODED_TAG=$(urlencode localbuild/${FULLTAG})
echo "View the full result @ ${SYSDIG_BASE_SCANNING_URL}/#/scanning/scan-results/${ENCODED_TAG}/${SYSDIG_IMAGE_DIGEST}/summaries"
printf "PDF report of the scan results can be generated with -R option.\n"
fi
Expand Down

0 comments on commit e500687

Please sign in to comment.