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 289f7e36 authored by Benoît's avatar Benoît
Browse files

Fix

parent 88b7ac87
No related branches found
Tags 4.92.2-r0
No related merge requests found
......@@ -94,8 +94,8 @@ 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: 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
echo "Push a MR note with trivy result:"
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
- if: $GITLAB_TOKEN && $CI_MERGE_REQUEST_IID
\ No newline at end of file
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