GeezerVisonThe World Wide Web, restored to 800 pixels of glory. | ||||||||||||||||||||||||||||||||||||||||
| Home|About|Gaming cabinet|Archives|How it works|Starter sites | ||||||||||||||||||||||||||||||||||||||||
GeezerVison is showing github.com — Exclude hidden files by default by joshmgross · Pull Request #598 · actions/upload-artifact Conversation
|
| continue; | ||
| } | ||
| // Hidden file or directory? | ||
| if (options.excludeHiddenFiles && path.basename(item.path).match(/^\./)) { |
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
what about a few common things like gh-pages' .nojekyll and even .gitignore?
| if (options.excludeHiddenFiles && path.basename(item.path).match(/^\./)) { | |
| if (options.excludeHiddenFiles && path.basename(item.path).match(/^\.(?!nojekyll$)/)) { |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
Thank you for the feedback, for now we are going to go ahead with the 'all in' option as starting to pick and choose common things is a risk we start to go back to 'too many' common things and expose folks to the risk of mistakes causing issues.
I get the idea though, maybe in the future we could look at 'more flags' for "all-common-none", but that will be something we need to revisit at a later date so we could get a better view on what common would be :)
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
Well at least there should probably be a black/whitelist option rather than a bool methinks
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
path is effectively that allowlist/denylist option - you can allow hidden files and then specify in path which to exclude
https://github.com/actions/upload-artifact#upload-using-multiple-paths-and-exclusions
Sorry, something went wrong.
There was an error while loading. Please reload this page.
| continue; | ||
| } | ||
| // Hidden file or directory? | ||
| if (options.excludeHiddenFiles && path.basename(item.path).match(/^\./)) { |
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
same here
| if (options.excludeHiddenFiles && path.basename(item.path).match(/^\./)) { | |
| if (options.excludeHiddenFiles && path.basename(item.path).match(/^\.(?!nojekyll$)/)) { |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
See #598 (comment)
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
This just broke my workflow. I think this warrants a breaking change. |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
|
This has just broke 1000s of workflows that rely on artifacts produced by tools like pcov/phpunit etc. and any other reporting tools. This should have been released as a major version. |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
Failed our release pipeline as well. Agree. |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
Hey guys, even though this is definitely a good change, introducing a breaking change on a minor version isn't great. |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
It's also likely extremely hard to debug for users. "Breaking" was included in #602's title so it's unforgivable to sneak this in a minor version. |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
This change likely breaks every workflow that uploads the Did GitHub assess the number of (public) artifact uploads that would be affected by this change? I understand that avoiding upload of Some other possibilities:
The first option seems attractive to me, regardless of security implication, since the The second option minimizes harm. I must express my sympathy with all those who advocated for less impactful options, but did not prevail. Sadly, the OSS ecosystem must deal with the consequences. |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
|
I'd still suggest reverting in a minor version and re-releasing in a major one regardless of implementation (#598, #599, #598 (comment), etc) |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
Please direct all feedback to the tracking issue #602 |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
Successfully merging this pull request may close these issues.
There was an error while loading. Please reload this page.