From ac2bfb387b9fcfa2ff1a29dda4e0ab74a47ea60f Mon Sep 17 00:00:00 2001 From: Alejandro Pedraza Date: Mon, 17 Aug 2020 14:36:07 -0500 Subject: [PATCH] Remove no longer needed GITCOOKIE_SH in CI (#4881) Removed usage of `GITCOOKIE_SH`, which was a script stored in a secret to authenticate requests against googlesource.com, to avoid hitting rate limits when pulling go dependencies from that source. Now that we use go modules, deps are pulled from http://proxy.golang.org/ and this is no longer needed. --- .github/workflows/cloud_integration.yml | 6 +----- .github/workflows/release.yml | 6 +----- .github/workflows/static_checks.yml | 12 ++---------- .github/workflows/unit_tests.yml | 3 --- 4 files changed, 4 insertions(+), 23 deletions(-) diff --git a/.github/workflows/cloud_integration.yml b/.github/workflows/cloud_integration.yml index 7dc835aef..633e15d68 100644 --- a/.github/workflows/cloud_integration.yml +++ b/.github/workflows/cloud_integration.yml @@ -100,11 +100,7 @@ jobs: name: testing-${{ env.TAG }}-${{ github.run_id }} num_nodes: 2 - name: Run integration tests - env: - GITCOOKIE_SH: ${{ secrets.GITCOOKIE_SH }} - run: | - echo "$GITCOOKIE_SH" | bash - bin/tests --skip-kind-create "$CMD" + run: bin/tests --skip-kind-create "$CMD" - name: CNI tests run: | export TAG="$($CMD version --client --short)" diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index c8e191012..d6e51c8d3 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -183,11 +183,7 @@ jobs: name: testing-${{ steps.install_cli.outputs.tag }}-${{ github.run_id }} num_nodes: 2 - name: Run integration tests - env: - GITCOOKIE_SH: ${{ secrets.GITCOOKIE_SH }} - run: | - echo "$GITCOOKIE_SH" | bash - bin/tests --skip-kind-create "$CMD" + run: bin/tests --skip-kind-create "$CMD" - name: CNI tests run: | export TAG="$($CMD version --client --short)" diff --git a/.github/workflows/static_checks.yml b/.github/workflows/static_checks.yml index f4867b521..4d9dee668 100644 --- a/.github/workflows/static_checks.yml +++ b/.github/workflows/static_checks.yml @@ -18,11 +18,7 @@ jobs: # actions/checkout@v2 uses: actions/checkout@722adc6 - name: Go lint - env: - GITCOOKIE_SH: ${{ secrets.GITCOOKIE_SH }} - run: | - echo "$GITCOOKIE_SH" | bash - bin/lint --verbose + run: bin/lint --verbose go_format: name: Go format runs-on: ubuntu-18.04 @@ -33,11 +29,7 @@ jobs: # actions/checkout@v2 uses: actions/checkout@722adc6 - name: Format - env: - GITCOOKIE_SH: ${{ secrets.GITCOOKIE_SH }} - run: | - echo "$GITCOOKIE_SH" | bash - bin/fmt + run: bin/fmt shellcheck: name: shellcheck runs-on: ubuntu-18.04 diff --git a/.github/workflows/unit_tests.yml b/.github/workflows/unit_tests.yml index f8049d22d..261a8f4a5 100644 --- a/.github/workflows/unit_tests.yml +++ b/.github/workflows/unit_tests.yml @@ -18,10 +18,7 @@ jobs: # actions/checkout@v2 uses: actions/checkout@722adc6 - name: Go unit tests - env: - GITCOOKIE_SH: ${{ secrets.GITCOOKIE_SH }} run: | - echo "$GITCOOKIE_SH" | bash go get gotest.tools/gotestsum@v0.4.2 # TODO: validate bin/protoc-go.sh does not dirty the repo gotestsum -- -cover -race -v -mod=readonly ./...