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'    
    }

构建后结果展示

 

posted @ 2019-08-20 22:59  西门运维  阅读(729)  评论(0编辑  收藏  举报