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 Dockerfile #25

Merged
merged 1 commit into from
Oct 21, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM nginx:mainline-alpine3.19-perl

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

High Wiz IaC Finding

Details
Rule Missing User Instruction
Rule ID e24d894e-a4db-4b8d-98cc-38d5825e1c7a
Severity High
Resource FROM={{nginx:mainline-alpine3.19-perl}}

Details

A user should be specified in the dockerfile, otherwise the image will run as root

Expected: The 'Dockerfile' should contain the 'USER' instruction
Found: The 'Dockerfile' does not contain any 'USER' instruction
Security Frameworks: 339b194f-8e91-44fa-910e-6eee432ff185, 9bc0c54d-4a51-4dbc-8ae6-890bc8c96f68, c7d2843b-ff83-4115-823e-a440e5c9b434, e24345c2-b2f7-40d2-9067-d71280d443d8, fcb43ca7-1138-43c6-af95-fe30190b00f7

#desc

COPY test.txt /www/html/test.txt
COPY jenkins_demo/test.txt /www/html/test.txt