diff --git a/scripts/depcheck-alert.sh b/scripts/depcheck-alert.sh index 2e8b2976fb..8f8e78c08d 100755 --- a/scripts/depcheck-alert.sh +++ b/scripts/depcheck-alert.sh @@ -5,7 +5,7 @@ # Get artifacts from CircleCI report_artifacts=$(curl -s https://circleci.com/api/v1.1/project/gh/$CIRCLE_PROJECT_USERNAME/$CIRCLE_PROJECT_REPONAME/$CIRCLE_BUILD_NUM/artifacts) json_url=$(echo $report_artifacts | jq -r 'map(select(.path == "Reports/OWASP/dependency-check-report.json").url)[0]') -json_report=$(curl -s $json_url) +json_report=$(curl -sL $json_url) # Anything new? vulnerability_count=$(echo $json_report | jq '[.dependencies[]?.vulnerabilities[]?.name]|length') @@ -60,4 +60,4 @@ then curl -s -X POST -d 'payload={"username": "Dependency-Check", "icon_url": "https://www.mattermost.org/wp-content/uploads/2016/04/icon.png", "text": "'"$alert_message"'" }' "$SAST_WEBHOOK_URL" -fi \ No newline at end of file +fi