-
Notifications
You must be signed in to change notification settings - Fork 918
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
Horusec: fix docker misconfiguration #13942
base: develop
Are you sure you want to change the base?
Horusec: fix docker misconfiguration #13942
Conversation
@@ -2,4 +2,6 @@ FROM golang:1.21-alpine | |||
|
|||
COPY entrypoint.sh /entrypoint.sh | |||
|
|||
USER nonroot |
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.
This is failing this action now.
docker: Error response from daemon: unable to find user nonroot: no matching entries in passwd file.
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.
@prestonvanloon fixed, re-review please
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.
cp: can't create 'go.mod.orig': Permission denied
Please run CI locally using act
What type of PR is this?
Bug fix
What does this PR do? Why is it needed?
After running the HorusEC tool on the Prysm repository,
several misconfigurations in Dockerfiles were detected (details provided below the spoiler).
This pull request aims to fix them
Running containers with 'root' user
You should use COPY instead of ADD
Which issues(s) does this PR fix?
fixes #13791
Other notes for review
This is an additional step for fixing all HorusEC vulnerabilities and a way to integrate HorusEC into CI.