diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index e74e9bd..3bbc778 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -43,8 +43,10 @@ jobs: - name: Unit test run: make test - - name: Upload coverage report - run: bash <(curl -s https://codecov.io/bash) + - name: Upload codecov + uses: codecov/codecov-action@v4 + env: + CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }} build: runs-on: ubuntu-latest diff --git a/api/v1alpha1/zz_generated.deepcopy.go b/api/v1alpha1/zz_generated.deepcopy.go index b0eaecf..3b5ccfa 100644 --- a/api/v1alpha1/zz_generated.deepcopy.go +++ b/api/v1alpha1/zz_generated.deepcopy.go @@ -1,5 +1,4 @@ //go:build !ignore_autogenerated -// +build !ignore_autogenerated /* Copyright 2022 Tinkerbell. @@ -22,9 +21,10 @@ limitations under the License. package v1alpha1 import ( - "k8s.io/api/core/v1" - runtime "k8s.io/apimachinery/pkg/runtime" "net/http" + + v1 "k8s.io/api/core/v1" + runtime "k8s.io/apimachinery/pkg/runtime" ) // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. @@ -104,7 +104,8 @@ func (in *HMACOpts) DeepCopyInto(out *HMACOpts) { if val == nil { (*out)[key] = nil } else { - in, out := &val, &outVal + inVal := (*in)[key] + in, out := &inVal, &outVal *out = make([]v1.SecretReference, len(*in)) copy(*out, *in) } @@ -133,7 +134,8 @@ func (in HMACSecrets) DeepCopyInto(out *HMACSecrets) { if val == nil { (*out)[key] = nil } else { - in, out := &val, &outVal + inVal := (*in)[key] + in, out := &inVal, &outVal *out = make([]v1.SecretReference, len(*in)) copy(*out, *in) } @@ -551,7 +553,8 @@ func (in *RequestOpts) DeepCopyInto(out *RequestOpts) { if val == nil { (*out)[key] = nil } else { - in, out := &val, &outVal + inVal := (*in)[key] + in, out := &inVal, &outVal *out = make([]string, len(*in)) copy(*out, *in) } diff --git a/go.mod b/go.mod index 838b5b0..1a3888a 100644 --- a/go.mod +++ b/go.mod @@ -1,6 +1,7 @@ module github.com/tinkerbell/rufio -go 1.21 +go 1.22.0 + toolchain go1.22.2 require (