-
Notifications
You must be signed in to change notification settings - Fork 3
35 lines (32 loc) · 1.05 KB
/
lint-docker.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
#### THIS FILE IS MANAGED BY AN AUTOMATED WORKFLOW ####
name: "Lint Docker"
on:
pull_request:
paths:
- "**/Dockerfile.*"
- "**/docker-compose.*"
- "!**/node_modules/**"
branches:
- main
- master
- "!repo-sync/**"
- "!renovate/**"
- "!update/pre-commit-hooks/**"
workflow_dispatch:
jobs:
hadolint:
name: "Lint Docker with hadolint"
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@93ea575cb5d8a053eaa0ac8fa3b40d7e05a33cc8 # tag=v3
- name: run tflint
uses: reviewdog/action-hadolint@master
with:
github_token: ${{ secrets.github_token }}
reporter: github-pr-review
fail_on_error: "false"
level: warning
filter_mode: "nofilter" # Optional. Check all files, not just the diff
# tflint_version: "v0.24.0" # Optional. Custom version, instead of latest
# tflint_rulesets: "azurerm google" # Optional. Extra official rulesets to install
# flags: "--module" # Optional. Add custom tflint flags