Skip to content
Snippets Groups Projects
Commit b2f96c2f authored by (INACTIVE) Marcel Bajdel (new marcel.bajdel)'s avatar (INACTIVE) Marcel Bajdel (new marcel.bajdel) :rocket:
Browse files

branch scan corrections

parent 4ad886d5
No related branches found
No related tags found
3 merge requests!20Release,!13Docker image branch,!12Docker image branch
......@@ -27,7 +27,7 @@ build_branch:
expire_in: 10 minutes
rules:
- exists:
- CI_COMMIT_BRANCH
- $CI_COMMIT_BRANCH
- changes:
- README.md
when: never
......@@ -41,14 +41,7 @@ branch_scan:
script:
- mkdir scan_result
- cd tar_images
- |
for tar_image in *.tar;
do
[ -e "$tar_image" ] || continue;
file_name=${tar_image%.*};
echo $file_name;
if [ "$vulnerability_scanner" = "trivy" ]; then trivy image --timeout 15m --offline-scan --input $tar_image -f json -o ../scan_result/$file_name.json --severity CRITICAL; fi
done
- trivy image --timeout 15m --offline-scan --input $tar_image -f json -o ../scan_result/$CI_COMMIT_BRANCH.json --severity CRITICAL; fi
artifacts:
paths:
- scan_result
......
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