Skip to content
This repository was archived by the owner on May 24, 2023. It is now read-only.

Commit 2d91b24

Browse files
authored
Merge branch 'master' into chore/update-sdk-1.17.0
2 parents 478414d + ebce5b7 commit 2d91b24

File tree

5 files changed

+14
-9
lines changed

5 files changed

+14
-9
lines changed

.github/workflows/ci.yml

+1-2
Original file line numberDiff line numberDiff line change
@@ -189,8 +189,7 @@ jobs:
189189
continue-on-error: true
190190
with:
191191
image-ref: nginx/nginx-ingress-operator:${{ steps.meta.outputs.version }}
192-
format: 'template'
193-
template: '@/contrib/sarif.tpl'
192+
format: 'sarif'
194193
output: 'trivy-results.sarif'
195194
ignore-unfixed: 'true'
196195
- name: Upload Trivy scan results to GitHub Security tab

.github/workflows/lint.yml

+8-6
Original file line numberDiff line numberDiff line change
@@ -21,9 +21,6 @@ concurrency:
2121
group: ${{ github.ref_name }}-lint
2222
cancel-in-progress: true
2323

24-
env:
25-
GOLANGCI_TIMEOUT: 10m0s
26-
2724
jobs:
2825

2926
lint:
@@ -32,7 +29,12 @@ jobs:
3229
steps:
3330
- name: Checkout Repository
3431
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
3737
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

.golangci.yml

+2
Original file line numberDiff line numberDiff line change
@@ -60,3 +60,5 @@ linters:
6060
issues:
6161
max-issues-per-linter: 0
6262
max-same-issues: 0
63+
run:
64+
timeout: 5m

Dockerfile

+2
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,8 @@ COPY controllers/ controllers/
1919
RUN CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build -ldflags "-s -w -X main.version=${VERSION}" -a -o manager main.go
2020

2121
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
2224
ARG VERSION
2325
WORKDIR /
2426
COPY config/crd/kic ./config/crd/kic

Makefile

+1-1
Original file line numberDiff line numberDiff line change
@@ -129,7 +129,7 @@ run: manifests generate fmt vet ## Run a controller from your host.
129129

130130
.PHONY: docker-build
131131
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
133133

134134
.PHONY: docker-push
135135
docker-push: ## Push docker image with the manager.

0 commit comments

Comments
 (0)