File tree Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Original file line number Diff line number Diff 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 }}
You can’t perform that action at this time.
0 commit comments