Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
70bd61d
commit 3329b0d
Showing
1 changed file
with
38 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,38 @@ | ||
# dockle-action | ||
# 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 | ||
|
||
|
||
# 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' | ||
``` |