diff --git a/.github/workflows/build-protobuf.yml b/.github/workflows/build-protobuf.yml index 196b3c794a..4aefa1b4de 100644 --- a/.github/workflows/build-protobuf.yml +++ b/.github/workflows/build-protobuf.yml @@ -34,6 +34,11 @@ jobs: image: ghcr.io/vdaas/vald/vald-ci-container:nightly steps: - uses: actions/checkout@v3 + with: + persist-credentials: false + - name: set git config + run: | + git config --global --add safe.directory ${GITHUB_WORKSPACE} - name: build protobuf run: | make proto/all diff --git a/.github/workflows/reviewdog.yml b/.github/workflows/reviewdog.yml index fc918ce515..fc92eb90c4 100644 --- a/.github/workflows/reviewdog.yml +++ b/.github/workflows/reviewdog.yml @@ -28,6 +28,11 @@ jobs: image: ghcr.io/vdaas/vald/vald-ci-container:nightly steps: - uses: actions/checkout@v3 + with: + persist-credentials: false + - name: set git config + run: | + git config --global --add safe.directory ${GITHUB_WORKSPACE} - name: go build run: | go build -mod=readonly ./... diff --git a/Makefile.d/proto.mk b/Makefile.d/proto.mk index 097d1842b0..b46724e496 100644 --- a/Makefile.d/proto.mk +++ b/Makefile.d/proto.mk @@ -133,6 +133,7 @@ $(GOPATH)/bin/swagger: $(PBGOS): \ $(PROTOS) \ proto/deps + @echo $(ROOTDIR) @$(call green, "generating pb.go files...") $(call mkdir, $(dir $@)) $(call proto-code-gen, $(patsubst apis/grpc/%.pb.go,apis/proto/%.proto,$@)) diff --git a/pkg/agent/core/ngt/handler/grpc/handler_test.go b/pkg/agent/core/ngt/handler/grpc/handler_test.go index 05b7887783..96f46001b3 100644 --- a/pkg/agent/core/ngt/handler/grpc/handler_test.go +++ b/pkg/agent/core/ngt/handler/grpc/handler_test.go @@ -35,6 +35,7 @@ import ( "github.com/vdaas/vald/internal/test/goleak" "github.com/vdaas/vald/pkg/agent/core/ngt/service" ) + func TestMain(m *testing.M) { log.Init(log.WithLoggerType(logger.NOP.String())) info.Init("")