Skip to content
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

Download artifacts to relative locations inside the task directory #944

Merged
merged 6 commits into from
Mar 19, 2016

Conversation

dadgar
Copy link
Contributor

@dadgar dadgar commented Mar 19, 2016

This PR:

  • Allows for downloading of artifacts to relative locations in the task's directory
  • Adds binary path lookup
  • Updates JSON documentation
  • Makes the default download location the task's local directory.

if err != nil {
return nil, err
}
path = rel
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Defense in depth, I would re-verify that taskDir is a parent of absPath

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Doing the check here is unnecessary as if the path has escaped, it will be invalid inside the chroot.

@armon
Copy link
Member

armon commented Mar 19, 2016

Minor comments, LGTM

dadgar added a commit that referenced this pull request Mar 19, 2016
Download artifacts to relative locations inside the task directory
@dadgar dadgar merged commit b0a1b32 into master Mar 19, 2016
@dadgar dadgar deleted the f-artifact-location branch March 19, 2016 20:37
@github-actions
Copy link

I'm going to lock this pull request because it has been closed for 120 days ⏳. This helps our maintainers find and focus on the active contributions.
If you have found a problem that seems related to this change, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Apr 27, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants