diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 4e384dd075..98d6baf38d 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -41,10 +41,9 @@ jobs: run: | echo "k8s_latest=$(grep -m1 'FROM kindest/node' > $GITHUB_OUTPUT - name: Setup Golang Environment - uses: actions/setup-go@6edd4406fa81c3da01a34fa6f6343087c207a568 # v3.5.0 + uses: actions/setup-go@4d34df0c2316fe8122ab82dc22947d607c0c91f9 # v4.0.0 with: go-version-file: go.mod - cache: true - name: Determine GOPATH id: go run: echo "go_path=$(go env GOPATH)" >> $GITHUB_OUTPUT @@ -68,10 +67,9 @@ jobs: - name: Checkout Repository uses: actions/checkout@ac593985615ec2ede58e132d2e21d2b1cbd6127c # v3.3.0 - name: Setup Golang Environment - uses: actions/setup-go@6edd4406fa81c3da01a34fa6f6343087c207a568 # v3.5.0 + uses: actions/setup-go@4d34df0c2316fe8122ab82dc22947d607c0c91f9 # v4.0.0 with: go-version-file: go.mod - cache: true - name: Run Tests run: make cover - name: Upload coverage to Codecov @@ -96,10 +94,9 @@ jobs: fetch-depth: 0 - name: Setup Golang Environment - uses: actions/setup-go@6edd4406fa81c3da01a34fa6f6343087c207a568 # v3.5.0 + uses: actions/setup-go@4d34df0c2316fe8122ab82dc22947d607c0c91f9 # v4.0.0 with: go-version-file: go.mod - cache: true - name: Download Syft uses: anchore/sbom-action/download-syft@07978da4bdb4faa726e52dfc6b1bed63d4b56479 # v0.13.3 diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml index 995cf15c05..d22b5b607a 100644 --- a/.github/workflows/lint.yml +++ b/.github/workflows/lint.yml @@ -30,10 +30,9 @@ jobs: - name: Checkout Repository uses: actions/checkout@ac593985615ec2ede58e132d2e21d2b1cbd6127c # v3.3.0 - name: Setup Golang Environment - uses: actions/setup-go@6edd4406fa81c3da01a34fa6f6343087c207a568 # v3.5.0 + uses: actions/setup-go@4d34df0c2316fe8122ab82dc22947d607c0c91f9 # v4.0.0 with: go-version-file: go.mod - cache: true - name: Lint Code uses: golangci/golangci-lint-action@08e2f20817b15149a52b5b3ebe7de50aff2ba8c5 # v3.4.0 with: diff --git a/.github/workflows/update-docker-images.yml b/.github/workflows/update-docker-images.yml index c66202680b..0ebb5a9771 100644 --- a/.github/workflows/update-docker-images.yml +++ b/.github/workflows/update-docker-images.yml @@ -92,10 +92,9 @@ jobs: fetch-depth: 0 ref: refs/tags/v${{ needs.variables.outputs.kic-tag }} - name: Setup Golang Environment - uses: actions/setup-go@6edd4406fa81c3da01a34fa6f6343087c207a568 # v3.5.0 + uses: actions/setup-go@4d34df0c2316fe8122ab82dc22947d607c0c91f9 # v4.0.0 with: go-version-file: go.mod - cache: true - name: Determine GOPATH id: go run: echo "go_path=$(go env GOPATH)" >> $GITHUB_OUTPUT