Scope non-LFS checkout config (#7035)

This commit is contained in:
2026-06-10 12:01:13 -07:00
committed by GitHub
parent 7486af58b8
commit 0bac3ab38f
3 changed files with 17 additions and 5 deletions
+8 -2
View File
@@ -36,14 +36,20 @@ jobs:
image_tag: ${{ steps.push-auth.outputs.image_tag }}
steps:
- name: Disable Git LFS filters for checkout
env:
GIT_CONFIG_GLOBAL: ${{ runner.temp }}/gitconfig-no-lfs
GIT_CONFIG_NOSYSTEM: "1"
run: |
git config --global --unset-all filter.lfs.process || true
git config --global --unset-all filter.lfs.smudge || true
git config --global --unset-all filter.lfs.clean || true
git config --global filter.lfs.smudge "cat"
git config --global filter.lfs.clean "cat"
git config --global filter.lfs.required false
- name: Checkout repository
uses: actions/checkout@v6
env:
GIT_CONFIG_GLOBAL: ${{ runner.temp }}/gitconfig-no-lfs
GIT_CONFIG_NOSYSTEM: "1"
with:
persist-credentials: false
lfs: false
+8 -2
View File
@@ -35,14 +35,20 @@ jobs:
image_tag: ${{ steps.push-shardok.outputs.image_tag }}
steps:
- name: Disable Git LFS filters for checkout
env:
GIT_CONFIG_GLOBAL: ${{ runner.temp }}/gitconfig-no-lfs
GIT_CONFIG_NOSYSTEM: "1"
run: |
git config --global --unset-all filter.lfs.process || true
git config --global --unset-all filter.lfs.smudge || true
git config --global --unset-all filter.lfs.clean || true
git config --global filter.lfs.smudge "cat"
git config --global filter.lfs.clean "cat"
git config --global filter.lfs.required false
- name: Checkout repository
uses: actions/checkout@v6
env:
GIT_CONFIG_GLOBAL: ${{ runner.temp }}/gitconfig-no-lfs
GIT_CONFIG_NOSYSTEM: "1"
with:
persist-credentials: false
lfs: false
+1 -1
View File
@@ -38,7 +38,7 @@ fi
echo "Using git-lfs at $(command -v git-lfs)"
git lfs version
git lfs install
git lfs install --force
echo "LFS objects before pull:"
git lfs ls-files | wc -l