Bump curl and Go version (#10503)
* Bump curl and Go version * Add NGINX BAse image scanning * Try again
This commit is contained in:
parent
3732fc6ab6
commit
8b53cabe03
26 changed files with 360 additions and 240 deletions
46
.github/workflows/ci.yaml
vendored
46
.github/workflows/ci.yaml
vendored
|
|
@ -75,7 +75,7 @@ jobs:
|
|||
id: go
|
||||
uses: actions/setup-go@93397bea11091df50f3d7e59dc26a7711a8bcfbe # v4.1.0
|
||||
with:
|
||||
go-version: '1.21.1'
|
||||
go-version: '1.21.3'
|
||||
check-latest: true
|
||||
|
||||
- name: Run test
|
||||
|
|
@ -96,7 +96,7 @@ jobs:
|
|||
id: go
|
||||
uses: actions/setup-go@93397bea11091df50f3d7e59dc26a7711a8bcfbe # v4.1.0
|
||||
with:
|
||||
go-version: '1.21.1'
|
||||
go-version: '1.21.3'
|
||||
check-latest: true
|
||||
|
||||
- name: Set up QEMU
|
||||
|
|
@ -160,7 +160,7 @@ jobs:
|
|||
- name: Setup Go
|
||||
uses: actions/setup-go@93397bea11091df50f3d7e59dc26a7711a8bcfbe # v4.1.0
|
||||
with:
|
||||
go-version: '1.21.1'
|
||||
go-version: '1.21.3'
|
||||
check-latest: true
|
||||
|
||||
- name: cache
|
||||
|
|
@ -363,6 +363,42 @@ jobs:
|
|||
name: e2e-test-reports-chroot-${{ matrix.k8s }}
|
||||
path: 'test/junitreports/report*.xml'
|
||||
|
||||
test-nginx-image-build:
|
||||
permissions:
|
||||
contents: read # for dorny/paths-filter to fetch a list of changed files
|
||||
pull-requests: read # for dorny/paths-filter to read pull requests
|
||||
runs-on: ubuntu-latest
|
||||
env:
|
||||
PLATFORMS: linux/amd64,linux/arm64
|
||||
steps:
|
||||
- name: Checkout
|
||||
uses: actions/checkout@8ade135a41bc03ea155e62e844d188df1ea18608 # v4.1.0
|
||||
|
||||
- uses: dorny/paths-filter@4512585405083f25c027a35db413c2b3b9006d50 # v2.11.1
|
||||
id: filter-images
|
||||
with:
|
||||
token: ${{ secrets.GITHUB_TOKEN }}
|
||||
filters: |
|
||||
nginx-base:
|
||||
- 'images/nginx/**'
|
||||
- name: nginx-base-image
|
||||
if: ${{ steps.filter-images.outputs.nginx-base == 'true' }}
|
||||
run: |
|
||||
cd images/nginx/rootfs && docker build -t docker.io/nginx-test-workflow/nginx:${{ github.sha }} .
|
||||
- name: Run Trivy on NGINX Image
|
||||
if: ${{ steps.filter-images.outputs.nginx-base == 'true' }}
|
||||
uses: aquasecurity/trivy-action@master
|
||||
with:
|
||||
image-ref: 'docker.io/nginx-test-workflow/nginx:${{ github.sha }}'
|
||||
format: 'sarif'
|
||||
ignore-unfixed: true
|
||||
output: 'trivy-results.sarif'
|
||||
- name: Upload Trivy scan results to GitHub Security tab
|
||||
if: ${{ steps.filter-images.outputs.nginx-base == 'true' && always() }}
|
||||
uses: github/codeql-action/upload-sarif@v2
|
||||
with:
|
||||
sarif_file: 'trivy-results.sarif'
|
||||
|
||||
|
||||
test-image-build:
|
||||
permissions:
|
||||
|
|
@ -396,7 +432,6 @@ jobs:
|
|||
- 'images/kube-webhook-certgen/**'
|
||||
ext-auth-example-authsvc:
|
||||
- 'images/ext-auth-example-authsvc/**'
|
||||
|
||||
- name: custom-error-pages image build
|
||||
if: ${{ steps.filter-images.outputs.custom-error-pages == 'true' }}
|
||||
run: |
|
||||
|
|
@ -467,10 +502,11 @@ jobs:
|
|||
if: ${{ steps.filter-images.outputs.kube-webhook-certgen == 'true' }}
|
||||
uses: actions/setup-go@93397bea11091df50f3d7e59dc26a7711a8bcfbe # v4.1.0
|
||||
with:
|
||||
go-version: '1.21.1'
|
||||
go-version: '1.21.3'
|
||||
check-latest: true
|
||||
|
||||
- name: kube-webhook-certgen image build
|
||||
if: ${{ steps.filter-images.outputs.kube-webhook-certgen == 'true' }}
|
||||
run: |
|
||||
cd images/kube-webhook-certgen && make test test-e2e
|
||||
|
||||
|
|
|
|||
2
.github/workflows/golangci-lint.yml
vendored
2
.github/workflows/golangci-lint.yml
vendored
|
|
@ -25,7 +25,7 @@ jobs:
|
|||
id: go
|
||||
uses: actions/setup-go@93397bea11091df50f3d7e59dc26a7711a8bcfbe # v4.1.0
|
||||
with:
|
||||
go-version: '1.21.1'
|
||||
go-version: '1.21.3'
|
||||
check-latest: true
|
||||
|
||||
- name: golangci-lint
|
||||
|
|
|
|||
2
.github/workflows/plugin.yaml
vendored
2
.github/workflows/plugin.yaml
vendored
|
|
@ -22,7 +22,7 @@ jobs:
|
|||
- name: Set up Go
|
||||
uses: actions/setup-go@93397bea11091df50f3d7e59dc26a7711a8bcfbe # v4.1.0
|
||||
with:
|
||||
go-version: '1.21.1'
|
||||
go-version: '1.21.3'
|
||||
check-latest: true
|
||||
|
||||
- name: Run GoReleaser
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue