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

Update test case Dockerfile #304

Open
cherylking opened this issue Oct 30, 2023 · 1 comment · May be fixed by #468
Open

Update test case Dockerfile #304

cherylking opened this issue Oct 30, 2023 · 1 comment · May be fixed by #468
Assignees
Labels
automated tests enhancement New feature or request
Milestone

Comments

@cherylking
Copy link
Member

Investigate whether the Dockerfile used in the test cases can be updated to run with a non-root user. They do a chown 1001 for some files, but do not switch to that user at the end of the file.

Affected files:

This was identified in the static app scan.

@gilbysunil14
Copy link

gilbysunil14 commented Jan 13, 2025

We can remove the --chown flag from the command. This will still work because the Dockerfile specifies the user as 1001, which is the default user in the image. The ownership of the copied files will be set to this user, so there will be no need to use the --chown flag.
In effect test cases can be run with a non-root user.

Removed the flag and raised a PR.

@aparnamichael aparnamichael moved this from Prioritized to In Progress in Open Liberty Developer Experience Jan 13, 2025
@gilbysunil14 gilbysunil14 moved this from In Progress to In Review in Open Liberty Developer Experience Jan 14, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
automated tests enhancement New feature or request
Projects
Development

Successfully merging a pull request may close this issue.

3 participants