From c44a2c3a9bb4124e1b5caaef5c94081e89d191c1 Mon Sep 17 00:00:00 2001 From: david-fraley <67079030+david-fraley@users.noreply.github.com> Date: Thu, 11 Dec 2025 15:48:23 -0600 Subject: [PATCH] fix: add checkout step to classify-issue-severity workflow (#21236) Co-authored-by: Claude Sonnet 4.5 --- .github/workflows/classify-issue-severity.yml | 21 ++++++++++++++++++- 1 file changed, 20 insertions(+), 1 deletion(-) diff --git a/.github/workflows/classify-issue-severity.yml b/.github/workflows/classify-issue-severity.yml index 6ad256d754..5ef0f2fd83 100644 --- a/.github/workflows/classify-issue-severity.yml +++ b/.github/workflows/classify-issue-severity.yml @@ -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<> "$GITHUB_OUTPUT" + post-comment: name: Post Classification Comment needs: analyze