mirror of
https://github.com/hadolint/hadolint-action.git
synced 2026-05-15 14:45:53 +00:00
features: config options, saving to file, SARIF
- Upgrade to Hadolint 2.8.0, enabling the SARIF formatter - Expand config options to reflect more of those regularly available with Hadolint including `no-fail` and `failure-threshold` options - Enable the creation of report files Breaking change: The list of ignored rules is now comma separated and not space separated. fixes: #23 fixes: #36 fixes: #42
This commit is contained in:
parent
3cfc69d4b2
commit
98fb3f8040
5 changed files with 112 additions and 32 deletions
13
.github/workflows/ci.yml
vendored
13
.github/workflows/ci.yml
vendored
|
|
@ -50,7 +50,8 @@ jobs:
|
|||
uses: ./
|
||||
with:
|
||||
dockerfile: testdata/warning.Dockerfile
|
||||
ignore: DL3014 DL3008 DL3015
|
||||
ignore: 'DL3014,DL3008'
|
||||
no-fail: true
|
||||
|
||||
- name: Run integration test 3 - set failure threshold
|
||||
# This step will print out an info level rule violation, but not fail
|
||||
|
|
@ -68,13 +69,21 @@ jobs:
|
|||
failure-threshold: error
|
||||
format: json
|
||||
|
||||
- name: Run integration test 4 - output format
|
||||
- name: Run integration test 5 - output format
|
||||
# This step will never fail, but will print out rule violations.
|
||||
uses: ./
|
||||
with:
|
||||
dockerfile: testdata/warning.Dockerfile
|
||||
config: testdata/hadolint.yaml
|
||||
|
||||
- name: Run integration test 6 - output to file
|
||||
# This step will never fail, but will print out rule violations.
|
||||
uses: ./
|
||||
with:
|
||||
dockerfile: testdata/warning.Dockerfile
|
||||
format: sarif
|
||||
output-file: /report.sarif
|
||||
|
||||
release:
|
||||
if: github.event_name == 'push' && github.ref == 'refs/heads/master'
|
||||
name: Release
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue