2019-10-02 23:17:00 +02:00
|
|
|
name: 'Hadolint Action'
|
2019-10-02 22:50:00 +02:00
|
|
|
description: 'Action that runs Hadolint Dockerfile linting tool'
|
|
|
|
author: 'Bruno Paz'
|
|
|
|
inputs:
|
|
|
|
dockerfile:
|
2021-05-08 13:08:16 +02:00
|
|
|
required: false
|
2019-10-02 22:50:00 +02:00
|
|
|
description: 'The path to the Dockerfile to lint'
|
|
|
|
default: 'Dockerfile'
|
2021-05-08 13:08:16 +02:00
|
|
|
format:
|
|
|
|
required: false
|
|
|
|
description: |
|
|
|
|
The output format, one of [tty (default) | json | checkstyle |
|
|
|
|
codeclimate | gitlab_codeclimate ]
|
|
|
|
default: 'tty'
|
|
|
|
failure-threshold:
|
|
|
|
required: false
|
|
|
|
description: |
|
|
|
|
Fail the pipeline only if rules with severity above this threshold are
|
|
|
|
violated. One of [error | warning | info (default) | style | ignore]
|
|
|
|
default: 'info'
|
|
|
|
ignore:
|
|
|
|
required: false
|
|
|
|
description: 'A space separated string of rules to ignore'
|
|
|
|
default:
|
|
|
|
config:
|
|
|
|
required: false
|
|
|
|
description: 'Path to a config file'
|
|
|
|
default:
|
|
|
|
|
2019-10-02 22:50:00 +02:00
|
|
|
runs:
|
|
|
|
using: 'docker'
|
|
|
|
image: 'Dockerfile'
|
|
|
|
args:
|
2021-05-08 13:08:16 +02:00
|
|
|
- -f
|
|
|
|
- ${{ inputs.format }}
|
|
|
|
- -t
|
|
|
|
- ${{ inputs.failure-threshold }}
|
2019-10-02 22:50:00 +02:00
|
|
|
- ${{ inputs.dockerfile }}
|
2021-05-08 13:08:16 +02:00
|
|
|
env:
|
|
|
|
HADOLINT_CONFIG: ${{ inputs.config }}
|
|
|
|
HADOLINT_IGNORE: ${{ inputs.ignore }}
|
2019-10-02 22:50:00 +02:00
|
|
|
branding:
|
|
|
|
icon: 'layers'
|
|
|
|
color: 'purple'
|