https://github.com/goodwithtech/dockle-action
https://github.com/goodwithtech/dockle-action
Last synced: 4 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/goodwithtech/dockle-action
- Owner: goodwithtech
- License: apache-2.0
- Created: 2023-01-02T12:08:34.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2025-01-07T00:11:43.000Z (over 1 year ago)
- Last Synced: 2025-08-29T06:59:04.307Z (10 months ago)
- Language: Shell
- Size: 32.2 KB
- Stars: 11
- Watchers: 2
- Forks: 4
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# dockle-action
GitHub Actions for [goodwithtech/dockle](https://github.com/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
- https://github.com/goodwithtech/dockle-action-test/blob/main/.github/workflows/simple-stdout.yml
- https://github.com/goodwithtech/dockle-action-test/blob/main/.github/workflows/output-json-file.yml
# Usage
```yaml
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'
```