-
Notifications
You must be signed in to change notification settings - Fork 965
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
Inconsistent value for runner.temp
when running in a container
#2498
Comments
Hey @aibaars, We turned off the feature flag for the PR #1762 because the hashFiles used translated paths while executing from the host. |
@nikola-jokic I disagree that this issue is a duplicate of #2185. My problem is that Feel free to keep this issue closed, but please make sure the inconsistency is address as part of #2185. |
Maybe I'm not seeing something correctly but they both expanded to the same value right? The value in |
There are three uses of
I should have simplified the example to have only 2 uses of the variable instead of 3; apologies if this confused you. |
I think that happened because it got exposed as an env probably |
Ah so what happens is |
Exactly 😄 Envs are getting translated for sure |
Yes indeed, we already switched to Thanks for helping me understand what it going on. In the end the expansion is not inconsistent. It's just the way how action inputs are translated to environment variables that made it look like there was an inconsistency. |
Hi @aibaars / @nikola-jokic , it sounds like you solved this issue by using an environment variable instead of the template |
Describe the bug
It appears #1762 only partly fixed the problem. Looking at a failed run https://github.com/github/codeql/actions/runs/4442367661/jobs/7798560621 the variable
runner.temp
is expanded with two different values.In the following workflow snippet:
The use of
path: ${{ github.temp }}
in thewith:
clause of the download step was expanded correctly:but the variable was expanded wrongly in the
run:
step.Expected behavior
All uses of the
runner.temp
variable inside thesteps
should be expanded to same value. The same for any of the other folder related variables.Runner Version and Platform
Version of your runner?
'2.303.0'
OS of the machine running the runner?
Linux
What's not working?
Job fails with a "file not found" error message.
Job Log Output
If applicable, include the relevant part of the job / step log output here. All sensitive information should already be masked out, but please double-check before pasting here.
The text was updated successfully, but these errors were encountered: