Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
51 changes: 51 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -1851,3 +1851,54 @@ jobs:
if: always()
run: |
rm -rf test-workspace

safe-outputs-conformance:
runs-on: ubuntu-latest
permissions:
contents: read
steps:
- name: Checkout code
uses: actions/checkout@93cb6efe18208431cddfb8368fd83d5badbf9bfd # v5

- name: Run Safe Outputs Conformance Checker
id: conformance
continue-on-error: true
Copy link

Copilot AI Feb 14, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

continue-on-error: true is redundant here because the step explicitly exit 0 regardless of the conformance script result. Consider removing continue-on-error (or, alternatively, keep the real exit code and rely on continue-on-error) to avoid implying the step might fail the job.

Suggested change
continue-on-error: true

Copilot uses AI. Check for mistakes.
run: |
echo "## Safe Outputs Conformance Check" >> $GITHUB_STEP_SUMMARY
echo "" >> $GITHUB_STEP_SUMMARY

# Run the conformance checker and capture output
if ./scripts/check-safe-outputs-conformance.sh > conformance-output.txt 2>&1; then
echo "✅ All conformance checks passed" >> $GITHUB_STEP_SUMMARY
EXIT_CODE=0
else
EXIT_CODE=$?
if [ $EXIT_CODE -eq 2 ]; then
echo "⚠️ Critical conformance issues found (treated as warning)" >> $GITHUB_STEP_SUMMARY
elif [ $EXIT_CODE -eq 1 ]; then
echo "⚠️ High priority conformance issues found (treated as warning)" >> $GITHUB_STEP_SUMMARY
else
echo "⚠️ Conformance check completed with warnings" >> $GITHUB_STEP_SUMMARY
fi
fi

echo "" >> $GITHUB_STEP_SUMMARY
echo "### Conformance Check Output" >> $GITHUB_STEP_SUMMARY
echo '```' >> $GITHUB_STEP_SUMMARY
cat conformance-output.txt >> $GITHUB_STEP_SUMMARY
echo '```' >> $GITHUB_STEP_SUMMARY

# Also output to console for visibility
echo "=== Conformance Check Results ==="
cat conformance-output.txt

# Always succeed (treat as warning only)
exit 0

- name: Upload conformance report
if: always()
uses: actions/upload-artifact@v4
with:
name: safe-outputs-conformance-report
path: conformance-output.txt
retention-days: 7
Loading
Loading