Skip to content

Commit c44a2c3

Browse files
david-fraleyclaude
andauthored
fix: add checkout step to classify-issue-severity workflow (#21236)
Co-authored-by: Claude Sonnet 4.5 <noreply@anthropic.com>
1 parent a87a444 commit c44a2c3

File tree

1 file changed

+20
-1
lines changed

1 file changed

+20
-1
lines changed

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

Lines changed: 20 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ jobs:
1818
if: github.event.label.name == 'triage-check'
1919
runs-on: ubuntu-latest
2020
outputs:
21-
result: ${{ steps.analysis.outputs.result }}
21+
result: ${{ steps.extract.outputs.result }}
2222

2323
steps:
2424
- name: Checkout repository
@@ -140,6 +140,25 @@ jobs:
140140
141141
**Critical**: Output ONLY the JSON object, nothing else. The JSON will be parsed and validated.
142142
143+
- name: Extract Result from Execution File
144+
id: extract
145+
env:
146+
EXECUTION_FILE: ${{ steps.analysis.outputs.execution_file }} # zizmor: ignore[template-injection]
147+
run: |
148+
if [ ! -f "$EXECUTION_FILE" ]; then
149+
echo "Execution file not found: $EXECUTION_FILE"
150+
exit 1
151+
fi
152+
153+
# Extract the result from the execution file
154+
RESULT=$(jq -r '.result // empty' < "$EXECUTION_FILE")
155+
156+
{
157+
echo "result<<EOF"
158+
echo "$RESULT"
159+
echo "EOF"
160+
} >> "$GITHUB_OUTPUT"
161+
143162
post-comment:
144163
name: Post Classification Comment
145164
needs: analyze

0 commit comments

Comments
 (0)