Updated github action to run as root

This commit is contained in:
Mike Farah
2022-09-09 11:14:25 +10:00
parent ae7a48df2d
commit fb330ebcb0
+3 -2
View File
@@ -2,7 +2,8 @@ FROM mikefarah/yq:4
COPY entrypoint.sh /entrypoint.sh
# this seems to be the default user in github actions
USER 1001
# github action recommendation is to run as root.
# https://docs.github.com/en/actions/creating-actions/dockerfile-support-for-github-actions#user
USER root
ENTRYPOINT ["/entrypoint.sh"]