generated from actions/typescript-action
-
Notifications
You must be signed in to change notification settings - Fork 59
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
Docker user inconsistent when using GitHub Action #176
Comments
Also, in the container locally vscode user is user 1000 (according to
The built container w/ this github action responds with this:
Not sure why it's different. |
OK the problem was fixed by setting: |
lawrencegripper
added a commit
to lawrencegripper/azbrowse
that referenced
this issue
Feb 22, 2023
Avoid issues with inconsistent user in devcontainer ci see: devcontainers/ci#176
kachick
added a commit
to kachick/wait-other-jobs
that referenced
this issue
Jun 26, 2023
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I have a simple Golang-based docker container, nothing special, looks like this:
My devcontainer.json looks like this:
Notice that the user is
vscode
. Locally, if I built this container and runls -l /go/pkg/mod
, I see something like this:Notice the vscode user is properly named as the owner. Everything working as expected.
Now, If I do the very same thing w/ the GitHub Action, I see this:
Here the username is
1000
, and myrunCmd
togo test -v ./...
results in a bunch of permission denied errors.I verified that the container built by this github action believes it is correctly logged in as the
vscode
user, but this file system seems to not be consistent with what I am producing locally when VSCode builds this container.Am I doing something wrong? This feels like a bug, it should be otherwise fully reproducible.
The text was updated successfully, but these errors were encountered: