Skip to content

Commit 2583fd0

Browse files
Use hadolint config file (#1785)
* Use hadolint config file Signed-off-by: ZePan110 <ze.pan@intel.com> * [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci * test Signed-off-by: ZePan110 <ze.pan@intel.com> * Remove test code Signed-off-by: ZePan110 <ze.pan@intel.com> --------- Signed-off-by: ZePan110 <ze.pan@intel.com> Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
1 parent f0ea1fc commit 2583fd0

2 files changed

Lines changed: 12 additions & 1 deletion

File tree

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
# Copyright (C) 2025 Intel Corporation
2+
# SPDX-License-Identifier: Apache-2.0
3+
4+
ignored:
5+
- DL3003
6+
- DL3006
7+
- DL3007
8+
- DL3008
9+
- DL3013
10+
- DL3018
11+
- DL3016

.github/workflows/scripts/codeScan/hadolint.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ source /GenAIComps/.github/workflows/scripts/change_color
66
log_dir=/GenAIComps/.github/workflows/scripts/codeScan
77
ERROR_WARN=false
88

9-
find . -type f \( -name "Dockerfile*" \) -print -exec hadolint --ignore DL3003 --ignore DL3006 --ignore DL3007 --ignore DL3008 --ignore DL3013 --ignore DL3018 --ignore DL3016 {} \; > ${log_dir}/hadolint.log
9+
find . -type f \( -name "Dockerfile*" \) -print -exec hadolint --config /GenAIComps/.github/workflows/scripts/codeScan/.hadolint.yaml {} \; > ${log_dir}/hadolint.log
1010

1111
if [[ $(grep -c "error" ${log_dir}/hadolint.log) != 0 ]]; then
1212
$BOLD_RED && echo "Error!! Please Click on the artifact button to download and check error details." && $RESET

0 commit comments

Comments
 (0)