Pour tout problème contactez-nous par mail : support@froggit.fr | La FAQ :grey_question: | Rejoignez-nous sur le Chat :speech_balloon:

Skip to content
Snippets Groups Projects
Verified Commit 88b7ac87 authored by Benoît's avatar Benoît
Browse files

Debut

parent 2ad279a7
No related branches found
No related tags found
No related merge requests found
......@@ -94,7 +94,7 @@ include:
fi
trivy image --format template --template @/usr/local/share/trivy/templates/trivy-markdown-json.tpl --ignore-unfixed --severity HIGH,CRITICAL ${CS_IMAGE} > /tmp/output.json
cat /tmp/output.json
echo "Push a MR note with trivy result:"
echo "Push a MR note with trivy result: to https://lab.frogg.it/api/v4/projects/${CI_PROJECT_ID}/merge_requests/${CI_MERGE_REQUEST_IID}/notes"
curl --request POST --header "PRIVATE-TOKEN: $GITLAB_TOKEN" --header "Content-Type: application/json" 'https://lab.frogg.it/api/v4/projects/${CI_PROJECT_ID}/merge_requests/${CI_MERGE_REQUEST_IID}/notes' --data @/tmp/output.json
rules:
- if: $GITLAB_TOKEN && $CI_OPEN_MERGE_REQUESTS
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment