Skip to content

Commit c3eff69

Browse files
authored
Add GHA for hadolint (#69)
1 parent 4bdcaee commit c3eff69

File tree

1 file changed

+17
-0
lines changed

1 file changed

+17
-0
lines changed

.github/workflows/master.yml

+17
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
# SPDX-License-Identifier: Apache-2.0
22
# Copyright 2023 Canonical Ltd.
3+
# Copyright 2024 Intel Corporation
34

45
name: Master workflow
56

@@ -51,6 +52,22 @@ jobs:
5152
version: latest
5253
args: -v --config ./.golangci.yml
5354

55+
hadolint:
56+
name: hadolint
57+
runs-on: ubuntu-latest
58+
59+
steps:
60+
- uses: actions/checkout@v4
61+
62+
- name: Dockerfile linter
63+
uses: hadolint/[email protected]
64+
# For now, ignoring:
65+
# DL3008 warning: Pin versions in apt get install (e.g., apt-get install <package>=<version>); and
66+
# DL3018 warning: Pin versions in apk add (e.g., apk add <package>=<version>)
67+
with:
68+
dockerfile: Dockerfile
69+
ignore: DL3008,DL3018
70+
5471
license-check:
5572
runs-on: ubuntu-latest
5673
steps:

0 commit comments

Comments
 (0)