Skip to content

Commit 1340806

Browse files
committed
Adds sudo to git config command in workflow
Adds `sudo` to the `git config` command in the workflow to ensure the command has the necessary permissions to modify the system-level Git configuration. This prevents potential errors during git operations within the workflow.
1 parent ba000cc commit 1340806

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

.github/workflows/_cloudflare-r2-release.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -271,7 +271,7 @@ jobs:
271271
token: ${{ steps.app-token.outputs.token || github.token }}
272272

273273
- name: Patch git clone
274-
run: git config --system --add safe.directory '*'
274+
run: sudo git config --system --add safe.directory '*'
275275

276276
- name: Setup Node.js
277277
uses: actions/setup-node@v4
@@ -492,6 +492,9 @@ jobs:
492492
with:
493493
submodules: ${{ inputs.checkout_submodules }}
494494
token: ${{ steps.app-token.outputs.token || github.token }}
495+
496+
- name: Patch git clone
497+
run: sudo git config --system --add safe.directory '*'
495498

496499
- name: Download all artifacts
497500
uses: actions/download-artifact@v4

0 commit comments

Comments
 (0)