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

View File

@ -2,7 +2,8 @@ FROM mikefarah/yq:4
COPY entrypoint.sh /entrypoint.sh COPY entrypoint.sh /entrypoint.sh
# this seems to be the default user in github actions # github action recommendation is to run as root.
USER 1001 # https://docs.github.com/en/actions/creating-actions/dockerfile-support-for-github-actions#user
USER root
ENTRYPOINT ["/entrypoint.sh"] ENTRYPOINT ["/entrypoint.sh"]