fix: add checkout step to classify-issue-severity workflow (#21236)

Co-authored-by: Claude Sonnet 4.5 <noreply@anthropic.com>
This commit is contained in:
david-fraley
2025-12-11 15:48:23 -06:00
committed by GitHub
co-authored by Claude Sonnet 4.5
parent a87a44412f
commit c44a2c3a9b
+20 -1
View File
@@ -18,7 +18,7 @@ jobs:
if: github.event.label.name == 'triage-check'
runs-on: ubuntu-latest
outputs:
result: ${{ steps.analysis.outputs.result }}
result: ${{ steps.extract.outputs.result }}
steps:
- name: Checkout repository
@@ -140,6 +140,25 @@ jobs:
**Critical**: Output ONLY the JSON object, nothing else. The JSON will be parsed and validated.
- name: Extract Result from Execution File
id: extract
env:
EXECUTION_FILE: ${{ steps.analysis.outputs.execution_file }} # zizmor: ignore[template-injection]
run: |
if [ ! -f "$EXECUTION_FILE" ]; then
echo "Execution file not found: $EXECUTION_FILE"
exit 1
fi
# Extract the result from the execution file
RESULT=$(jq -r '.result // empty' < "$EXECUTION_FILE")
{
echo "result<<EOF"
echo "$RESULT"
echo "EOF"
} >> "$GITHUB_OUTPUT"
post-comment:
name: Post Classification Comment
needs: analyze