Skip to content

Commit

Permalink
fix: Add current working directory to safe.directory in Git config (#51)
Browse files Browse the repository at this point in the history
  • Loading branch information
sagic-orca authored Dec 11, 2024
1 parent 9a0bd1d commit 24019ed
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ exit_with_err() {

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

0 comments on commit 24019ed

Please sign in to comment.