Skip to content

Commit 63896ea

Browse files
Updated .github/workflows/lint-dockerfiles.yml NO_JIRA
1 parent f5591a2 commit 63896ea

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

.github/workflows/lint-dockerfiles.yml

+3-3
Original file line numberDiff line numberDiff line change
@@ -14,12 +14,12 @@ jobs:
1414
steps:
1515
- uses: actions/checkout@v3
1616
with:
17-
fetch-depth: 2
17+
fetch-depth: 0
1818

1919
- name: Modified files
2020
id: file-changes
2121
run: |
22-
echo "changed-files=$(git diff --name-only -r HEAD^1 HEAD | grep 'Dockerfile' | tr '\n' ' ')" >> $GITHUB_OUTPUT
22+
echo "changed-files=$(git diff --name-only -r origin/${GITHUB_BASE_REF} origin/${GITHUB_HEAD_REF} | grep 'Dockerfile' | tr '\n' ' ')" >> $GITHUB_OUTPUT
2323
2424
- name: Check GitHub event type to determine reporter type
2525
run: |
@@ -35,5 +35,5 @@ jobs:
3535
fail_on_error: false
3636
filter_mode: diff_context
3737
hadolint_flags: ${{ steps.file-changes.outputs.changed-files }}
38-
level: warning
38+
level: error
3939
reporter: ${{ env.REVIEWDOG_REPORTER }}

0 commit comments

Comments
 (0)