From aa6c78f2e1d6e65993e6be90a76388756786df0c Mon Sep 17 00:00:00 2001 From: hc-github-team-secure-boundary <82989682+hc-github-team-secure-boundary@users.noreply.github.com> Date: Fri, 23 Jan 2026 15:58:29 -0500 Subject: [PATCH] chore(e2e): Download modules if cache not found (#6361) (#6371) (cherry picked from commit 45827610599ae1c60e07f34b2a2fa8491b8dedfe) # Conflicts: # .github/workflows/enos-run.yml Co-authored-by: Michael Li --- .github/workflows/enos-run.yml | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/.github/workflows/enos-run.yml b/.github/workflows/enos-run.yml index c8f6f3538c..22625f3116 100644 --- a/.github/workflows/enos-run.yml +++ b/.github/workflows/enos-run.yml @@ -108,6 +108,7 @@ jobs: go-version: ${{ inputs.go-version }} cache: false - name: Set up Go modules cache + id: go-mod-cache uses: actions/cache@0400d5f644dc74513175e3cd8d07132dd4860809 # v4.2.4 with: path: | @@ -118,6 +119,10 @@ jobs: restore-keys: | ${{ runner.os }}-go fail-on-cache-miss: false + - name: Downloads Go modules if cache miss + if: steps.go-mod-cache.outputs.cache-hit != 'true' + run: | + go mod download - name: Set up Terraform uses: hashicorp/setup-terraform@b9cd54a3c349d3f38e8881555d616ced269862dd # TSCCR: loading action configs: failed to query HEAD reference: failed to get advertised references: authorization failed with: