Skip to content

Commit 2f4d988

Browse files
committed
fix: prevent template injection by using env var
Addresses zizmor template-injection warning by passing the execution file path through an environment variable instead of directly interpolating it in the shell script.
1 parent 922c111 commit 2f4d988

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

.github/workflows/classify-issue-severity.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -142,9 +142,9 @@ jobs:
142142
143143
- name: Extract Result from Execution File
144144
id: extract
145+
env:
146+
EXECUTION_FILE: ${{ steps.analysis.outputs.execution_file }}
145147
run: |
146-
EXECUTION_FILE="${{ steps.analysis.outputs.execution_file }}"
147-
148148
if [ ! -f "$EXECUTION_FILE" ]; then
149149
echo "Execution file not found: $EXECUTION_FILE"
150150
exit 1

0 commit comments

Comments
 (0)