Repository navigation
ci: upload audit findings as an audit-results artifact - #52680
Merged
Merged
Conversation
MarshallOfSound
approved these changes
Aug 7, 2026
MarshallOfSound
marked this pull request as ready for review
August 7, 2026 17:45
jkleinsc
approved these changes
Aug 7, 2026
|
No Release Notes |
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.
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 usesactions/upload-artifact@v7witharchive: false, so the artifact is a single raw markdown file — it is listed under the file nameaudit-results.mdand itsarchive_download_urlserves 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.mdartifact:.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 withcore.summary.stringify()intoaudit-results.mdimmediately beforecore.summary.write()(which empties the buffer), and a newactions/upload-artifactstep withif: 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 theelectron.d.tsdiff report: the "Changes Detected" patch, or the "No Changes" note. The "Set job output" step copies its$GITHUB_STEP_SUMMARYfile intoaudit-results.md, and a separate upload step publishes it; the existingartifactsupload of the raw.d.tsinputs is untouched.Both uploads use
if-no-files-found: warnso a missing findings file never fails the job. Summaries, Slack notifications, and exit codes are all identical to before. TheCLAUDE.mdCI/CD section now names both workflows and tells agents to download theaudit-results.mdartifact from the workflow run — raw markdown, straight from the artifact download endpoint — to read the findings.Checklist
Release Notes
Notes: none
Generated by Claude Code