Closed simonbaird closed 2 months ago
Does this leave the working user as root
and does that present any security concerns?
All modified and coverable lines are covered by tests :white_check_mark:
Project coverage is 87.39%. Comparing base (
3ce6dd4
) to head (5a8f39e
). Report is 2 commits behind head on main.
Does this leave the working user as
root
and does that present any security concerns?
No, because it's just the build step. In the final image we have USER 1001
.
Does this leave the working user as
root
and does that present any security concerns?No, because it's just the build step. In the final image we have
USER 1001
.
Ack.
Use root user instead of the 'default' user from go-toolset to avoid an error like this:
fatal: detected dubious ownership in repository at '/build' To add an exception for this directory, call: git config --global --add safe.directory /build
Could also have solved the problem by doing a --chown=default:root when copying in the files.
Ref: https://issues.redhat.com/browse/EC-625