Skip to content

Commit bfa7bed

Browse files
authored
1 parent 918d2c5 commit bfa7bed

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

.github/workflows/triage.yml

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -125,9 +125,11 @@ jobs:
125125
echo "No labels to apply"
126126
fi
127127
128-
echo "Reasoning: ${{ fromJSON(steps.classify-issue.outputs.json).reasoning }}"
128+
# Use printf with environment variable to safely log reasoning and prevent command injection
129+
printf 'Reasoning: %s\n' "$REASONING"
129130
env:
130131
GH_TOKEN: ${{ steps.app-token.outputs.token }}
132+
REASONING: ${{ fromJSON(steps.classify-issue.outputs.json).reasoning }}
131133

132134
triage_issue:
133135
name: Auto-triage Issue
@@ -247,6 +249,8 @@ jobs:
247249
echo "No labels to apply"
248250
fi
249251
250-
echo "Reasoning: ${{ fromJSON(steps.classify-issue.outputs.json).reasoning }}"
252+
# Use printf with environment variable to safely log reasoning and prevent command injection
253+
printf 'Reasoning: %s\n' "$REASONING"
251254
env:
252255
GH_TOKEN: ${{ steps.app-token.outputs.token }}
256+
REASONING: ${{ fromJSON(steps.classify-issue.outputs.json).reasoning }}

0 commit comments

Comments
 (0)