From 24c1954cebc0e62655a9621d5a2adef81db84b5d Mon Sep 17 00:00:00 2001 From: Chesnay Schepler Date: Wed, 1 Nov 2023 16:58:01 +0100 Subject: [PATCH] [hotfix][docs] Fix git permission issue attempt #2 --- .github/workflows/docs.sh | 2 ++ .github/workflows/docs.yml | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/.github/workflows/docs.sh b/.github/workflows/docs.sh index b8a088d31d1..1d08bbbafef 100755 --- a/.github/workflows/docs.sh +++ b/.github/workflows/docs.sh @@ -22,6 +22,8 @@ mvn --version java -version javadoc -J-version +# workaround for a git security patch +git config --global --add safe.directory /root/flink git submodule update --init --recursive cd docs diff --git a/.github/workflows/docs.yml b/.github/workflows/docs.yml index 17d927a0eec..26754d2c1e6 100644 --- a/.github/workflows/docs.yml +++ b/.github/workflows/docs.yml @@ -48,7 +48,7 @@ jobs: fi - name: Build documentation run: | - docker run --user 1001 --rm --volume "$PWD:/root/flink" chesnay/flink-ci:java_8_11_17_maven_386_v2 bash -c "cd /root/flink && ./.github/workflows/docs.sh" + docker run --rm --volume "$PWD:/root/flink" chesnay/flink-ci:java_8_11_17_maven_386_v2 bash -c "cd /root/flink && ./.github/workflows/docs.sh" - name: Upload documentation uses: burnett01/rsync-deployments@5.2 with: