Use this when passing files between GitHub Actions jobs.
Artifacts · GitHub Actions
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.
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.
job → upload artefact → download in job/user
Context & applicabilityCommon mistakes · platform/version boundaries
Operational reference
Fast context before you go deeper.
Verification & Troubleshooting
Start with the observed symptom, prove the nearest boundary, and move outward only when the current state is understood.
Use the operational verification above to establish the expected state.
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 · 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.
- upload-artifact and download-artifact.
- Retention period applies.
- Artifacts are visible to repo readers.
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
Mechanics
The linked authority for bounded mechanics is GitHub Docs — Store and share data with workflow artifacts; documentation support is separate from observed lab/production Evidence.
Additional reference context Scope · expected state · examples · history · terminology Open only when you need the supporting context
Verification history & basis
When and against what this Topic was checked. Later text edits do not count as a new check.
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%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.