File tree Expand file tree Collapse file tree 1 file changed +22
-0
lines changed
Expand file tree Collapse file tree 1 file changed +22
-0
lines changed Original file line number Diff line number Diff line change @@ -417,6 +417,28 @@ jobs:
417417 overwrite: true
418418` ` `
419419
420+ # ## Uploading Hidden Files
421+
422+ By default, hidden files are ignored by this action to avoid unintentionally uploading sensitive information.
423+
424+ If you need to upload hidden files, you can use the `include-hidden-files` input.
425+ Any files that contain sensitive information that should not be in the uploaded artifact can be excluded
426+ using the `path` :
427+
428+ ` ` ` yaml
429+ - uses: actions/upload-artifact@v4
430+ with:
431+ name: my-artifact
432+ include-hidden-files: true
433+ path: |
434+ path/output/
435+ !path/output/.production.env
436+ ` ` `
437+
438+ Hidden files are defined as any file beginning with `.` or files within folders beginning with `.`.
439+ On Windows, files and directories with the hidden attribute are not considered hidden files unless
440+ they have the `.` prefix.
441+
420442# # Limitations
421443
422444# ## Number of Artifacts
You can’t perform that action at this time.
0 commit comments