Uploading artifacts preserves the raw test files for later use, but it does not create a friendly review surface by itself. Publishing results directly to GitHub Actions produces a separate check run or job summary that is easier to scan during review. The first is storage, while the second is presentation and workflow visibility.
Why uploading artifacts and publishing results solve different jobs
Uploading test artifacts and publishing test results are not interchangeable in GitHub Actions. Artifacts are the raw files, such as reports, logs, or screenshots, saved for later inspection or download. Published results are rendered into the workflow experience itself, so reviewers can read outcomes without hunting through files or opening a separate archive.
The distinction matters because the two features serve different audiences. Artifacts preserve evidence, while published results present a usable summary inside the pull request or Actions run. If you only upload artifacts, you keep the data but leave the review burden on the person investigating it.
For teams that want fast review, the practical question is whether the result needs to be consumed in the workflow UI or merely retained. That is why the same test run can legitimately use both approaches, one for retention and one for day-to-day visibility.
What changes in reviewability and workflow visibility
Publishing results directly to GitHub Actions creates a check run or job summary that is easier to scan during code review. That changes the workflow from “evidence exists somewhere” to “the outcome is visible where decisions are made.” In a busy repository, that difference reduces friction for reviewers and makes failures more obvious.
Artifact uploads do not create that same native review surface. They are better treated as storage for later analysis, retention, or debugging, especially when the raw output is too detailed or too large for a summary. If the goal is quick go or no-go judgement, a published result is the stronger signal.
Where teams often go wrong is assuming that attaching a file is enough to make the result actionable. A file can be complete and still be operationally awkward, especially when reviewers must download, parse, or correlate it manually. Published results remove that extra step.
When to use one, the other, or both
Use artifact upload when you need the underlying files preserved for later inspection, comparison, or incident follow-up. Use direct result publication when the main need is visibility in the workflow, especially for PR review, status checks, and rapid triage. If you need both traceability and convenience, combine them rather than choosing only one.
GitHub and GitHub Actions Security Guide is useful here because it covers workflow permissions, runner hardening, action pinning, and common attack paths that make workflow outputs worth handling carefully. In practice, the choice between storage and presentation should be made alongside how much trust you place in the workflow and who can access its outputs.
For teams that manage supply-chain-sensitive builds, published results should be concise enough to help reviewers act quickly, while artifacts should retain the deeper evidence needed for debugging or audit trails. That separation keeps the review path efficient without throwing away the raw material.
Risk and Threat Considerations
Workflow outputs can become an exposure point when test logs, screenshots, or generated reports include secrets, tokens, or internal system details. Artifacts are especially useful for persistence and debugging, but that also means they can retain sensitive material longer than intended if teams do not scope retention and access carefully.
Failure mechanism: The failure is usually not in the upload step itself, but in what gets captured and how broadly it is retained or exposed. A test process that prints credentials, environment variables, or internal endpoints into logs can turn a harmless archive into a disclosure path.
Impact: The practical impact is secret exposure, unnecessary access to internal data, and longer-lived evidence of a compromise if the workflow was already abused. In reviewed pipelines, published results can also mislead teams if they surface a clean summary while the artifact contains the detail needed to spot a hidden failure mode.
Standards & Framework Alignment
This section maps relevant standards and security frameworks to the operational risks and controls described in this guidance.
OWASP ASVS, NIST SP 800-53 Rev 5 and CIS Controls v8 set the governance and control requirements practitioners need to meet.
| Framework | Control / Reference | Relevance |
|---|---|---|
| OWASP ASVS | V16 — Security Logging and Error Handling | Test outputs and summaries are logging surfaces that can leak sensitive data. |
| Recommendation — Sanitize test output before publishing or retaining it. | ||
| NIST SP 800-53 Rev 5 | AU-9 — Protection of Audit Information | Artifacts and workflow summaries are audit-like records that need exposure controls. |
| AU-11 — Audit Record Retention | Artifact uploads preserve raw test evidence for later use, so retention matters. | |
| Recommendation — Restrict access to retained test evidence and logs. Set retention periods that match debugging and compliance needs. | ||
| CIS Controls v8 | CIS-8 — Audit Log Management | Workflow summaries and artifacts both function as operational records that need managed access and retention. |
| Recommendation — Centralize and protect workflow evidence and summary records. | ||
Practitioner Guidance
What to verify: Check whether the information your tests emit is safe to show in the workflow UI, safe to store as an artifact, and safe to retain for the chosen period. If the raw output contains sensitive data, reduce verbosity or sanitize first rather than assuming artifact storage is benign.
Decision rule: If reviewers need an immediate pass or fail signal, publish results directly in the Actions experience. If engineers need the underlying evidence for debugging or audit, also upload the artifact. When in doubt, separate the human-readable summary from the full raw output.
Practitioner takeaway: Treat publication as a visibility choice and artifact upload as a retention choice; the strongest pipelines usually use both, but only after deciding what should be seen immediately and what should remain as evidence.
Related resources from NHI Mgmt Group
- What do teams get wrong about test reporting and coverage in GitHub Actions workflows?
- What breaks when GitHub Actions workflow files can be changed directly?
- How should security teams reduce risk from compromised GitHub Actions workflows?
- Should organisations allow AI systems to execute response actions directly?
Deepen Your Knowledge
Free weekly newsletter
Subscribe to the NHI & AI Identity Journal
The latest on NHI and Agentic AI security – articles, research, breaches, news and events every week.
Bonus 33% off our NHI Course when you subscribe.
Reviewed and updated by the NHIMG editorial team on November 2, 2026.
NHI Mgmt Group — the #1 independent authority on Non-Human Identity, IAM, and Agentic AI security. nhimg.org