Repository navigation
Add --summary to proofline ci review for GitHub Actions job summaries - #135
Open
arielonoriaga wants to merge 2 commits into
Open
arielonoriaga wants to merge 2 commits into
arielonoriaga wants to merge 2 commits into
Conversation
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Adds an opt-in
--summary [FILE]flag toproofline ci reviewso CI jobs can publish a readable GitHub-Flavored Markdown review summary alongside--annotationsand--sarif:--summary(no path): appends the rendered Markdown toGITHUB_STEP_SUMMARYwithout clobbering earlier steps in the same job (separated cleanly by\n\nin a single buffered write, accounting for existing bytes against GitHub Actions' 1 MiB step summary cap, and refusing cleanly if remaining space cannot fit the summary header).--summary <FILE>: writes the rendered Markdown directly to an explicit file path (without requiring or touchingGITHUB_STEP_SUMMARY).GITHUB_STEP_SUMMARYor blank explicit paths (--summary "",--summary " ") fail immediately before OIDC token exchange, org resolution, credential loading, or polling.reason_codescontains only blank strings); inconsistentopen_items, unknown severities, and unmeasured--fail-on(absentopen_items) are reported honestly without inventing labels.text::one_lineand neutralizes raw HTML, Markdown links/images/emphasis/backticks, GFM table pipes (|/\|), GFM extended autolinks (https://,www.), and GitHub@mentions/mailto:/$math blocks (including inside<code>...</code>table cells, verified against GitHub's live/markdownGFM API).sarif::location), excludesRESOLVEDfindings, includes finding IDs forproofline fix context, avoids dangling empty Assessments or Findings table headers under tight budgets, and never splits UTF-8 code points, HTML entities, tags, or backtick spans on truncation.Cargo.toml/Cargo.lockunchanged) and zero new module dependency cycles (src/summary.rsdecoupled from CLI exit types).Verification (on
83a28ce)cargo fmt --check— passedcargo clippy --locked --all-targets -- -D warnings— passed (0 warnings)cargo test --locked --no-fail-fast— passed (167 passed, 0 failed, 1 pre-existing ignored acrosslib[75],http[42],local_patch[15],mcp[5],sarif[6],scan[10],update[1], and remaining suites)summary::tests(7 unit tests) andci_review_summary*(2 integration tests) 5× consecutively — 5/5 passedcargo deny check—advisories ok, bans ok, licenses ok, sources ok/markdown(mode: "gfm") API check — confirmed neutralized output for links, images, autolinks,@mentions,mailto:,$math,\|, and adjacent backtick payloads inside and outside<code>cells