From 120d119ae56b8842c2ba7c6b38c62c3371f3583b Mon Sep 17 00:00:00 2001 From: Jason Greathouse Date: Mon, 12 Feb 2024 17:37:46 -0600 Subject: [PATCH 1/2] restore safe-dir step, built in doesn't work as expected --- checkout/action.yaml | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/checkout/action.yaml b/checkout/action.yaml index 24fc483..38762d9 100644 --- a/checkout/action.yaml +++ b/checkout/action.yaml @@ -39,4 +39,10 @@ runs: path: ${{ inputs.path }} ref: ${{ inputs.ref }} repository: ${{ inputs.repository }} - set-safe-directory: true + # set-safe-directory: true <- not sure what the point is since this doesn't persist beyond the "Checkout" step + + - name: Set Git Safe Directory + shell: bash + run: | + git config --global --add safe.directory "$(pwd)" + git config --global -l --show-origin From 5fe01746643e7b151401738296554057f4377069 Mon Sep 17 00:00:00 2001 From: Jason Greathouse Date: Mon, 12 Feb 2024 20:00:23 -0600 Subject: [PATCH 2/2] Update checkout/action.yaml Co-authored-by: Nick Santana --- checkout/action.yaml | 1 - 1 file changed, 1 deletion(-) diff --git a/checkout/action.yaml b/checkout/action.yaml index 38762d9..98b0ea4 100644 --- a/checkout/action.yaml +++ b/checkout/action.yaml @@ -45,4 +45,3 @@ runs: shell: bash run: | git config --global --add safe.directory "$(pwd)" - git config --global -l --show-origin