From 5c6316b35e92ec437d462b7cbd9d51fa649c9c36 Mon Sep 17 00:00:00 2001 From: hc-github-team-secure-vault-core <82990506+hc-github-team-secure-vault-core@users.noreply.github.com> Date: Fri, 21 Jul 2023 12:45:35 -0400 Subject: [PATCH] backport of commit 8615b31598e094b1bf083242e76fff74a31daf9a (#22013) Co-authored-by: Ryan Cragun --- .github/actions/set-up-go/action.yml | 1 - .github/workflows/test-go.yml | 9 +++++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/.github/actions/set-up-go/action.yml b/.github/actions/set-up-go/action.yml index af18947c70..e6289b4427 100644 --- a/.github/actions/set-up-go/action.yml +++ b/.github/actions/set-up-go/action.yml @@ -25,7 +25,6 @@ outputs: runs: using: composite steps: - - uses: actions/checkout@c85c95e3d7251135ab7dc9ce3241c5835cc595a9 # v3.5.3 - id: go-version shell: bash run: echo "go-version=$(cat ./.go-version)" >> "$GITHUB_OUTPUT" diff --git a/.github/workflows/test-go.yml b/.github/workflows/test-go.yml index 3af69c8605..0a03580953 100644 --- a/.github/workflows/test-go.yml +++ b/.github/workflows/test-go.yml @@ -375,6 +375,11 @@ jobs: needs: test-go runs-on: ${{ fromJSON(inputs.runs-on) }} steps: + - uses: actions/cache@88522ab9f39a2ea568f7027eddc7d8d8bc9d59c8 # v3.3.1 + with: + path: test-results/go-test + key: go-test-reports-${{ github.run_number }} + restore-keys: go-test-reports- - uses: actions/download-artifact@9bc31d5ccc31df68ecc42ccf4149144866c47d8a # v3.0.2 with: name: test-results @@ -383,7 +388,3 @@ jobs: ls -lhR test-results/go-test find test-results/go-test -mindepth 1 -mtime +3 -delete ls -lhR test-results/go-test - - uses: actions/cache/save@88522ab9f39a2ea568f7027eddc7d8d8bc9d59c8 # v3.3.1 - with: - path: test-results/go-test - key: go-test-reports-${{ github.run_number }}