Skip to content

Commit fb330eb

Browse files
committed
Updated github action to run as root
1 parent ae7a48d commit fb330eb

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

github-action/Dockerfile

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,8 @@ FROM mikefarah/yq:4
22

33
COPY entrypoint.sh /entrypoint.sh
44

5-
# this seems to be the default user in github actions
6-
USER 1001
5+
# github action recommendation is to run as root.
6+
# https://docs.github.com/en/actions/creating-actions/dockerfile-support-for-github-actions#user
7+
USER root
78

89
ENTRYPOINT ["/entrypoint.sh"]

0 commit comments

Comments
 (0)