diff --git a/.github/workflows/hadolint.yml b/.github/workflows/hadolint.yml index 0112a2b..c90f76b 100644 --- a/.github/workflows/hadolint.yml +++ b/.github/workflows/hadolint.yml @@ -15,6 +15,6 @@ jobs: - uses: actions/checkout@v4 - name: Lint Dockerfile run: | - for d in $(find . -type f -name "Dockerfile" -exec dirname {} \;); do - (cd ${d} && hadolint Dockerfile) + find . -type f -name "Dockerfile" -exec dirname {} \; | while read -r d; do + (cd "${d}" && hadolint Dockerfile) done