Skip to content

Commit abd0369

Browse files
[SYCL] fix failing clang-format github action. (#6016)
clang-format Github action is failing. ( see #6015 and discussion: actions/checkout#760 ) Repo needs to be marked as safe for security reasons Signed-off-by: Chris Perkins chris.perkins@intel.com
1 parent b9cb1d1 commit abd0369

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

devops/actions/clang-format/action.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ runs:
66
- name: Run clang-format for the patch
77
shell: bash {0}
88
run: |
9+
git config --global --add safe.directory /__w/llvm/llvm
910
git clang-format ${GITHUB_SHA}^1
1011
git diff > ./clang-format.patch
1112
# Add patch with formatting fixes to CI job artifacts

devops/actions/llvm_test_suite/action.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,9 @@ post-if: false
3333
runs:
3434
using: "composite"
3535
steps:
36-
- run: cp -r /actions .
36+
- run: |
37+
cp -r /actions .
38+
git config --global --add safe.directory /__w/repo_cache/intel/llvm-test-suite
3739
shell: bash
3840
- name: Checkout LLVM Test Suite
3941
uses: ./actions/cached_checkout

0 commit comments

Comments
 (0)