Skip to content

Commit 1ae1b86

Browse files
committed
ci: Add safe.directory git config
1 parent daa8ed5 commit 1ae1b86

File tree

3 files changed

+9
-0
lines changed

3 files changed

+9
-0
lines changed

.github/workflows/on-pull-request.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ jobs:
2424
curl -sSL http://ci.q-ctrl.com | bash -
2525
- name: Ensure no development packages have been set
2626
run: |
27+
git config --global --add safe.directory $GITHUB_WORKSPACE
2728
/scripts/check-for-internal-versions.sh
2829
linting:
2930
# Filter out PRs originating from this repository (triggers on-push.yml instead)
@@ -38,6 +39,7 @@ jobs:
3839
curl -sSL http://ci.q-ctrl.com | bash -
3940
- name: Install Python dependencies
4041
run: |
42+
git config --global --add safe.directory $GITHUB_WORKSPACE
4143
/scripts/install-python-dependencies.sh
4244
- name: Run Pre-Commit
4345
run: |
@@ -59,6 +61,7 @@ jobs:
5961
curl -sSL http://ci.q-ctrl.com | bash -
6062
- name: Install Python dependencies
6163
run: |
64+
git config --global --add safe.directory $GITHUB_WORKSPACE
6265
/scripts/install-python-dependencies.sh
6366
- name: Run Pytest
6467
run: |

.github/workflows/on-push.yaml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ jobs:
2424
env:
2525
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
2626
run: |
27+
git config --global --add safe.directory $GITHUB_WORKSPACE
2728
/scripts/housekeeping.sh
2829
2930
linting:
@@ -40,6 +41,7 @@ jobs:
4041
./ci vault login -r ${{ secrets.VAULT_ROLE_ID }} -s ${{ secrets.VAULT_SECRET_ID }}
4142
- name: Install Python dependencies
4243
run: |
44+
git config --global --add safe.directory $GITHUB_WORKSPACE
4345
/scripts/install-python-dependencies.sh
4446
- name: Run Pre-Commit
4547
run: |
@@ -62,13 +64,15 @@ jobs:
6264
./ci vault login -r ${{ secrets.VAULT_ROLE_ID }} -s ${{ secrets.VAULT_SECRET_ID }}
6365
- name: Install Python dependencies
6466
run: |
67+
git config --global --add safe.directory $GITHUB_WORKSPACE
6568
/scripts/install-python-dependencies.sh
6669
- name: Run Pytest
6770
run: |
6871
/scripts/pytest.sh
6972
7073
publish_internally:
7174
runs-on: ubuntu-latest
75+
container: qctrl/ci-images:python-3.11-ci
7276
steps:
7377
- uses: actions/checkout@v4
7478
- name: Download CI tool
@@ -82,4 +86,5 @@ jobs:
8286
env:
8387
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
8488
run: |
89+
git config --global --add safe.directory $GITHUB_WORKSPACE
8590
/scripts/publish-dev-version.sh

.github/workflows/on-release.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ jobs:
2323
env:
2424
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
2525
run: |
26+
git config --global --add safe.directory $GITHUB_WORKSPACE
2627
/scripts/housekeeping.sh
2728
- name: Publish publicly
2829
env:

0 commit comments

Comments
 (0)