Skip to content

Commit 0568f1a

Browse files
authored
v13 Release tests first batch (#1416)
* test-suite: test external (remote) cluster scanning via kubeconfig secret * migrate from cnquery/v12 to mql/v13 * refactor: replace golang-version environment variable with go-version-file in workflows
1 parent ce0defd commit 0568f1a

37 files changed

+611
-282
lines changed

.github/env

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
golang-version=1.25.5
21
operator-sdk-version=v1.33.0
32
MONDOO_ORG_MRN=//captain.api.mondoo.app/organizations/mondoo-operator-testing
43
MONDOO_GQL_ENDPOINT=https://api.mondoo.com/query

.github/workflows/cloud-tests.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ jobs:
7070

7171
- uses: actions/setup-go@4b73464bb391d4059bd26b0524d20df3927bd417 # v6.3.0
7272
with:
73-
go-version: "${{ env.golang-version }}"
73+
go-version-file: "go.mod"
7474
cache: true
7575

7676
- name: Get operator version
@@ -152,7 +152,7 @@ jobs:
152152

153153
- uses: actions/setup-go@4b73464bb391d4059bd26b0524d20df3927bd417 # v6.3.0
154154
with:
155-
go-version: "${{ env.golang-version }}"
155+
go-version-file: "go.mod"
156156
cache: true
157157

158158
- name: Get operator version
@@ -232,7 +232,7 @@ jobs:
232232

233233
- uses: actions/setup-go@4b73464bb391d4059bd26b0524d20df3927bd417 # v6.3.0
234234
with:
235-
go-version: "${{ env.golang-version }}"
235+
go-version-file: "go.mod"
236236
cache: true
237237

238238
- name: Get operator version

.github/workflows/helm-tests.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ jobs:
2929
run: cat ".github/env" >> $GITHUB_ENV
3030
- uses: actions/setup-go@4b73464bb391d4059bd26b0524d20df3927bd417 # v6.3.0
3131
with:
32-
go-version: "${{ env.golang-version }}"
32+
go-version-file: "go.mod"
3333
- name: Build operator container image
3434
run: make docker-save
3535
- uses: actions/upload-artifact@bbbca2ddaa5d8feaa63e36b76fdaad77386f024f # v7.0.0
@@ -68,7 +68,7 @@ jobs:
6868
- name: Install Go
6969
uses: actions/setup-go@4b73464bb391d4059bd26b0524d20df3927bd417 # v6.3.0
7070
with:
71-
go-version: "${{ env.golang-version }}"
71+
go-version-file: "go.mod"
7272

7373
- name: Start minikube
7474
uses: medyagh/setup-minikube@aba8d5ff1666d19b9549133e3b92e70d4fc52cb7 # master

.github/workflows/integration-tests.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ jobs:
3737
run: cat ".github/env" >> $GITHUB_ENV
3838
- uses: actions/setup-go@4b73464bb391d4059bd26b0524d20df3927bd417 # v6.3.0
3939
with:
40-
go-version: "${{ env.golang-version }}"
40+
go-version-file: "go.mod"
4141
- name: Build operator container image
4242
run: make docker-save
4343
- name: Generate manifests
@@ -85,7 +85,7 @@ jobs:
8585

8686
- uses: actions/setup-go@4b73464bb391d4059bd26b0524d20df3927bd417 # v6.3.0
8787
with:
88-
go-version: "${{ env.golang-version }}"
88+
go-version-file: "go.mod"
8989

9090
- uses: actions/download-artifact@37930b1c2abaa49bbe596cd826c3c89aef350131 # v7.0.0
9191
name: Download operator build artifact
@@ -147,7 +147,7 @@ jobs:
147147

148148
- uses: actions/setup-go@4b73464bb391d4059bd26b0524d20df3927bd417 # v6.3.0
149149
with:
150-
go-version: "${{ env.golang-version }}"
150+
go-version-file: "go.mod"
151151

152152
- uses: actions/download-artifact@37930b1c2abaa49bbe596cd826c3c89aef350131 # v7.0.0
153153
name: Download operator build artifact

.github/workflows/leftover-spaces-cleaner.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ jobs:
1818
- name: Set up Go
1919
uses: actions/setup-go@4b73464bb391d4059bd26b0524d20df3927bd417 # v6.3.0
2020
with:
21-
go-version: '1.24'
21+
go-version-file: "go.mod"
2222

2323
- name: Run leftover spaces cleanup
2424
run: go run cmd/test-space-cleaner/main.go

.github/workflows/lint.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ jobs:
2222
- name: Install Go
2323
uses: actions/setup-go@4b73464bb391d4059bd26b0524d20df3927bd417 # v6.3.0
2424
with:
25-
go-version: ">=${{ env.golang-version }}"
25+
go-version-file: "go.mod"
2626
- name: golangci-lint
2727
uses: golangci/golangci-lint-action@1e7e51e771db61008b38414a730f564565cf7c20 # v9.2.0
2828
with:

.github/workflows/publish.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ jobs:
5555

5656
- uses: actions/setup-go@4b73464bb391d4059bd26b0524d20df3927bd417 # v6.3.0
5757
with:
58-
go-version: "${{ env.golang-version }}"
58+
go-version-file: "go.mod"
5959
cache: true
6060

6161
# Install the cosign tool except on PR

.github/workflows/release-manifests.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ jobs:
2424
- name: Install Go
2525
uses: actions/setup-go@4b73464bb391d4059bd26b0524d20df3927bd417 # v6.3.0
2626
with:
27-
go-version: "${{ env.golang-version }}"
27+
go-version-file: "go.mod"
2828
- name: Generate manifests
2929
run: make generate-manifests IMG='${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:${{ env.RELEASE }}'
3030
- name: Release

.github/workflows/release.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ jobs:
2929
- name: Setup Go
3030
uses: actions/setup-go@4b73464bb391d4059bd26b0524d20df3927bd417 # v6.3.0
3131
with:
32-
go-version: "${{ env.golang-version }}"
32+
go-version-file: "go.mod"
3333

3434
- name: Install yq
3535
run: |

.github/workflows/security-tests.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ jobs:
3030
- name: Install Go
3131
uses: actions/setup-go@4b73464bb391d4059bd26b0524d20df3927bd417 # v6.3.0
3232
with:
33-
go-version: "${{ env.golang-version }}"
33+
go-version-file: "go.mod"
3434
cache: false
3535
- name: Scan AWS terraform with Mondoo
3636
uses: mondoohq/actions/terraform-hcl@main

0 commit comments

Comments
 (0)