Skip to content

Commit 0fedd1c

Browse files
authored
fix(gha): exclude deleted workflows from zizmor scan (#13)
1 parent 6eac0e5 commit 0fedd1c

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

.github/workflows/github_actions_scan.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ jobs:
3939
GIT_HEAD_SHA: '${{ github.event.pull_request.head.sha }}'
4040
GIT_BASE_SHA: '${{ github.event.pull_request.base.sha }}'
4141
run: |
42-
files=$(git diff --name-only "${GIT_BASE_SHA}" "${GIT_HEAD_SHA}" | grep -E '^\.github/workflows/.+\.ya?ml$' | xargs || true)
42+
files=$(git diff --name-only --diff-filter=d "${GIT_BASE_SHA}" "${GIT_HEAD_SHA}" | grep -E '^\.github/workflows/.+\.ya?ml$' | xargs || true)
4343
echo "files=$files" >> "$GITHUB_OUTPUT"
4444
4545
zizmor-scan:

0 commit comments

Comments
 (0)