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

Fix

parent 48ec6254
No related branches found
No related tags found
No related merge requests found
...@@ -89,8 +89,9 @@ include: ...@@ -89,8 +89,9 @@ 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-json.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} > /tmp/output.json
cat /tmp/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 @/tmp/output.json
rules: rules:
- if: $GITLAB_TOKEN - if: $GITLAB_TOKEN
\ 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