-
Notifications
You must be signed in to change notification settings - Fork 53
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #32 from m-ildefons/hadolint-240
hadolint: version bump to 2.4.0
- Loading branch information
Showing
8 changed files
with
97 additions
and
9 deletions.
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
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
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 |
---|---|---|
|
@@ -15,16 +15,25 @@ Add the following step to your workflow configuration: | |
|
||
```yml | ||
steps: | ||
- uses: hadolint/[email protected] | ||
with: | ||
dockerfile: Dockerfile | ||
- uses: hadolint/[email protected] | ||
with: | ||
dockerfile: Dockerfile | ||
``` | ||
## Inputs | ||
| Name | Description | Default | | ||
|------------ |----------------------------------------- |-------------- | | ||
| dockerfile | The path to the Dockerfile to be tested | ./Dockerfile | | ||
| Name | Description | Default | | ||
|------------------ |------------------------------------------ |----------------- | | ||
| dockerfile | The path to the Dockerfile to be tested | ./Dockerfile | | ||
| format | The output format. One of [tty | json | | tty | | ||
| | checkstyle | codeclimate | | | | ||
| | gitlab_codeclimate] | | | ||
| ignore | Space separated list of Hadolint rules to | <none> | | ||
| | ignore. | | | ||
| config | Custom path to a Hadolint config file | ./.hadolint.yaml | | ||
| failure-threshold | Rule severity threshold for pipeline | info | | ||
| | failure. One of [error | warning | info | | | | ||
| | style | ignore] | | | ||
## Hadolint Configuration | ||
|
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
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
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 |
---|---|---|
@@ -0,0 +1 @@ | ||
failure-threshold: error |
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 |
---|---|---|
@@ -0,0 +1,5 @@ | ||
FROM debian:buster | ||
|
||
# info level warning expected here: | ||
RUN echo "Hello" | ||
RUN echo "World" |
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 |
---|---|---|
@@ -0,0 +1,4 @@ | ||
FROM debian:buster | ||
|
||
# emits an info and a warning level violation. | ||
RUN apt-get install foo |