From 19baeec5c97ba6c3dcfba8f682f141b0fde85772 Mon Sep 17 00:00:00 2001 From: Mike Farah Date: Fri, 16 Jul 2021 09:58:40 +1000 Subject: [PATCH] set github default user --- .github/workflows/test-yq.yml | 1 + github-action/Dockerfile | 3 +++ 2 files changed, 4 insertions(+) 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"]