Sharing pullrequest metadata from input to output PR resource results in permission error #3054
Labels
kind/bug
Categorizes issue or PR as related to a bug.
priority/critical-urgent
Highest priority. Must be actively worked on as someone's top priority right now.
Milestone
Expected Behavior
One usecase for pull request resources is to have an input PR resource pull down the current state of a PR and then an output PR resource sync the updated state back to github. In order to make this work a step needs to be added to copy the input resource's metadata to the output resource's workspace directory (e.g.
/workspace/output/pr
). Once the metadata is copied into the output workspace the output resource should then be able to sync those changes back to github.Actual Behavior
At the moment this does not appear to work - during pullrequest upload the pullrequest resource attempts to read from /workspace/output/pr/pr.json and gets a permission denied error like this:
Steps to Reproduce the Problem
The following YAML reproduces the problem on current master:
Additional Info
This may be related to the fact that we build the entrypoint using a nonroot base image. Still investigating.
The text was updated successfully, but these errors were encountered: