-
Notifications
You must be signed in to change notification settings - Fork 79
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Overly restrictive tar-file requirements (leading ./
needed)
#203
Comments
Hello, This is an intentional check. We validate We do that for security purposes mainly and have no intentions of lowering this requirement. You are free to package your artifact the way you like and not use |
Thanks for the quick response @yoannchaudet!
I understand the concern with absolute paths and
Is the full format you expect documented somewhere? This repository says the following:
and the
And neither mentions this |
Thank you for pointing our documentation gaps. Will make some amendments. Consider |
Thank you. Maybe a separate error message would be great too, as the current one does not mention this possibility at all. :-) |
Also it seems archive is actually not gzip'd? if i upload a (although i guess with just a |
Hey,
I'm investigating a very specific issue using
deploy-pages
, and I think I've narrowed it down to a 100% repro. I'm using a custom build setup with a static page generator. Due to some build process changes I ended up moving from packaging loose files to directly building the tar archive (i.e., replacingupload-pages-artifact
). That change broke this action. After a lot of testing; I've found that the two commands below end up bisecting the behavior. In practice, the latter archive is generated by a build tool without using thetar
command.This works:
While this fails:
In a hypothetical situation where we're only tarring an
index.html
the first command creates the tar file[./index.html]
, whereas the latter is simply[index.html]
. Not handling this seems like a bug, but at a minimum it should probably be documented on this action if it's intentionally required. As far as I can tell, on my specific version of tar, these two archives extract identically regardless ofcwd
,-C
, etc.This is the error message when using the latter format:
The same behavior can also be observed by adding
--xform s:'./'::
to the working command, which indicates that this is indeed a result of the directory structure inside the tar.The tar used for testing:
Happy to supply any more info as necessary.
The text was updated successfully, but these errors were encountered: