-
Notifications
You must be signed in to change notification settings - Fork 982
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
Use StepHost when evaluating inputs to actions #1762
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
Let me double check how we convert these for other variables, it this not getting converted for some reason?
You are only converting the environment variables, no single expressions contexts has ever been translated to a container path. - run: echo '${{github.workspace}}'
shell: bash The following two prints the container path - run: echo $WP
env:
WP: ${{github.workspace}}
shell: bash - run: echo $GITHUB_WORKSPACE
shell: bash
|
So, this does solve the issue for this specific context variable, however this problem exists for ALL path based context variables. For example consider the composite action:
The env's will get translated, the
|
src/Sdk/DTPipelines/Pipelines/ContextData/DictionaryContextData.cs
Outdated
Show resolved
Hide resolved
Can we update the PR description to include an output of dumping |
@TingluoHuang of course! I will fix all of the suggestions as soon as I can 👍 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM!
Hi,
where the container image is being pulled from ECR |
@faubion-hbo We recognised this as a sensitive change and rolling it out gradually. |
does not work. I had to change |
Put the script path using both the env var, and the context value for the "github.action_path". This should make the containers see the script. Reference: actions/runner#1762 (comment)
The problem still exists on self-hosted runners (actions-runner-controller) using defined container value. |
Closes #716