Skip to content

Commit 0095248

Browse files
committed
Fix help[template-injection]: code injection via template expansion
1 parent 5623a04 commit 0095248

File tree

2 files changed

+7
-5
lines changed

2 files changed

+7
-5
lines changed

.github/workflows/build-and-push.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,8 @@ jobs:
4949
# https://specs.opencontainers.org/image-spec/annotations/#pre-defined-annotation-keys
5050
- name: Extract labels from Dockerfile
5151
id: labels
52+
env:
53+
CREATED: ${{ steps.version.outputs.created }}
5254
run: |
5355
set -euo pipefail
5456
@@ -84,8 +86,8 @@ jobs:
8486
documentation=$(extract_label "documentation")
8587
8688
# Get dynamic values from earlier steps.
87-
created="${{ steps.version.outputs.created }}"
88-
revision="${{ github.sha }}"
89+
created="$CREATED"
90+
revision="$GITHUB_SHA"
8991
9092
# Build annotations string.
9193
annotations=""

.github/workflows/ci.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ jobs:
3434
load: true
3535
tags: ${{ env.TAG }}
3636
- name: Test clang
37-
run: docker run --rm ${{ env.TAG }} clang --version
37+
run: docker run --rm "$TAG" clang --version
3838

3939
build_wasi_container:
4040
name: Build and test (WASI container)
@@ -59,9 +59,9 @@ jobs:
5959
load: true
6060
tags: ${{ env.TAG }}
6161
- name: Test WASI SDK
62-
run: docker run --rm ${{ env.TAG }} /opt/wasi-sdk/bin/clang --version
62+
run: docker run --rm "$TAG" /opt/wasi-sdk/bin/clang --version
6363
- name: Test Wasmtime
64-
run: docker run --rm ${{ env.TAG }} wasmtime --version
64+
run: docker run --rm "$TAG" wasmtime --version
6565

6666
build_autoconf:
6767
name: Build and test (Autoconf)

0 commit comments

Comments
 (0)