Skip to content
play

GitHub Action

Dockle - Container Image Linter

0.1.0 Latest version

Dockle - Container Image Linter

play

Dockle - Container Image Linter

Scans container image configurations

Installation

Copy and paste the following snippet into your .yml file.

              

- name: Dockle - Container Image Linter

uses: goodwithtech/dockle-action@0.1.0

Learn more about this action in goodwithtech/dockle-action

Choose a version

dockle-action

GitHub Actions for goodwithtech/dockle

Dockle - Container Image Linter for Security, Helping build the Best-Practice Docker Image, Easy to start

Dockle helps you:

  1. Build Best Practice Docker images
  2. Build secure Docker images
  • Checkpoints include CIS Benchmarks

Examples

Usage

name: check
on:
  push:
jobs:
  build:
    name: Build
    runs-on: ubuntu-20.04
    steps:
      - name: Checkout code
        uses: actions/checkout@v2
      - name: Build an image from Dockerfile
        run: |
          docker build -t built-image:scan .
      - name: Run dockle
        uses: goodwithtech/dockle-action@main
        with:
          image: 'built-image:scan'
          format: 'list'
          exit-code: '1'
          exit-level: 'warn'
          ignore: 'CIS-DI-0001,DKL-DI-0006'