Skip to content

Commit

Permalink
Build against K8s v0.25.0 (#555)
Browse files Browse the repository at this point in the history
- Update k8s dependencies to v0.25.0 - removes CVE-2022-1996
- Update golang.org/x/net to 0.0.0-20220906165146-f3363e06e74c - removes CVE-2022-27664
- Update golang.org/x/text to 0.3.8 - removes CVE-2022-32149
- Add nightly Trivy scanning of Operator image
  • Loading branch information
thegridman authored Oct 16, 2022
1 parent ef405fc commit db6738f
Show file tree
Hide file tree
Showing 45 changed files with 638 additions and 733 deletions.
16 changes: 8 additions & 8 deletions .github/workflows/build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ jobs:
# Checkout the source, we need a depth of zero to fetch all of the history otherwise
# the copyright check cannot work out the date of the files from Git.
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3
with:
fetch-depth: 0

Expand Down Expand Up @@ -64,26 +64,26 @@ jobs:
distribution: 'zulu'
java-version: '11'

- name: Set up Go
uses: actions/setup-go@v3
with:
go-version: 1.19.x

- name: Cache Go Modules
uses: actions/cache@v1
uses: actions/cache@v3
with:
path: ~/go/pkg/mod
key: ${{ runner.os }}-go-mods-${{ hashFiles('**/go.sum') }}
restore-keys: |
${{ runner.os }}-go-mods-
- name: Cache Maven packages
uses: actions/cache@v1
uses: actions/cache@v3
with:
path: ~/.m2
key: ${{ runner.os }}-m2-${{ hashFiles('**/pom.xml') }}
restore-keys: ${{ runner.os }}-m2

- name: Set up Go
uses: actions/setup-go@v2
with:
go-version: 1.17.x

- name: Edit DNS Resolve
shell: bash
run: |
Expand Down
16 changes: 8 additions & 8 deletions .github/workflows/coherence-matrix.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ jobs:
baseImage: "gcr.io/distroless/java11-debian11"

steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3
with:
fetch-depth: 0

Expand Down Expand Up @@ -126,26 +126,26 @@ jobs:
distribution: 'zulu'
java-version: '17'

- name: Set up Go
uses: actions/setup-go@v3
with:
go-version: 1.19.x

- name: Cache Go Modules
uses: actions/cache@v1
uses: actions/cache@v3
with:
path: ~/go/pkg/mod
key: ${{ runner.os }}-go-mods-${{ hashFiles('**/go.sum') }}
restore-keys: |
${{ runner.os }}-go-mods-
- name: Cache Maven packages
uses: actions/cache@v1
uses: actions/cache@v3
with:
path: ~/.m2
key: ${{ runner.os }}-m2-${{ hashFiles('**/pom.xml') }}
restore-keys: ${{ runner.os }}-m2

- name: Set up Go
uses: actions/setup-go@v2
with:
go-version: 1.17.x

- name: Edit DNS Resolve
shell: bash
run: |
Expand Down
16 changes: 8 additions & 8 deletions .github/workflows/compatibility-tests.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ jobs:
k8s: kindest/node:v1.21.1@sha256:69860bda5563ac81e3c0057d654b5253219618a22ec3a346306239bba8cfa1a6

steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3
with:
fetch-depth: 0

Expand Down Expand Up @@ -133,26 +133,26 @@ jobs:
distribution: 'zulu'
java-version: '11'

- name: Set up Go
uses: actions/setup-go@v3
with:
go-version: 1.19.x

- name: Cache Go Modules
uses: actions/cache@v1
uses: actions/cache@v3
with:
path: ~/go/pkg/mod
key: ${{ runner.os }}-go-mods-${{ hashFiles('**/go.sum') }}
restore-keys: |
${{ runner.os }}-go-mods-
- name: Cache Maven packages
uses: actions/cache@v1
uses: actions/cache@v3
with:
path: ~/.m2
key: ${{ runner.os }}-m2-${{ hashFiles('**/pom.xml') }}
restore-keys: ${{ runner.os }}-m2

- name: Set up Go
uses: actions/setup-go@v2
with:
go-version: 1.17.x

- name: Edit DNS Resolve
shell: bash
run: |
Expand Down
16 changes: 8 additions & 8 deletions .github/workflows/elastic-tests.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ jobs:
# Checkout the source, we need a depth of zero to fetch all the history otherwise
# the copyright check cannot work out the date of the files from Git.
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3
with:
fetch-depth: 0

Expand Down Expand Up @@ -64,26 +64,26 @@ jobs:
distribution: 'zulu'
java-version: '11'

- name: Set up Go
uses: actions/setup-go@v3
with:
go-version: 1.19.x

- name: Cache Go Modules
uses: actions/cache@v1
uses: actions/cache@v3
with:
path: ~/go/pkg/mod
key: ${{ runner.os }}-go-mods-${{ hashFiles('**/go.sum') }}
restore-keys: |
${{ runner.os }}-go-mods-
- name: Cache Maven packages
uses: actions/cache@v1
uses: actions/cache@v3
with:
path: ~/.m2
key: ${{ runner.os }}-m2-${{ hashFiles('**/pom.xml') }}
restore-keys: ${{ runner.os }}-m2

- name: Set up Go
uses: actions/setup-go@v2
with:
go-version: 1.17.x

- name: Edit DNS Resolve
shell: bash
run: |
Expand Down
16 changes: 8 additions & 8 deletions .github/workflows/istio-tests.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ jobs:
- 1.10.6

steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3
with:
fetch-depth: 0

Expand Down Expand Up @@ -71,26 +71,26 @@ jobs:
distribution: 'zulu'
java-version: '11'

- name: Set up Go
uses: actions/setup-go@v3
with:
go-version: 1.19.x

- name: Cache Go Modules
uses: actions/cache@v1
uses: actions/cache@v3
with:
path: ~/go/pkg/mod
key: ${{ runner.os }}-go-mods-${{ hashFiles('**/go.sum') }}
restore-keys: |
${{ runner.os }}-go-mods-
- name: Cache Maven packages
uses: actions/cache@v1
uses: actions/cache@v3
with:
path: ~/.m2
key: ${{ runner.os }}-m2-${{ hashFiles('**/pom.xml') }}
restore-keys: ${{ runner.os }}-m2

- name: Set up Go
uses: actions/setup-go@v2
with:
go-version: 1.17.x

- name: Edit DNS Resolve
shell: bash
run: |
Expand Down
16 changes: 8 additions & 8 deletions .github/workflows/k8s-matrix.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ jobs:
- kindest/node:v1.18.20@sha256:61c9e1698c1cb19c3b1d8151a9135b379657aee23c59bde4a8d87923fcb43a91

steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3
with:
fetch-depth: 0

Expand Down Expand Up @@ -80,26 +80,26 @@ jobs:
distribution: 'zulu'
java-version: '11'

- name: Set up Go
uses: actions/setup-go@v3
with:
go-version: 1.19.x

- name: Cache Go Modules
uses: actions/cache@v1
uses: actions/cache@v3
with:
path: ~/go/pkg/mod
key: ${{ runner.os }}-go-mods-${{ hashFiles('**/go.sum') }}
restore-keys: |
${{ runner.os }}-go-mods-
- name: Cache Maven packages
uses: actions/cache@v1
uses: actions/cache@v3
with:
path: ~/.m2
key: ${{ runner.os }}-m2-${{ hashFiles('**/pom.xml') }}
restore-keys: ${{ runner.os }}-m2

- name: Set up Go
uses: actions/setup-go@v2
with:
go-version: 1.17.x

- name: Edit DNS Resolve
shell: bash
run: |
Expand Down
16 changes: 8 additions & 8 deletions .github/workflows/prometheus-tests.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ jobs:
# Checkout the source, we need a depth of zero to fetch all the history otherwise
# the copyright check cannot work out the date of the files from Git.
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3
with:
fetch-depth: 0

Expand Down Expand Up @@ -64,26 +64,26 @@ jobs:
distribution: 'zulu'
java-version: '11'

- name: Set up Go
uses: actions/setup-go@v3
with:
go-version: 1.19.x

- name: Cache Go Modules
uses: actions/cache@v1
uses: actions/cache@v3
with:
path: ~/go/pkg/mod
key: ${{ runner.os }}-go-mods-${{ hashFiles('**/go.sum') }}
restore-keys: |
${{ runner.os }}-go-mods-
- name: Cache Maven packages
uses: actions/cache@v1
uses: actions/cache@v3
with:
path: ~/.m2
key: ${{ runner.os }}-m2-${{ hashFiles('**/pom.xml') }}
restore-keys: ${{ runner.os }}-m2

- name: Set up Go
uses: actions/setup-go@v2
with:
go-version: 1.17.x

- name: Edit DNS Resolve
shell: bash
run: |
Expand Down
17 changes: 9 additions & 8 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ jobs:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3
with:
fetch-depth: 0

Expand All @@ -26,26 +26,26 @@ jobs:
distribution: 'zulu'
java-version: '11'

- name: Set up Go
uses: actions/setup-go@v3
with:
go-version: 1.19.x

- name: Cache Go Modules
uses: actions/cache@v1
uses: actions/cache@v3
with:
path: ~/go/pkg/mod
key: ${{ runner.os }}-go-mods-${{ hashFiles('**/go.sum') }}
restore-keys: |
${{ runner.os }}-go-mods-
- name: Cache Maven packages
uses: actions/cache@v1
uses: actions/cache@v3
with:
path: ~/.m2
key: ${{ runner.os }}-m2-${{ hashFiles('**/pom.xml') }}
restore-keys: ${{ runner.os }}-m2

- name: Set up Go
uses: actions/setup-go@v2
with:
go-version: 1.17.x

- name: Start KinD Cluster
shell: bash
run: |
Expand All @@ -66,6 +66,7 @@ jobs:
export NO_DAEMON=false
make clean
make all
make trivy-scan
if echo $GITHUB_EVENT_NAME -eq "release"; then PRE_RELEASE=false; else PRE_RELEASE=true; fi
make release RELEASE_DRY_RUN=false PRE_RELEASE=$PRE_RELEASE
Expand Down
16 changes: 8 additions & 8 deletions .github/workflows/tanzu-tests.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ jobs:
- latest

steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3
with:
fetch-depth: 0

Expand Down Expand Up @@ -68,26 +68,26 @@ jobs:
distribution: 'zulu'
java-version: '11'

- name: Set up Go
uses: actions/setup-go@v3
with:
go-version: 1.19.x

- name: Cache Go Modules
uses: actions/cache@v1
uses: actions/cache@v3
with:
path: ~/go/pkg/mod
key: ${{ runner.os }}-go-mods-${{ hashFiles('**/go.sum') }}
restore-keys: |
${{ runner.os }}-go-mods-
- name: Cache Maven packages
uses: actions/cache@v1
uses: actions/cache@v3
with:
path: ~/.m2
key: ${{ runner.os }}-m2-${{ hashFiles('**/pom.xml') }}
restore-keys: ${{ runner.os }}-m2

- name: Set up Go
uses: actions/setup-go@v2
with:
go-version: 1.17.x

- name: Edit DNS Resolve
shell: bash
run: |
Expand Down
Loading

0 comments on commit db6738f

Please sign in to comment.