diff --git a/.github/workflows/continuous-integration.yaml b/.github/workflows/continuous-integration.yaml index 6657c7aa40..4c315ad351 100644 --- a/.github/workflows/continuous-integration.yaml +++ b/.github/workflows/continuous-integration.yaml @@ -20,6 +20,7 @@ jobs: - name: Set up Go uses: actions/setup-go@v5 + id: setup-go with: go-version: "~1.21.1" @@ -27,7 +28,7 @@ jobs: uses: actions/cache@v4 with: path: bin - key: ${{ runner.os }}-${{ runner.arch }}-${{ hashFiles('Makefile') }} + key: ${{ runner.os }}-${{ runner.arch }}-${{ hashFiles('Makefile') }}-${{ steps.setup-go.outputs.go-version }} - name: Install tools run: make install-tools @@ -49,9 +50,10 @@ jobs: - name: Cache tools uses: actions/cache@v4 + id: setup-go with: path: bin - key: ${{ runner.os }}-${{ runner.arch }}-${{ hashFiles('Makefile') }} + key: ${{ runner.os }}-${{ runner.arch }}-${{ hashFiles('Makefile') }}-${{ steps.setup-go.outputs.go-version }} - name: Install tools run: make install-tools diff --git a/.github/workflows/e2e.yaml b/.github/workflows/e2e.yaml index c7541ac061..3b4f14097a 100644 --- a/.github/workflows/e2e.yaml +++ b/.github/workflows/e2e.yaml @@ -44,13 +44,14 @@ jobs: uses: actions/checkout@v4 - name: Set up Go uses: actions/setup-go@v5 + id: setup-go with: go-version: "~1.21.3" - name: Cache tools uses: actions/cache@v4 with: path: bin - key: ${{ runner.os }}-${{ runner.arch }}-${{ hashFiles('Makefile') }} + key: ${{ runner.os }}-${{ runner.arch }}-${{ hashFiles('Makefile') }}-${{ steps.setup-go.outputs.go-version }} - name: Install chainsaw uses: kyverno/action-install-chainsaw@v0.1.8 - name: Install tools diff --git a/.github/workflows/scorecard.yaml b/.github/workflows/scorecard.yaml index 2b6be81fec..ed3cbc493b 100644 --- a/.github/workflows/scorecard.yaml +++ b/.github/workflows/scorecard.yaml @@ -24,6 +24,7 @@ jobs: - name: Set up Go uses: actions/setup-go@v5 + id: setup-go with: go-version: "~1.21.1" @@ -34,7 +35,7 @@ jobs: uses: actions/cache@v4 with: path: bin - key: ${{ runner.os }}-${{ runner.arch }}-${{ hashFiles('Makefile') }} + key: ${{ runner.os }}-${{ runner.arch }}-${{ hashFiles('Makefile') }}-${{ steps.setup-go.outputs.go-version }} - name: Install tools run: make install-tools