diff --git a/.github/workflows/import-profiler.yml b/.github/workflows/import-profiler.yml index 0dc8156311fd..33bf120a0e05 100644 --- a/.github/workflows/import-profiler.yml +++ b/.github/workflows/import-profiler.yml @@ -27,11 +27,9 @@ jobs: steps: - name: Checkout uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6.0.3 - # Use a fetch-depth of 2 to avoid error `fatal: origin/main...HEAD: no merge base` - # See https://github.com/googleapis/google-cloud-python/issues/12013 - # and https://github.com/actions/checkout#checkout-head. with: - fetch-depth: 2 + fetch-depth: 0 + filter: blob:none persist-credentials: false - name: Check for unit_test:all_packages label id: check-label @@ -54,7 +52,7 @@ jobs: MAX_SHARDS: ${{ env.MAX_SHARDS }} run: | if [ -n "$TARGET_BRANCH" ]; then - git fetch --no-tags --quiet origin "$TARGET_BRANCH" --depth=1 || true + git fetch --no-tags --quiet origin "$TARGET_BRANCH" || true fi python3 ci/get_package_shards.py @@ -72,7 +70,7 @@ jobs: - name: Checkout uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6.0.3 with: - fetch-depth: 0 # Fetch git history to find changed packages / baseline + fetch-depth: 2 persist-credentials: false - name: Setup Python uses: actions/setup-python@ece7cb06caefa5fff74198d8649806c4678c61a1 # v6 diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml index d4ea3678d221..bebd2c03233a 100644 --- a/.github/workflows/lint.yml +++ b/.github/workflows/lint.yml @@ -35,11 +35,9 @@ jobs: steps: - name: Checkout uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6.0.3 - # Use a fetch-depth of 2 to avoid error `fatal: origin/main...HEAD: no merge base` - # See https://github.com/googleapis/google-cloud-python/issues/12013 - # and https://github.com/actions/checkout#checkout-head. with: - fetch-depth: 2 + fetch-depth: 0 + filter: blob:none persist-credentials: false - name: Check for unit_test:all_packages label id: check-label @@ -61,7 +59,7 @@ jobs: TEST_ALL_PACKAGES: ${{ steps.check-label.outputs.is_full_run }} run: | if [ -n "$TARGET_BRANCH" ]; then - git fetch --no-tags --quiet origin "$TARGET_BRANCH" --deepen=200 || true + git fetch --no-tags --quiet origin "$TARGET_BRANCH" || true fi python3 ci/get_package_shards.py diff --git a/.github/workflows/unittest.yml b/.github/workflows/unittest.yml index aa1dc19802fd..6c2206518bc3 100644 --- a/.github/workflows/unittest.yml +++ b/.github/workflows/unittest.yml @@ -53,7 +53,8 @@ jobs: - name: Checkout uses: actions/checkout@11d5960a326750d5838078e36cf38b85af677262 # v4 with: - fetch-depth: 2 + fetch-depth: 0 + filter: blob:none persist-credentials: false - name: Check for unit_test:all_packages label id: check-label @@ -77,7 +78,7 @@ jobs: PACKAGE_WEIGHTS: ${{ env.PACKAGE_WEIGHTS }} run: | if [ -n "$TARGET_BRANCH" ]; then - git fetch --no-tags --quiet origin "$TARGET_BRANCH" --depth=1 || true + git fetch --no-tags --quiet origin "$TARGET_BRANCH" || true fi python3 ci/get_package_shards.py