-
Notifications
You must be signed in to change notification settings - Fork 995
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
Issue 1234: Support GITHUB_ACTION_PATH in composite action 'uses' #1684
base: main
Are you sure you want to change the base?
Issue 1234: Support GITHUB_ACTION_PATH in composite action 'uses' #1684
Conversation
@ricCap I'm not 100% this would solve my use case - how is $GITHUB_ACTION_PATH computed? Note that, because I want to use actions from a private repo and our org can't justify an enterprise account, we can't at present refer to the actions directly; we need to check them out during the run. Second, the path is required for me to find e.g. script files, not just |
@nyarly thank you very much for the feedback. Let me add some context: The GITHUB_ACTION_PATH or ${{ github.action_path }} is a variable that exists for composite actions, available in the github context, and that specifies the location of the action documented here.
For script files, you can already call your script (
assuming you have a folder structure like
Note the GITHUB_ACTION_PATH, or equilìvalent The reason for this PR is that the Not allowed now This PR tries to solve two problems:
Glad to add more details if it is still unclear. Thanks Short answer:
|
@TingluoHuang @thboop any chance I can get some feedback on this PR? This is a feature that we would really love to use Thanks all |
@ricCap That looks like exactly what I need. I just confirmed: we have many lines like
so being able to use |
Any chance I can get some comments on this PR? @TingluoHuang @thboop @fhammerl? Thanks |
Hoping to get some feedback on this |
@DawnGKoz904 @TingluoHuang @thboop @fhammerl - could you approve the workflow run on this PR? I'm eager to see this feature merged |
Without this, we need to effectively bypass the security controls around allow-lists for acceptable Actions within a repo/organisation, relying on "generating" an Action on the fly, then invoking it locally. Please can we get some attention on making Composite Actions more usable! |
@nyarly What's blocking this? |
@byF I don't know why you're asking me - I reported a related issue. I can't approve the CI run or anything. That'd be @DawnGKoz904 @TingluoHuang @thboop @fhammerl, maybe |
@nyarly Sorry man, I thought you were part of this effort on Github side.
The joy of doing OSS :)
…On Sat, Aug 13, 2022, 00:24 Judson Lester ***@***.***> wrote:
@byF <https://github.com/byF> I don't know why you're asking me - I
reported a related issue. I can't approve the CI run or anything. That'd be
@DawnGKoz904 <https://github.com/DawnGKoz904> @TingluoHuang
<https://github.com/TingluoHuang> @thboop <https://github.com/thboop>
@fhammerl <https://github.com/fhammerl>, maybe
—
Reply to this email directly, view it olucie_kubeckovan GitHub
<#1684 (comment)>, or
unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAEQWKWPOZCNXEMBFAC7RLLVY3FLNANCNFSM5OI7RE7A>
.
You are receiving this because you were mentioned.Message ID:
***@***.***>
|
Landed here looking for a solution to the Copy your internal actions into the github workspace. something like: |
Hi, I would like to help to get this merged. I've checked the changes but I couldn't see any tests @ricCap. |
Any chance to have this PR merged? |
@TingluoHuang, as Github Staff, could you comment on whether this PR has a chance of being merged? It seems like this feature might effectively be a way for regular GHA users to get features that have been reserved for Enterprise. Will that prevent the |
This is to avoid self-reference release before the version commit exists and is tagged. Self-reference would cause a Renovate loop in Sympower Actions. Relative references are not supported yet: actions/runner#1348 actions/runner#1684 This PR has been on the shelf since February. [Comment](actions/runner#1684 (comment)) from @nyarly from August suggests that this feature could compromise the feature set that is reserved for Enterprise users, so there is no confidence that it will be merged. Tested the changes here: https://github.com/sympower/msa-observability/actions/runs/6626012294 https://github.com/sympower/msa-observability/actions/runs/6626046945
Hi, I hope Github Staff is aware of this need, can we have some feedback on it please? |
@TingluoHuang we need this one also. Any chance this could be merged (1 year old PR) |
Hi @TingluoHuang any news on this topic? We still need this one. Thanks |
Hi, any chance to have some news for this PR? |
As this is my first contribution to the runner, I'd love to collect some feedback on my attempt to fix #1348 . Please let me know if this type of solution (substituting the value at that location) is virtually acceptable (with some refactoring) and if so, what type of tests I should add.
This PR substitutes the string ${GITHUB_ACTION_PATH} with the specific value, solving the use case of the ticket, and also allowing to use actions with the syntax
uses:my-org/my-action/.github/actions/my-action@v1
, wheremy-action
is a composite action that uses other actions contained in its subfolders. A full example (tested against the code of this PR can be found here, test workflow.Ensuring that I don't break the existing tests: https://github.com/ricCap/runner/actions/runs/1836874946