You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
ci: make Cora Review findings readable from the job log and summary #747
When the Cora Review job fails, the log only says "Cora found 1 blocking issue(s)". The finding itself (rule, file, line, message) is uploaded to Code Scanning and is not written to the job log, the job summary, the check run output, a PR comment, or an artifact. Anyone without access to the Code Scanning tab, and any automation that reads logs or the checks API, cannot see what to fix. This cost several fix attempts on a recent PR before the finding text could be read from the UI.
Proposed solution
Add a step after the review action, running even when the action fails, that reads cora-results.sarif and:
prints each finding as a workflow command (::error file=...,line=...,title=...::message), so it appears in the job log and as an annotation on the PR;
writes a table of the findings to the job summary;
caps the number of findings shown and escapes the text, since the SARIF content comes from a review of untrusted PR code.
It must not post comments or use any token beyond what the job already has.
Alternatives considered
Enabling the action's own PR comment step. It needs write access to PRs with content derived from untrusted code in a pull_request_target job; a log and summary output avoids that.
Before submitting
I searched existing issues and didn't find a duplicate
Activity