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

[bug] Unable to use GitHub action local resources / [feature] Allow mapping custom paths #144

Open
jtomkiew-mng opened this issue Mar 12, 2024 · 2 comments
Assignees
Labels
enhancement Feature request/improved experience

Comments

@jtomkiew-mng
Copy link

Description

Due to azure/cli action script running in a docker container and only mapping current work directory, it seems clunky to use within custom GitHub actions that define resources (i.e. files in the same root directory as the action), as action resources are downloaded to a different directory (github.action_path), outside of current work directory.

The bug part

If you want to consider this a bug, then I would expect all GitHub standard paths to be mapped inside the container (other than the work directory: github.action_path and possibly github.event_path, maybe even more, see: https://docs.github.com/en/actions/learn-github-actions/contexts#github-context).

The feature part

If you want to consider this a feature request, then I would kindly ask for adding an additional input that allows mapping custom local paths to container paths.

The workaround

To use custom action resources you need to copy them in a separate step to some path in the work directory.

@jtomkiew-mng jtomkiew-mng added the need-to-triage Requires investigation label Mar 12, 2024
@MoChilia MoChilia added enhancement Feature request/improved experience and removed need-to-triage Requires investigation labels Mar 13, 2024
@MoChilia
Copy link
Member

Hi @jtomkiew-mng, thanks for reporting this. The scenario you described is actually a limitation for actions using docker container. Allowing mapping custom local paths to container paths may be a potential feature for azure/cli.
Regarding the github.action_path, it is only used in composite actions. So far, it hasn't been considered in this action. I will explore ways to achieve this and update you here if there are any developments regarding this issue.

@audhage
Copy link

audhage commented Nov 28, 2024

Using this action in a composite action as well and just hit the same problem. Would be great to have the mapping feature for sure.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement Feature request/improved experience
Projects
None yet
Development

No branches or pull requests

3 participants