Skip to content

Commit 8b53cab

Browse files
authored
Bump curl and Go version (#10503)
* Bump curl and Go version * Add NGINX BAse image scanning * Try again
1 parent 3732fc6 commit 8b53cab

File tree

26 files changed

+360
-240
lines changed

26 files changed

+360
-240
lines changed

.github/workflows/ci.yaml

Lines changed: 41 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ jobs:
7575
id: go
7676
uses: actions/setup-go@93397bea11091df50f3d7e59dc26a7711a8bcfbe # v4.1.0
7777
with:
78-
go-version: '1.21.1'
78+
go-version: '1.21.3'
7979
check-latest: true
8080

8181
- name: Run test
@@ -96,7 +96,7 @@ jobs:
9696
id: go
9797
uses: actions/setup-go@93397bea11091df50f3d7e59dc26a7711a8bcfbe # v4.1.0
9898
with:
99-
go-version: '1.21.1'
99+
go-version: '1.21.3'
100100
check-latest: true
101101

102102
- name: Set up QEMU
@@ -160,7 +160,7 @@ jobs:
160160
- name: Setup Go
161161
uses: actions/setup-go@93397bea11091df50f3d7e59dc26a7711a8bcfbe # v4.1.0
162162
with:
163-
go-version: '1.21.1'
163+
go-version: '1.21.3'
164164
check-latest: true
165165

166166
- name: cache
@@ -363,6 +363,42 @@ jobs:
363363
name: e2e-test-reports-chroot-${{ matrix.k8s }}
364364
path: 'test/junitreports/report*.xml'
365365

366+
test-nginx-image-build:
367+
permissions:
368+
contents: read # for dorny/paths-filter to fetch a list of changed files
369+
pull-requests: read # for dorny/paths-filter to read pull requests
370+
runs-on: ubuntu-latest
371+
env:
372+
PLATFORMS: linux/amd64,linux/arm64
373+
steps:
374+
- name: Checkout
375+
uses: actions/checkout@8ade135a41bc03ea155e62e844d188df1ea18608 # v4.1.0
376+
377+
- uses: dorny/paths-filter@4512585405083f25c027a35db413c2b3b9006d50 # v2.11.1
378+
id: filter-images
379+
with:
380+
token: ${{ secrets.GITHUB_TOKEN }}
381+
filters: |
382+
nginx-base:
383+
- 'images/nginx/**'
384+
- name: nginx-base-image
385+
if: ${{ steps.filter-images.outputs.nginx-base == 'true' }}
386+
run: |
387+
cd images/nginx/rootfs && docker build -t docker.io/nginx-test-workflow/nginx:${{ github.sha }} .
388+
- name: Run Trivy on NGINX Image
389+
if: ${{ steps.filter-images.outputs.nginx-base == 'true' }}
390+
uses: aquasecurity/trivy-action@master
391+
with:
392+
image-ref: 'docker.io/nginx-test-workflow/nginx:${{ github.sha }}'
393+
format: 'sarif'
394+
ignore-unfixed: true
395+
output: 'trivy-results.sarif'
396+
- name: Upload Trivy scan results to GitHub Security tab
397+
if: ${{ steps.filter-images.outputs.nginx-base == 'true' && always() }}
398+
uses: github/codeql-action/upload-sarif@v2
399+
with:
400+
sarif_file: 'trivy-results.sarif'
401+
366402

367403
test-image-build:
368404
permissions:
@@ -396,7 +432,6 @@ jobs:
396432
- 'images/kube-webhook-certgen/**'
397433
ext-auth-example-authsvc:
398434
- 'images/ext-auth-example-authsvc/**'
399-
400435
- name: custom-error-pages image build
401436
if: ${{ steps.filter-images.outputs.custom-error-pages == 'true' }}
402437
run: |
@@ -467,10 +502,11 @@ jobs:
467502
if: ${{ steps.filter-images.outputs.kube-webhook-certgen == 'true' }}
468503
uses: actions/setup-go@93397bea11091df50f3d7e59dc26a7711a8bcfbe # v4.1.0
469504
with:
470-
go-version: '1.21.1'
505+
go-version: '1.21.3'
471506
check-latest: true
472507

473508
- name: kube-webhook-certgen image build
474509
if: ${{ steps.filter-images.outputs.kube-webhook-certgen == 'true' }}
475510
run: |
476511
cd images/kube-webhook-certgen && make test test-e2e
512+

.github/workflows/golangci-lint.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ jobs:
2525
id: go
2626
uses: actions/setup-go@93397bea11091df50f3d7e59dc26a7711a8bcfbe # v4.1.0
2727
with:
28-
go-version: '1.21.1'
28+
go-version: '1.21.3'
2929
check-latest: true
3030

3131
- name: golangci-lint

.github/workflows/plugin.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ jobs:
2222
- name: Set up Go
2323
uses: actions/setup-go@93397bea11091df50f3d7e59dc26a7711a8bcfbe # v4.1.0
2424
with:
25-
go-version: '1.21.1'
25+
go-version: '1.21.3'
2626
check-latest: true
2727

2828
- name: Run GoReleaser

build/run-in-docker.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ if [[ "$DOCKER_IN_DOCKER_ENABLED" == "true" ]]; then
8787
echo "..reached DIND check TRUE block, inside run-in-docker.sh"
8888
echo "FLAGS=$FLAGS"
8989
#go env
90-
go install -mod=mod github.com/onsi/ginkgo/v2/ginkgo@v2.9.5
90+
go install -mod=mod github.com/onsi/ginkgo/v2/ginkgo@v2.13.0
9191
find / -type f -name ginkgo 2>/dev/null
9292
which ginkgo
9393
/bin/bash -c "${FLAGS}"

go.mod

Lines changed: 25 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,20 @@
11
module k8s.io/ingress-nginx
22

3-
go 1.21.1
3+
go 1.21.3
44

55
require (
6+
dario.cat/mergo v1.0.0
67
github.com/armon/go-proxyproto v0.0.0-20210323213023-7e956b284f0a
78
github.com/eapache/channels v1.1.0
89
github.com/fsnotify/fsnotify v1.6.0
9-
github.com/imdario/mergo v0.3.16
1010
github.com/json-iterator/go v1.1.12
1111
github.com/kylelemons/godebug v1.1.0
1212
github.com/mitchellh/go-ps v1.0.0
1313
github.com/mitchellh/hashstructure/v2 v2.0.2
1414
github.com/mitchellh/mapstructure v1.5.0
1515
github.com/moul/pb v0.0.0-20220425114252-bca18df4138c
1616
github.com/ncabatoff/process-exporter v0.7.10
17-
github.com/onsi/ginkgo/v2 v2.12.0
17+
github.com/onsi/ginkgo/v2 v2.13.0
1818
github.com/opencontainers/runc v1.1.9
1919
github.com/pmezard/go-difflib v1.0.0
2020
github.com/prometheus/client_golang v1.17.0
@@ -24,40 +24,40 @@ require (
2424
github.com/spf13/pflag v1.0.5
2525
github.com/stretchr/testify v1.8.4
2626
github.com/yudai/gojsondiff v1.0.0
27-
github.com/zakjan/cert-chain-resolver v0.0.0-20211122211144-c6b0b792af9a
27+
github.com/zakjan/cert-chain-resolver v0.0.0-20221221105603-fcedb00c5b30
2828
golang.org/x/crypto v0.14.0
2929
google.golang.org/grpc v1.58.3
3030
google.golang.org/grpc/examples v0.0.0-20221220003428-4f16fbe410f7
3131
gopkg.in/go-playground/pool.v3 v3.1.1
3232
gopkg.in/mcuadros/go-syslog.v2 v2.3.0
33-
k8s.io/api v0.27.4
34-
k8s.io/apiextensions-apiserver v0.26.4
35-
k8s.io/apimachinery v0.27.4
36-
k8s.io/apiserver v0.26.4
37-
k8s.io/cli-runtime v0.26.4
38-
k8s.io/client-go v0.27.4
39-
k8s.io/code-generator v0.26.4
40-
k8s.io/component-base v0.27.4
33+
k8s.io/api v0.27.6
34+
k8s.io/apiextensions-apiserver v0.27.6
35+
k8s.io/apimachinery v0.27.6
36+
k8s.io/apiserver v0.27.6
37+
k8s.io/cli-runtime v0.27.6
38+
k8s.io/client-go v0.27.6
39+
k8s.io/code-generator v0.27.6
40+
k8s.io/component-base v0.27.6
4141
k8s.io/klog/v2 v2.100.1
4242
pault.ag/go/sniff v0.0.0-20200207005214-cf7e4d167732
4343
sigs.k8s.io/controller-runtime v0.14.6
4444
sigs.k8s.io/mdtoc v1.1.0
4545
)
4646

4747
require (
48-
github.com/BurntSushi/toml v1.0.0 // indirect
48+
github.com/BurntSushi/toml v1.3.2 // indirect
4949
github.com/beorn7/perks v1.0.1 // indirect
5050
github.com/blang/semver/v4 v4.0.0 // indirect
5151
github.com/cespare/xxhash/v2 v2.2.0 // indirect
52-
github.com/coreos/go-systemd/v22 v22.3.2 // indirect
52+
github.com/coreos/go-systemd/v22 v22.4.0 // indirect
5353
github.com/cyphar/filepath-securejoin v0.2.4 // indirect
5454
github.com/davecgh/go-spew v1.1.1 // indirect
5555
github.com/eapache/queue v1.1.0 // indirect
5656
github.com/emicklei/go-restful/v3 v3.10.2 // indirect
5757
github.com/evanphx/json-patch v4.12.0+incompatible // indirect
5858
github.com/evanphx/json-patch/v5 v5.6.0 // indirect
59-
github.com/fullsailor/pkcs7 v0.0.0-20160414161337-2585af45975b // indirect
60-
github.com/go-errors/errors v1.0.1 // indirect
59+
github.com/fullsailor/pkcs7 v0.0.0-20190404230743-d7302db945fa // indirect
60+
github.com/go-errors/errors v1.4.2 // indirect
6161
github.com/go-logr/logr v1.2.4 // indirect
6262
github.com/go-openapi/jsonpointer v0.19.6 // indirect
6363
github.com/go-openapi/jsonreference v0.20.1 // indirect
@@ -72,10 +72,11 @@ require (
7272
github.com/google/gnostic v0.5.7-v3refs // indirect
7373
github.com/google/go-cmp v0.5.9 // indirect
7474
github.com/google/gofuzz v1.1.0 // indirect
75-
github.com/google/pprof v0.0.0-20210720184732-4bb14d4b1be1 // indirect
75+
github.com/google/pprof v0.0.0-20230926050212-f7f687d19a98 // indirect
7676
github.com/google/shlex v0.0.0-20191202100458-e7afc7fbc510 // indirect
7777
github.com/google/uuid v1.3.0 // indirect
7878
github.com/gregjones/httpcache v0.0.0-20180305231024-9cad4c3443a7 // indirect
79+
github.com/imdario/mergo v0.3.6 // indirect
7980
github.com/inconshreveable/mousetrap v1.1.0 // indirect
8081
github.com/josharian/intern v1.0.0 // indirect
8182
github.com/liggitt/tabwriter v0.0.0-20181228230101-89fcab3d43de // indirect
@@ -95,19 +96,19 @@ require (
9596
github.com/pkg/errors v0.9.1 // indirect
9697
github.com/prometheus/procfs v0.11.1 // indirect
9798
github.com/sergi/go-diff v1.1.0 // indirect
98-
github.com/sirupsen/logrus v1.8.1 // indirect
99+
github.com/sirupsen/logrus v1.9.0 // indirect
99100
github.com/xlab/treeprint v1.1.0 // indirect
100101
github.com/yudai/golcs v0.0.0-20170316035057-ecda9a501e82 // indirect
101102
github.com/yudai/pp v2.0.1+incompatible // indirect
102103
go.starlark.net v0.0.0-20200306205701-8dd3e2ee1dd5 // indirect
103-
golang.org/x/mod v0.12.0 // indirect
104-
golang.org/x/net v0.14.0 // indirect
105-
golang.org/x/oauth2 v0.10.0 // indirect
104+
golang.org/x/mod v0.13.0 // indirect
105+
golang.org/x/net v0.16.0 // indirect
106+
golang.org/x/oauth2 v0.12.0 // indirect
106107
golang.org/x/sys v0.13.0 // indirect
107108
golang.org/x/term v0.13.0 // indirect
108109
golang.org/x/text v0.13.0 // indirect
109110
golang.org/x/time v0.3.0 // indirect
110-
golang.org/x/tools v0.12.0 // indirect
111+
golang.org/x/tools v0.14.0 // indirect
111112
google.golang.org/appengine v1.6.7 // indirect
112113
google.golang.org/genproto/googleapis/rpc v0.0.0-20230711160842-782d3b101e98 // indirect
113114
google.golang.org/protobuf v1.31.0 // indirect
@@ -119,8 +120,8 @@ require (
119120
k8s.io/kube-openapi v0.0.0-20230501164219-8b0f38b5fd1f // indirect
120121
k8s.io/utils v0.0.0-20230209194617-a36077c30491 // indirect
121122
sigs.k8s.io/json v0.0.0-20221116044647-bc3834ca7abd // indirect
122-
sigs.k8s.io/kustomize/api v0.12.1 // indirect
123-
sigs.k8s.io/kustomize/kyaml v0.13.9 // indirect
123+
sigs.k8s.io/kustomize/api v0.13.2 // indirect
124+
sigs.k8s.io/kustomize/kyaml v0.14.1 // indirect
124125
sigs.k8s.io/structured-merge-diff/v4 v4.2.3 // indirect
125126
sigs.k8s.io/yaml v1.3.0 // indirect
126127
)

0 commit comments

Comments
 (0)