Skip to content

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

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

jkleinsc 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 branch-CI audit and the Archaeologist dig were only visible on each run's summary page in the Actions UI. Step summaries (GITHUB_STEP_SUMMARY / core.summary) are not retrievable through any GitHub API, so tooling and agents could not read them programmatically.

After: each of these workflows now also uploads the findings its step summary shows as a build artifact, which is downloadable via the API (GET /repos/electron/electron/actions/runs/{run_id}/artifacts). The upload uses actions/upload-artifact@v7 with archive: false, so the artifact is a single raw markdown file — it is listed under the file name audit-results.md and its archive_download_url serves the markdown directly, no unzipping required. The step summaries themselves are unchanged — this is a dual-write.

The two workflows that upload the audit-results.md artifact:

  • .github/workflows/audit-branch-ci.yml — the artifact contains the branch-CI audit findings: the "Runs with Errors" table of release-branch CI runs that errored (or the no-errors note). The script snapshots the summary buffer with core.summary.stringify() into audit-results.md immediately before core.summary.write() (which empties the buffer), and a new actions/upload-artifact step with if: always() uploads it — so the artifact is produced even when the audit step exits non-zero after finding errors.
  • .github/workflows/archaeologist-dig.yml — the artifact contains the electron.d.ts diff report: the "Changes Detected" patch, or the "No Changes" note. The "Set job output" step copies its $GITHUB_STEP_SUMMARY file into audit-results.md, and a separate upload step publishes it; the existing artifacts upload of the raw .d.ts inputs is untouched.

Both uploads use if-no-files-found: warn so a missing findings file never fails the job. Summaries, Slack notifications, and exit codes are all identical to before. The CLAUDE.md CI/CD section now names both workflows and tells agents to download the audit-results.md artifact from the workflow run — raw markdown, straight from the artifact download endpoint — to read the findings.

Checklist

  • I have filled out the PR description
  • I have reviewed and verified the changes

Release Notes

Notes: none


Generated by Claude Code

@MarshallOfSound
MarshallOfSound marked this pull request as ready for review August 7, 2026 17:45
@jkleinsc
jkleinsc merged commit cf2574d into main Aug 7, 2026
77 checks passed
@jkleinsc
jkleinsc deleted the audit-results-artifact branch August 7, 2026 19:57
@release-clerk

release-clerk Bot commented Aug 7, 2026

Copy link
Copy Markdown

No Release Notes

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

Status: No status

Development

Successfully merging this pull request may close these issues.

3 participants