Skip to content

Commit fc32449

Browse files
chore: update wfe-base and set up git safe directory (#236)
Image 2.0.12 uses git 2.39 and 2.0.3 uses 2.32. This error was intoduced with git 2.36. It requires setting up safe directory (probably here is some other way to fix it, but this works) Tested here: - https://github.com/splunk/splunk-add-on-for-google-workspace/actions/runs/8005834200 - https://github.com/splunk/splunk-add-on-for-cisco-meraki/actions/runs/8005821163
1 parent 664eeda commit fc32449

File tree

1 file changed

+56
-7
lines changed

1 file changed

+56
-7
lines changed

.github/workflows/reusable-build-test-release.yml

Lines changed: 56 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1043,7 +1043,7 @@ jobs:
10431043
sc4s: ${{ fromJson(needs.meta.outputs.python39_sc4s) }}
10441044
python39: true
10451045
container:
1046-
image: ghcr.io/splunk/workflow-engine-base:2.0.3
1046+
image: ghcr.io/splunk/workflow-engine-base:2.0.12
10471047
env:
10481048
ARGO_SERVER: ${{ needs.setup.outputs.argo-server }}
10491049
ARGO_HTTP1: ${{ needs.setup.outputs.argo-http1 }}
@@ -1064,6 +1064,13 @@ jobs:
10641064
- uses: actions/checkout@v3
10651065
with:
10661066
submodules: recursive
1067+
- name: configure git # This step configures git to omit "dubious git ownership error" in later test-reporter stage
1068+
id: configure-git
1069+
run: |
1070+
git --version
1071+
git_path="$(pwd)"
1072+
echo "$git_path"
1073+
git config --global --add safe.directory "$git_path"
10671074
- name: capture start time
10681075
id: capture-start-time
10691076
run: |
@@ -1285,7 +1292,7 @@ jobs:
12851292
sc4s: ${{ fromJson(needs.meta.outputs.python39_sc4s) }}
12861293
python39: true
12871294
container:
1288-
image: ghcr.io/splunk/workflow-engine-base:2.0.3
1295+
image: ghcr.io/splunk/workflow-engine-base:2.0.12
12891296
env:
12901297
ARGO_SERVER: ${{ needs.setup.outputs.argo-server }}
12911298
ARGO_HTTP1: ${{ needs.setup.outputs.argo-http1 }}
@@ -1305,6 +1312,13 @@ jobs:
13051312
- uses: actions/checkout@v3
13061313
with:
13071314
submodules: recursive
1315+
- name: configure git # This step configures git to omit "dubious git ownership error" in later test-reporter stage
1316+
id: configure-git
1317+
run: |
1318+
git --version
1319+
git_path="$(pwd)"
1320+
echo "$git_path"
1321+
git config --global --add safe.directory "$git_path"
13081322
- name: capture start time
13091323
id: capture-start-time
13101324
run: |
@@ -1506,7 +1520,7 @@ jobs:
15061520
browser: "chrome"
15071521
python39: true
15081522
container:
1509-
image: ghcr.io/splunk/workflow-engine-base:2.0.3
1523+
image: ghcr.io/splunk/workflow-engine-base:2.0.12
15101524
env:
15111525
ARGO_SERVER: ${{ needs.setup.outputs.argo-server }}
15121526
ARGO_HTTP1: ${{ needs.setup.outputs.argo-http1 }}
@@ -1527,6 +1541,13 @@ jobs:
15271541
- uses: actions/checkout@v3
15281542
with:
15291543
submodules: recursive
1544+
- name: configure git # This step configures git to omit "dubious git ownership error" in later test-reporter stage
1545+
id: configure-git
1546+
run: |
1547+
git --version
1548+
git_path="$(pwd)"
1549+
echo "$git_path"
1550+
git config --global --add safe.directory "$git_path"
15301551
- name: capture start time
15311552
id: capture-start-time
15321553
run: |
@@ -1735,7 +1756,7 @@ jobs:
17351756
modinput-type: [ "modinput_functional" ]
17361757
python39: true
17371758
container:
1738-
image: ghcr.io/splunk/workflow-engine-base:2.0.3
1759+
image: ghcr.io/splunk/workflow-engine-base:2.0.12
17391760
env:
17401761
ARGO_SERVER: ${{ needs.setup.outputs.argo-server }}
17411762
ARGO_HTTP1: ${{ needs.setup.outputs.argo-http1 }}
@@ -1756,6 +1777,13 @@ jobs:
17561777
- uses: actions/checkout@v3
17571778
with:
17581779
submodules: recursive
1780+
- name: configure git # This step configures git to omit "dubious git ownership error" in later test-reporter stage
1781+
id: configure-git
1782+
run: |
1783+
git --version
1784+
git_path="$(pwd)"
1785+
echo "$git_path"
1786+
git config --global --add safe.directory "$git_path"
17591787
- name: capture start time
17601788
id: capture-start-time
17611789
run: |
@@ -1974,7 +2002,7 @@ jobs:
19742002
os: "ubuntu:22.04"
19752003
python39: true
19762004
container:
1977-
image: ghcr.io/splunk/workflow-engine-base:2.0.3
2005+
image: ghcr.io/splunk/workflow-engine-base:2.0.12
19782006
env:
19792007
ARGO_SERVER: ${{ needs.setup.outputs.argo-server }}
19802008
ARGO_HTTP1: ${{ needs.setup.outputs.argo-http1 }}
@@ -1994,6 +2022,13 @@ jobs:
19942022
- uses: actions/checkout@v3
19952023
with:
19962024
submodules: recursive
2025+
- name: configure git # This step configures git to omit "dubious git ownership error" in later test-reporter stage
2026+
id: configure-git
2027+
run: |
2028+
git --version
2029+
git_path="$(pwd)"
2030+
echo "$git_path"
2031+
git config --global --add safe.directory "$git_path"
19972032
- name: capture start time
19982033
id: capture-start-time
19992034
run: |
@@ -2203,7 +2238,7 @@ jobs:
22032238
splunk: ${{ fromJson(needs.meta.outputs.matrix_supportedSplunk) }}
22042239
os: [ "ubuntu:22.04", "centos:7","redhat:8.5" ]
22052240
container:
2206-
image: ghcr.io/splunk/workflow-engine-base:2.0.3
2241+
image: ghcr.io/splunk/workflow-engine-base:2.0.12
22072242
env:
22082243
ARGO_SERVER: ${{ needs.setup.outputs.argo-server }}
22092244
ARGO_HTTP1: ${{ needs.setup.outputs.argo-http1 }}
@@ -2223,6 +2258,13 @@ jobs:
22232258
- uses: actions/checkout@v3
22242259
with:
22252260
submodules: recursive
2261+
- name: configure git # This step configures git to omit "dubious git ownership error" in later test-reporter stage
2262+
id: configure-git
2263+
run: |
2264+
git --version
2265+
git_path="$(pwd)"
2266+
echo "$git_path"
2267+
git config --global --add safe.directory "$git_path"
22262268
- name: capture start time
22272269
id: capture-start-time
22282270
run: |
@@ -2439,7 +2481,7 @@ jobs:
24392481
matrix:
24402482
splunk: ${{ fromJson(needs.meta.outputs.matrix_latestSplunk) }}
24412483
container:
2442-
image: ghcr.io/splunk/workflow-engine-base:2.0.3
2484+
image: ghcr.io/splunk/workflow-engine-base:2.0.12
24432485
env:
24442486
ARGO_SERVER: ${{ needs.setup.outputs.argo-server }}
24452487
ARGO_HTTP1: ${{ needs.setup.outputs.argo-http1 }}
@@ -2459,6 +2501,13 @@ jobs:
24592501
- uses: actions/checkout@v3
24602502
with:
24612503
submodules: recursive
2504+
- name: configure git # This step configures git to omit "dubious git ownership error" in later test-reporter stage
2505+
id: configure-git
2506+
run: |
2507+
git --version
2508+
git_path="$(pwd)"
2509+
echo "$git_path"
2510+
git config --global --add safe.directory "$git_path"
24622511
- name: capture start time
24632512
id: capture-start-time
24642513
run: |

0 commit comments

Comments
 (0)