This repository was archived by the owner on May 24, 2023. It is now read-only.
File tree 5 files changed +14
-9
lines changed
5 files changed +14
-9
lines changed Original file line number Diff line number Diff line change @@ -189,8 +189,7 @@ jobs:
189
189
continue-on-error : true
190
190
with :
191
191
image-ref : nginx/nginx-ingress-operator:${{ steps.meta.outputs.version }}
192
- format : ' template'
193
- template : ' @/contrib/sarif.tpl'
192
+ format : ' sarif'
194
193
output : ' trivy-results.sarif'
195
194
ignore-unfixed : ' true'
196
195
- name : Upload Trivy scan results to GitHub Security tab
Original file line number Diff line number Diff line change @@ -21,9 +21,6 @@ concurrency:
21
21
group : ${{ github.ref_name }}-lint
22
22
cancel-in-progress : true
23
23
24
- env :
25
- GOLANGCI_TIMEOUT : 10m0s
26
-
27
24
jobs :
28
25
29
26
lint :
32
29
steps :
33
30
- name : Checkout Repository
34
31
uses : actions/checkout@v2
35
- - name : Lint Code
36
- uses : golangci/golangci-lint-action@v2
32
+ - name : Output Variables
33
+ id : vars
34
+ run : echo "::set-output name=go_version::$(grep "go 1." go.mod | cut -d " " -f 2)"
35
+ - name : Setup Golang Environment
36
+ uses : actions/setup-go@v2
37
37
with :
38
- args : --timeout ${{ env.GOLANGCI_TIMEOUT }}
38
+ go-version : ${{ steps.vars.outputs.go_version }}
39
+ - name : Lint Code
40
+ uses : golangci/golangci-lint-action@v3
Original file line number Diff line number Diff line change @@ -60,3 +60,5 @@ linters:
60
60
issues :
61
61
max-issues-per-linter : 0
62
62
max-same-issues : 0
63
+ run :
64
+ timeout : 5m
Original file line number Diff line number Diff line change @@ -19,6 +19,8 @@ COPY controllers/ controllers/
19
19
RUN CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build -ldflags "-s -w -X main.version=${VERSION}" -a -o manager main.go
20
20
21
21
FROM registry.access.redhat.com/ubi8/ubi-minimal:latest as base
22
+ # temporary fix for CVE-2022-24407
23
+ RUN microdnf --nodocs upgrade -y cyrus-sasl-lib
22
24
ARG VERSION
23
25
WORKDIR /
24
26
COPY config/crd/kic ./config/crd/kic
Original file line number Diff line number Diff line change @@ -129,7 +129,7 @@ run: manifests generate fmt vet ## Run a controller from your host.
129
129
130
130
.PHONY : docker-build
131
131
docker-build : test # # Build docker image with the manager.
132
- docker build -t ${IMG} -f ${DOCKERFILE} . --build-arg VERSION=${VERSION} --target local
132
+ docker build -t ${IMG} . --build-arg VERSION=${VERSION} --target local
133
133
134
134
.PHONY : docker-push
135
135
docker-push : # # Push docker image with the manager.
You can’t perform that action at this time.
0 commit comments