File tree Expand file tree Collapse file tree 4 files changed +11
-41
lines changed Expand file tree Collapse file tree 4 files changed +11
-41
lines changed Original file line number Diff line number Diff line change @@ -19,13 +19,18 @@ jobs:
19
19
runs-on : ubuntu-20.04
20
20
steps :
21
21
- uses : actions/checkout@v2
22
+ - uses : actions/setup-go@v2
23
+ with :
24
+ go-version : ${{ env.GO_VERSION }}
22
25
- uses : newrelic/newrelic-infra-checkers@v1
26
+ with :
27
+ golangci-lint-config : golangci-lint-limited
23
28
- name : Semgrep
24
29
uses : returntocorp/semgrep-action@v1
25
30
with :
26
31
auditOn : push
27
32
- name : golangci-lint
28
- uses : golangci/golangci-lint-action@v2
33
+ uses : golangci/golangci-lint-action@v3
29
34
continue-on-error : ${{ github.event_name != 'pull_request' }}
30
35
with :
31
36
only-new-issues : true
Load Diff This file was deleted.
Original file line number Diff line number Diff line change
1
+ # We are running the 2.16.0 version of github.com/emicklei/go-restful that had the fix backported, but trivy still points it out as false-positive
2
+ # This is going to be fixed by 2.15 of the kubernetes client go, they decided not to backport the fix since they are not using the impacted feature.
3
+ CVE-2022-1996
Original file line number Diff line number Diff line change @@ -8,32 +8,23 @@ IMAGE_NAME ?= newrelic/nri-discovery-kubernetes
8
8
GOPATH := $(shell go env GOPATH)
9
9
GORELEASER_VERSION := v0.168.0
10
10
GORELEASER_BIN ?= bin/goreleaser
11
- GOLANGCI_LINT_BIN = golangci-lint
12
11
13
12
all : build
14
13
15
- build : check-version clean validate test compile
14
+ build : check-version clean test compile
16
15
17
16
clean :
18
17
@echo " === $( PROJECT) === [ clean ]: Removing binaries and coverage file..."
19
18
@rm -rfv bin
20
19
@rm -rfv target
21
20
22
- tools : check-version
23
- @which $(GOLANGCI_LINT_BIN ) || echo " golangci-lint not found in PATH" >&2 && exit 1
24
-
25
21
fmt :
26
22
@go fmt ./...
27
23
28
24
deps :
29
25
@echo " === $( PROJECT) === [ deps ]: Installing package dependencies required by the project..."
30
26
@go mod download
31
27
32
- validate : deps
33
- @echo " === $( PROJECT) === [ validate ]: Validating source code running golangci-lint..."
34
- @${GOLANGCI_LINT_BIN} --version
35
- @${GOLANGCI_LINT_BIN} run
36
-
37
28
compile : deps
38
29
@echo " === $( PROJECT) === [ compile ]: Building $( BINARY_NAME) ..."
39
30
@go build -o bin/$(BINARY_NAME ) ./cmd/discovery/
71
62
include $(CURDIR ) /build/ci.mk
72
63
include $(CURDIR ) /build/release.mk
73
64
74
- .PHONY : all fmt build clean tools tools-update deps deps-only validate compile compile-only test check-version tools-golangci-lint docker-build release release/deps release/test docker-release
65
+ .PHONY : all fmt build clean tools tools-update deps deps-only compile compile-only test check-version docker-build release release/deps release/test snyk snyk/monitor docker-release
You can’t perform that action at this time.
0 commit comments