Skip to content

ci: upload audit findings as an audit-results artifact - #1186

Merged
dsanders11 merged 4 commits into
mainfrom
audit-results-artifact
Aug 7, 2026
Merged

ci: upload audit findings as an audit-results artifact#1186
dsanders11 merged 4 commits into
mainfrom
audit-results-artifact

Conversation

@claude

@claude claude Bot commented Aug 6, 2026

Copy link
Copy Markdown
Contributor

Requested by Samuel Attard · Slack thread

Description of Change

Before: the findings from the Audit Docs Version run were only visible on the workflow run's summary page (GITHUB_STEP_SUMMARY), which is not retrievable through any GitHub API.

After: the same findings are additionally uploaded as a build artifact — a single raw markdown file named audit-results.md — which is downloadable via the API as raw markdown (no zip archive to unpack). The step summary itself, the console output, and the run's exit code are unchanged.

How: immediately before the existing await core.summary.write() call, the script snapshots the summary buffer with core.summary.stringify() (this must happen before write(), which empties the buffer) and writes it to audit-results.md. When the audit fails, the expected-vs-actual SHAs (previously only console.log'd) are appended to the artifact markdown as well. A new actions/upload-artifact step (pinned to the same SHA already used elsewhere in this repo, if: always(), if-no-files-found: warn) uploads the file with archive: false, so the artifact is stored and served as the raw file audit-results.md rather than a zip.

Checklist

  • This PR was not created with AI. (PRs created mainly with AI will be closed. They waste our team's time. We ban repeat offenders.)

Generated by Claude Code

Step summaries are not retrievable via the GitHub API, so also write
the same findings markdown to a build artifact named audit-results.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01EfUcqpF7XDqWLtYTxU2tuW
@cloudflare-workers-and-pages

cloudflare-workers-and-pages Bot commented Aug 6, 2026

Copy link
Copy Markdown

Deploying electron-website with  Cloudflare Pages  Cloudflare Pages

Latest commit: 510de7a
Status: ✅  Deploy successful!
Preview URL: https://ee1a8fe0.electron-website.pages.dev
Branch Preview URL: https://audit-results-artifact.electron-website.pages.dev

View logs

@MarshallOfSound
MarshallOfSound marked this pull request as ready for review August 6, 2026 21:55
@MarshallOfSound
MarshallOfSound requested a review from a team as a code owner August 6, 2026 21:55
@dsanders11
dsanders11 merged commit facab3d into main Aug 7, 2026
7 checks passed
@dsanders11
dsanders11 deleted the audit-results-artifact branch August 7, 2026 07:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants