Skip to content

Commit

Permalink
Fix Git permission issue during CI build
Browse files Browse the repository at this point in the history
The new permissions checks to fix CVE-2022-29187 in Git caused some
issues in our CI pipeline. This patch adds the checkout directory to
Git's "safe.directory" setting.
  • Loading branch information
jnidzwetzki committed Dec 14, 2022
1 parent 558688c commit 940626b
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions .github/workflows/linux-32bit-build-and-test.yaml
Expand Up @@ -63,6 +63,10 @@ jobs:

- name: Build TimescaleDB
run: |
# The owner of the checkout directory and the files do not match. Add the directory to
# Git's "safe.directory" setting. Otherwise git would complain about
# 'detected dubious ownership in repository'
git config --global --add safe.directory $(pwd)
./bootstrap -DCMAKE_BUILD_TYPE="${{ matrix.build_type }}" -DPG_SOURCE_DIR=~/postgresql -DREQUIRE_ALL_TESTS=ON
make -C build install
chown -R postgres:postgres .
Expand Down

0 comments on commit 940626b

Please sign in to comment.