1717
1818 steps :
1919 - name : Checkout repo
20- uses : actions/checkout@v2
20+ uses : actions/checkout@v3
2121 with :
2222 fetch-depth : 0
23+
2324
2425 -
2526 name : install dependencies
3233 run : |
3334 set -x
3435 mkdir -p SCANCODE
35-
36+ git config --global --add safe.directory "$GITHUB_WORKSPACE"
3637 git diff --name-only --diff-filter=d origin/${GITHUB_BASE_REF} \
3738 | ( grep '.\(c\|cpp\|h\|hpp\|py\)$' || true )
3839 echo $?
@@ -60,13 +61,14 @@ jobs:
6061
6162 steps :
6263 - name : Checkout repo
63- uses : actions/checkout@v2
64+ uses : actions/checkout@v3
6465 with :
6566 fetch-depth : 0
6667
6768 -
6869 name : include check
6970 run : |
71+ git config --global --add safe.directory "$GITHUB_WORKSPACE"
7072 # checks mbed.h is not included in MbedOS files except in tests
7173 ! git grep '^#include\s["'"']mbed.h['"'"]$' -- '*.c' '*.h' '*.cpp' '*.hpp' \
7274 ':!*platform_mbed.h' ':!*TESTS/*' ':!TEST_APPS/' ':!UNITTESTS/' \
@@ -81,13 +83,14 @@ jobs:
8183 steps :
8284
8385 - name : Checkout repo
84- uses : actions/checkout@v2
86+ uses : actions/checkout@v3
8587 with :
8688 fetch-depth : 0
8789
8890 -
8991 name : UTF-8 Check
9092 run : |
93+ git config --global --add safe.directory "$GITHUB_WORKSPACE"
9194 # Make sure we're not introducing any text which is not UTF-8 encoded
9295 git diff origin/${GITHUB_BASE_REF} -U0 | ( grep -a '^+' || true ) | ( ! grep -axv '.*' )
9396
9699 name : astyle checks
97100 run : |
98101 set -x
102+ git config --global --add safe.directory "$GITHUB_WORKSPACE"
99103 git diff --name-only --diff-filter=d origin/${GITHUB_BASE_REF} \
100104 | ( grep '.*\.\(c\|cpp\|h\|hpp\)$' || true ) \
101105 | ( grep -v -f .codecheckignore || true ) \
@@ -111,7 +115,7 @@ jobs:
111115 steps :
112116
113117 - name : Checkout repo
114- uses : actions/checkout@v2
118+ uses : actions/checkout@v3
115119 with :
116120 fetch-depth : 0
117121
@@ -155,7 +159,7 @@ jobs:
155159 steps :
156160 -
157161 name : Checkout repo
158- uses : actions/checkout@v2
162+ uses : actions/checkout@v3
159163
160164
161165 - uses : actions/setup-python@v2
@@ -184,14 +188,15 @@ jobs:
184188 steps :
185189 -
186190 name : Checkout repo
187- uses : actions/checkout@v2
191+ uses : actions/checkout@v3
188192 with :
189193 fetch-depth : 0
190194
191195 -
192196 name : validate pins
193197 run : |
194198 set -x
199+ git config --global --add safe.directory "$GITHUB_WORKSPACE"
195200 git diff --name-only --diff-filter=d origin/${GITHUB_BASE_REF} \
196201 | ( grep '.*[\\|\/]PinNames.h$' || true ) \
197202 | while read file; do python ./hal/tests/pinvalidate/pinvalidate.py -vvvfp "${file}"; done
@@ -210,7 +215,7 @@ jobs:
210215 steps :
211216 -
212217 name : Checkout repo
213- uses : actions/checkout@v2
218+ uses : actions/checkout@v3
214219
215220 -
216221 name : cmake build
@@ -237,14 +242,15 @@ jobs:
237242 steps :
238243 -
239244 name : Checkout repo
240- uses : actions/checkout@v2
245+ uses : actions/checkout@v3
241246 with :
242247 fetch-depth : 0
243248
244249 -
245250 name : frozen tool check
246251 run : |
247252 set -x
253+ git config --global --add safe.directory "$GITHUB_WORKSPACE"
248254 git diff --name-only origin/${GITHUB_BASE_REF} \
249255 | egrep \
250256 -e "^tools/build_api*" \
0 commit comments