Jenkins使用aqua-microscanner-plugin进行容器漏洞扫描
官方地址:https://github.com/jenkinsci/aqua-microscanner-plugin
Step1
在jenkins安装"Aqua MicroScanner"插件
Step2
系统设置配置token,token获取地址:https://microscanner.aquasec.com/signup
Step3
Pipeline中添加扫描脚本
stage('Aqua MicroScanner'){ aquaMicroscanner imageName: 'xxx:latest',notCompliesCmd: 'exit 1',onDisallowed: 'fail' }
构建后结果展示
如对您有帮助,支持下呗!
微信
支付宝