Skip to content

Docker container no longer runs as root #7321

Answered by ArturRibeiro-CX
sjpalf asked this question in Q&A
Discussion options

You must be logged in to vote

Hi @sjpalf,

This change was made for security reasons, as running a container as root at runtime is not a best practice. You can see this reflected in KICS' own security checks - last_user_is_root dockerfile query

However, the change has since been reverted in this commit, so your issue should now be resolved. Additionally, since we reverted the change, we also had to update the KICS GitHub Action workflow to exclude the last user is root query - see the updated workflow here.

I hope this clarifies things and helps restore your workflow.
Let me know if I can assist you further!

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by ArturRibeiro-CX
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants