Skip to content

Commit 24019ed

Browse files
authored
fix: Add current working directory to safe.directory in Git config (#51)
1 parent 9a0bd1d commit 24019ed

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

entrypoint.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ exit_with_err() {
88

99
function run_orca_iac_scan() {
1010
cd "${GITHUB_WORKSPACE}" || exit_with_err "could not find GITHUB_WORKSPACE: ${GITHUB_WORKSPACE}"
11+
git config --global --add safe.directory "$PWD"
1112
echo "Running Orca IaC scan:"
1213
echo orca-cli "${GLOBAL_FLAGS[@]}" iac scan "${SCAN_FLAGS[@]}"
1314
orca-cli "${GLOBAL_FLAGS[@]}" iac scan "${SCAN_FLAGS[@]}"

0 commit comments

Comments
 (0)