diff --git a/.github/workflows/tests-ipsec-upgrade.yaml b/.github/workflows/tests-ipsec-upgrade.yaml index 7e20e2796c3f2..3b0eef610ff26 100644 --- a/.github/workflows/tests-ipsec-upgrade.yaml +++ b/.github/workflows/tests-ipsec-upgrade.yaml @@ -199,24 +199,6 @@ jobs: ref: ${{ inputs.context-ref || github.sha }} persist-credentials: false - - name: Check we effectively removed Git credentials - shell: bash - run: | - # For private repositories requiring authentication, check that we - # can no longer fetch from the repository. - if ! curl -L \ - -H "Accept: application/vnd.github+json" \ - -H "X-GitHub-Api-Version: 2022-11-28" \ - "https://api.github.com/repos/${{ github.repository }}" | \ - tee /dev/stderr | \ - jq --exit-status '.private == false'; then - echo 'Checking whether "git fetch" succeeds' - if git fetch origin HEAD; then - echo "::error::Git credentials not removed, aborting now." - false - fi - fi - - name: Derive stable Cilium installation config id: cilium-stable-config if: ${{ steps.vars.outputs.downgrade_version != '' }}