Giter Club home page Giter Club logo

drone-trivy's Introduction

drone-trivy

Docker Pulls

该镜像用于 drone CI ,使用 trivy 在 CI 中进行镜像安全扫描

使用方法:

kind: pipeline
name: {your-pipeline-name}

steps:
- name: 镜像安全扫描
  image: guoxudongdocker/drone-trivy    # 使用 trivy 进行镜像安全扫描,详见:https://github.com/knqyf263/trivy
  volumes:
  - name: trivy
    path: /root/.cache
  - name: docker
    path: /var/run/docker.sock
  commands: 
    - docker save {your-docker-image}:${DRONE_BUILD_NUMBER} -o {your-docker-image}-${DRONE_BUILD_NUMBER}.tar
    - trivy --exit-code 1 --quiet --severity CRITICAL --input {your-docker-image}-${DRONE_BUILD_NUMBER}.tar

volumes:
- name: docker
  host:
    path: /var/run/docker.sock
- name: trivy   # trivy 缓存挂载
  host:
    path: /tmp/cache/.trivy

trigger:
  branch:
  - master

drone-trivy's People

Contributors

sunny0826 avatar

Stargazers

 avatar

Watchers

 avatar  avatar

Forkers

opt9 insurama

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.