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
{{ message }}
Repository navigation
$GITHUB_WORKSPACE moves when using with.path on repo where action is executed #63
$GITHUB_WORKSPACE moves when using with.path on repo where action is executed (or when first fired?) Repository is current at '/home/runner/work/repo/repo', move to '/home/runner/work/repo/site'.
This looks like it was intended by the author, but there's no (documented) way to avoid this.
In my use-case, I have 2 repo's: One with my site's files and one with ansible-playbooks for deployment:
The goal is to have both of these available in a docker action $GITHUB_WORKSPACE, so I have access to both repo's inside a docker action. I know there are other solutions for this, but this is the most elegant way.
-edit- I experienced this gives issues with .github/* files not being on their expected places, so I understand that $GITHUB_WORKSPACE has to move with its primary repo. I'd still like to know how I then would be able to achieve something like mentioned above.
Reacted by Chigozirim, Daniel Anechitoaie, Joe Lust, Billy and Christoph Wurst
@ericsciple any chance you can add support for cloning the other repos with a SSH key for v2?
It would make things a bit more secure. With a PAT you basically give access to all the repos that user has access. With a SSH key you could give access only to the specific repo the SSH key is setup for.
Activity
smac89 commentedon Nov 9, 2019
I faced this issue myself. My current strategy is to use a regular
git clonefor the second repo.ericsciple commentedon Nov 22, 2019
acitons/checkout@v2 will fix this behavior. here is the pr
i'm expecting to merge probably early next week
danechitoaie commentedon Nov 23, 2019
@ericsciple any chance you can add support for cloning the other repos with a SSH key for v2?
It would make things a bit more secure. With a PAT you basically give access to all the repos that user has access. With a SSH key you could give access only to the specific repo the SSH key is setup for.
ericsciple commentedon Nov 23, 2019
@chrispat regarding priority for ssh?
this sounds like an option we would be able to add later without breaking compat - e.g. 2.1
ericsciple commentedon Nov 23, 2019
@danechitoaie i like the suggestion. Want to open a separate issue and i'll mark it as enhancement?
danechitoaie commentedon Nov 23, 2019
@ericsciple Done. Created #72
ericsciple commentedon Dec 13, 2019
Fixed in
v2-beta. I'll create av2tag tomorrow.