Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
renzhc
diffusers_dcu
Commits
53748217
Unverified
Commit
53748217
authored
May 26, 2025
by
Sayak Paul
Committed by
GitHub
May 26, 2025
Browse files
fix security issue in build docker ci (#11614)
* fix security issue in build docker ci * better * update
parent
826f4350
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
5 deletions
+6
-5
.github/workflows/build_docker_images.yml
.github/workflows/build_docker_images.yml
+6
-5
No files found.
.github/workflows/build_docker_images.yml
View file @
53748217
...
...
@@ -38,15 +38,16 @@ jobs:
token
:
${{ secrets.GITHUB_TOKEN }}
-
name
:
Build Changed Docker Images
env
:
CHANGED_FILES
:
${{ steps.file_changes.outputs.all }}
run
:
|
CHANGED_FILES
="${{ steps.file_changes.outputs.all }}
"
for FILE in $CHANGED_FILES; do
# skip anything that isn
’
t still on disk
echo "$
CHANGED_FILES"
for FILE in $CHANGED_FILES; do
# skip anything that isn
'
t still on disk
if [[ ! -f "$FILE" ]]; then
echo "Skipping removed file $FILE"
continue
fi
fi
if [[ "$FILE" == docker/*Dockerfile ]]; then
DOCKER_PATH="${FILE%/Dockerfile}"
DOCKER_TAG=$(basename "$DOCKER_PATH")
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment