forked from mautic/docker-mautic
-
Notifications
You must be signed in to change notification settings - Fork 0
43 lines (37 loc) · 1.18 KB
/
hlint.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
36
37
38
39
40
41
42
43
name: Dockerfile Lint
on: pull_request
jobs:
hlint:
runs-on: ubuntu-latest
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
HLINT_ACTION_LOG_LEVEL: debug
steps:
- name: Check out
uses: actions/checkout@v4
- name: Lint Apache Dockerfille
uses: hadolint/[email protected]
with:
dockerfile: .docker/Dockerfile.apache
format: sarif
output-file: hadolint-apache-results.sarif
no-fail: true
- name: Lint FPM Dockerfille
uses: hadolint/[email protected]
with:
dockerfile: .docker/Dockerfile.fpm
format: sarif
output-file: hadolint-fpm-results.sarif
no-fail: true
- name: Upload Apache analysis results to GitHub
uses: github/codeql-action/upload-sarif@v3
with:
sarif_file: hadolint-apache-results.sarif
wait-for-processing: true
category: hadolint-apache
- name: Upload FPM analysis results to GitHub
uses: github/codeql-action/upload-sarif@v3
with:
sarif_file: hadolint-fpm-results.sarif
wait-for-processing: true
category: hadolint-fpm