GitHub Actions · infra · fg-0234

Uploaded artifact is missing dotfiles and folders such as .next or .output

If you see Artifact zip lacks files whose names start with a dot, the cause and the fix for GitHub Actions are below, last verified 2026-10-15.

Verified Oct 2026trust 50/100
Symptom
Artifact zip lacks files whose names start with a dotDownstream deploy job fails because the build folder is emptyWarning that no files were found for a path pointing at a dot folder
Cause
Since September 2, 2024 (upload-artifact v4.4.0), hidden files and anything inside dot folders are excluded by default to avoid leaking credentials.
Fix
Set include-hidden-files: true and exclude sensitive files explicitly in path.
Apply
- uses: actions/upload-artifact@v4 with: name: build include-hidden-files: true path: | .next/ !.next/cache/
Affected
actions/upload-artifact v4.4.0 and later, since 2024-09-02
Sources

Last verified 2026-10-15 · Confirmed by 0 builders

Related traps

Have your agent know this before it fails

$ /plugin marketplace add getfootgun/footgun
$ /plugin install footgun@footgun