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

Fix

parent 1acb0012
No related branches found
No related tags found
No related merge requests found
...@@ -89,7 +89,7 @@ include: ...@@ -89,7 +89,7 @@ include:
script: script:
- trivy image --ignore-unfixed --severity HIGH,CRITICAL ${CS_IMAGE} - trivy image --ignore-unfixed --severity HIGH,CRITICAL ${CS_IMAGE}
- | - |
trivy image --format template --template @/usr/local/share/trivy/templates/trivy-markdown.tpl --ignore-unfixed --severity HIGH,CRITICAL ${CS_IMAGE} > output.json trivy image --format template --template @/usr/local/share/trivy/templates/trivy-markdown-json.tpl --ignore-unfixed --severity HIGH,CRITICAL ${CS_IMAGE} > output.json
echo "Push a MR note with trivy result:" 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_MERGE_REQUEST_PROJECT_ID}/merge_requests/${CI_MERGE_REQUEST_IID}/notes' --data-raw @output.json curl --request POST --header "PRIVATE-TOKEN: $GITLAB_TOKEN" --header "Content-Type: application/json" 'https://lab.frogg.it/api/v4/projects/${CI_MERGE_REQUEST_PROJECT_ID}/merge_requests/${CI_MERGE_REQUEST_IID}/notes' --data-raw @output.json
rules: rules:
......
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