diff --git a/.github/workflows/test-yq.yml b/.github/workflows/test-yq.yml index 9a62567b..144e85dc 100644 --- a/.github/workflows/test-yq.yml +++ b/.github/workflows/test-yq.yml @@ -15,5 +15,6 @@ jobs: - name: Write inplace test id: lookupSdkVersion uses: mikefarah/yq@master + options: --user 1001 with: cmd: yq eval -i '.a.b = 5' examples/data1.yaml \ No newline at end of file diff --git a/github-action/Dockerfile b/github-action/Dockerfile index 82aa6b36..3938080f 100644 --- a/github-action/Dockerfile +++ b/github-action/Dockerfile @@ -2,4 +2,7 @@ FROM mikefarah/yq:4.9.8 COPY entrypoint.sh /entrypoint.sh +# this seems to be the default user in github actions +USER 1001 + ENTRYPOINT ["/entrypoint.sh"]