Pcornel
Browse topics
Options
Recent
Favorites
Automation · Technical reference

Artifacts · GitHub Actions

Direct answer

Artifacts in GitHub Actions are files saved from a job with actions/upload-artifact and downloaded in later jobs or from the run page, such as build outputs or test reports, with a retention period.

When to use this

Use this when passing files between GitHub Actions jobs.

First 30 seconds

1. Artefacts pass files between jobs and keep outputs.

2. Set retention.

3. Don't include secrets.

4. Use releases/registries for deployables.

5. Name clearly.

Operational verification

job → upload artefact → download in job/user

Context & applicabilityCommon mistakes · platform/version boundaries
Platform / version applicability
GitHub Actions workflow automation
applies
Structured applicability is explicit Topic metadata; it does not infer compatibility beyond the stored rows.
At a glance

Operational reference

Fast context before you go deeper.

PlatformGitHub Actions workflow automation · Automation implementations are tool and platform specific. Use the adjacent Domain for the technology being automated and this Domain for automation behavior.
Scope / prerequisiteUse this when passing files between GitHub Actions jobs.
What next?3 suggested next steps
Evidence1
On this pageJump to a specific section
Operational workflow

Verification & Troubleshooting

Start with the observed symptom, prove the nearest boundary, and move outward only when the current state is understood.

2 steps Observe → verify → isolate → change minimally → repeat the original test.
ObservedRecord what the original test actually shows

Capture the concrete output, symptom, packet, log or counter before changing anything.

Step 1 Verification path Verify boundary

The negative fixture should deliberately exercise risks such as event filter surprises, unpinned actions, secret/permission overreach, runner drift, matrix partial failure, artifact confusion and assuming conclusion=success shows external convergence, choosing the cases most relevant to build/run provenance, artifact name/digest/retention, upload/download scope and proving deployment consumes the intended artifact revision.

Step 2 Common mistakes Narrow the fault
  • Artifacts with sensitive data and long retention.
Evidence references

Evidence · 1 on this Topic

Expected observations and documentation recipes are reference material. Record actual output, device identity, scope and time before claiming a verified result.

observation · 1
Key points
  • upload-artifact and download-artifact.
  • Retention period applies.
  • Artifacts are visible to repo readers.
Key checks
  • gh run download <run-id> — download artefacts
  • actions/upload-artifact retention-days — retention
  • Artefact contents (no secrets) — safety
ReferenceWhy it matters1 section · depth on demand

In depth

Artifacts are files a workflow saves after a job finishes — build outputs, test reports, rendered configurations, logs — so later jobs can use them or people can download them. Each job runs on a separate runner, so artifacts are the way to pass files between jobs.

- uses: actions/upload-artifact@v4
  with:
    name: rendered-configs
    path: build/configs/
    retention-days: 14
# in a later job
- uses: actions/download-artifact@v4
  with:
    name: rendered-configs
    path: configs/

Artifacts count against storage quotas and are kept 90 days by default (configurable). Do not upload files containing secrets — anyone with read access to the repository can download artifacts.

ReferenceImportant terms & boundaries1 section · depth on demand
Additional reference context Scope · expected state · examples · history · terminology Open only when you need the supporting context
Technical verification history

Verification history & basis

When and against what this Topic was checked. Later text edits do not count as a new check.

2026-09-14 · vendor docGitHub Actions workflow automation current

Authoritative/upstream documentation reviewed for bounded claims in GitHub Actions > Artifacts. Documentation verification only; this is not observed lab or production Evidence.

Basis: https://docs.github.com/en/actions/using-workflows/storing-workflow-data-as-artifacts · confidence 94%
Depth when you need it

Deep reference

Healthy vs suspicious evidence

Output interpretation

For build/run provenance, artifact name/digest/retention, upload/download scope and proving deployment consumes the intended artifact revision, prefer typed fields and stable IDs over human presentation text.

Confirmation

Confirm action

Continue?