You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+29Lines changed: 29 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -64,6 +64,7 @@ There is also a new sub-action, `actions/upload-artifact/merge`. For more info,
64
64
Due to how Artifacts are created in this new version, it is no longer possible to upload to the same named Artifact multiple times. You must either split the uploads into multiple Artifacts with different names, or only upload once. Otherwise you _will_ encounter an error.
65
65
66
66
3. Limit of Artifacts for an individual job. Each job in a workflow run now has a limit of 500 artifacts.
67
+
4. With `v4.4` and later, hidden files are excluded by default.
67
68
68
69
For assistance with breaking changes, see [MIGRATION.md](docs/MIGRATION.md).
69
70
@@ -107,6 +108,12 @@ For assistance with breaking changes, see [MIGRATION.md](docs/MIGRATION.md).
107
108
# Does not fail if the artifact does not exist.
108
109
# Optional. Default is 'false'
109
110
overwrite:
111
+
112
+
# Whether to include hidden files in the provided path in the artifact
113
+
# The file contents of any hidden files in the path should be validated before
114
+
# enabled this to avoid uploading sensitive information.
115
+
# Optional. Default is 'false'
116
+
include-hidden-files:
110
117
```
111
118
112
119
### Outputs
@@ -410,6 +417,28 @@ jobs:
410
417
overwrite: true
411
418
```
412
419
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
0 commit comments