Skip to content
This repository was archived by the owner on Jul 30, 2025. It is now read-only.

Commit 7704078

Browse files
authored
fix: remove compromised tj-actions/changed-files action
1 parent 5a6911f commit 7704078

File tree

1 file changed

+12
-3
lines changed

1 file changed

+12
-3
lines changed

.github/workflows/docker.yml

Lines changed: 12 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -67,9 +67,18 @@ jobs:
6767

6868
- name: Determine version change
6969
id: changed-version
70-
uses: tj-actions/changed-files@v45
71-
with:
72-
files: versions.yaml
70+
run: |
71+
# Get the list of files that were changed between the base branch and the current commit
72+
CHANGED_FILES=$(git diff --name-only origin/$GITHUB_BASE_REF...HEAD)
73+
74+
# Looking for:
75+
# versions.yaml
76+
# Dockerfile
77+
if echo "$CHANGED_FILES" | grep -q -e "^versions.yaml$" -e "^Dockerfile$; then
78+
echo "any_changed=true" >> $GITHUB_OUTPUT
79+
else
80+
echo "any_changed=false" >> $GITHUB_OUTPUT
81+
fi
7382
7483
- name: Determine image push
7584
uses: actions/github-script@v7

0 commit comments

Comments
 (0)