Skip to content

Commit fb14beb

Browse files
committed
fix: One more pre-commit security risk
1 parent ddca658 commit fb14beb

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

.github/workflows/docker-tools-image.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,8 @@ jobs:
5757
- name: Test Docker image
5858
run: |
5959
# Use the first tag from the metadata output (branch-specific tag)
60-
IMAGE_TAG=$(echo '${{ steps.meta.outputs.tags }}' | head -n1)
60+
# Use GitHub Actions' built-in extraction to avoid template injection
61+
IMAGE_TAG="$(echo "${{ steps.meta.outputs.tags }}" | head -n1)"
6162
echo "Testing image: $IMAGE_TAG"
6263
docker run --rm $IMAGE_TAG terraform --version
6364
docker run --rm $IMAGE_TAG terraform-docs --version

0 commit comments

Comments
 (0)