Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
20 commits
Select commit Hold shift + click to select a range
d77a0cf
Bump dawidd6/action-download-artifact from 7 to 9 (#1234)
dependabot[bot] May 14, 2025
ad1080d
🧹 fix integration tests (#1246)
imilchev Jun 5, 2025
2f38842
Bump github.com/golang-jwt/jwt/v4 from 4.5.0 to 4.5.2 (#1238)
dependabot[bot] Jun 5, 2025
da42a9d
Bump github.com/go-git/go-git/v5 from 5.12.0 to 5.13.0 (#1239)
dependabot[bot] Jun 5, 2025
a4a6a77
Bump check-spelling/check-spelling from 0.0.24 to 0.0.25 (#1241)
dependabot[bot] Jun 5, 2025
7296f1e
Bump golang.org/x/crypto from 0.25.0 to 0.35.0 (#1237)
dependabot[bot] Jun 5, 2025
ba9f99f
Bump dawidd6/action-download-artifact from 9 to 10 (#1245)
dependabot[bot] Jun 5, 2025
6b440f2
🧹 drop cloud tests from readme badges (#1249)
imilchev Jun 5, 2025
0db8b66
Bump dawidd6/action-download-artifact from 10 to 11 (#1251)
dependabot[bot] Jul 4, 2025
7b2eca4
add tolerations for all nodes to scanning daemonset (#1260)
pratik-mondoo Sep 15, 2025
bb1b376
✨ Pin GitHub actions to hashes (#1262)
czunker Sep 26, 2025
cec5aa3
Bump google-github-actions/setup-gcloud from 2.2.1 to 3.0.1 (#1263)
dependabot[bot] Sep 29, 2025
d82f6da
Bump sigstore/cosign-installer from 3.9.1 to 3.10.0 (#1268)
dependabot[bot] Oct 8, 2025
982e6b8
Bump google-github-actions/auth from 2.1.13 to 3.0.0 (#1267)
dependabot[bot] Oct 8, 2025
053e1b0
Bump actions/checkout from 4.3.0 to 5.0.0 (#1264)
dependabot[bot] Oct 8, 2025
cf58c2b
Bump docker/login-action from 3.5.0 to 3.6.0 (#1271)
dependabot[bot] Oct 20, 2025
5c6bb08
Bump softprops/action-gh-release from 2.3.3 to 2.4.1 (#1272)
dependabot[bot] Oct 20, 2025
be5a954
Bump actions/download-artifact from 4.3.0 to 5.0.0 (#1265)
dependabot[bot] Oct 20, 2025
df3ae53
🧹 Bump k8s versions for tests (#1269)
czunker Oct 20, 2025
638d2e1
Bump actions/setup-go from 4.2.1 to 6.0.0 (#1270)
dependabot[bot] Oct 21, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions .github/actions/link-check/config.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"aliveStatusCodes": [429, 200, 406]
}
2 changes: 1 addition & 1 deletion .github/env
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
golang-version=1.23.1
golang-version=1.24.3
operator-sdk-version=v1.33.0
MONDOO_ORG_MRN=//captain.api.mondoo.app/organizations/mondoo-operator-testing
MONDOO_GQL_ENDPOINT=https://api.mondoo.com/query
2 changes: 1 addition & 1 deletion .github/workflows/cla.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ jobs:
steps:
- name: "CLA Assistant"
if: (github.event.comment.body == 'recheck' || github.event.comment.body == 'I have read the Mondoo CLA Document and I hereby sign the CLA') || github.event_name == 'pull_request_target'
uses: contributor-assistant/github-action@v2.6.1
uses: contributor-assistant/github-action@ca4a40a7d1004f18d9960b404b97e5f30a505a08 # v2.6.1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
PERSONAL_ACCESS_TOKEN: ${{ secrets.CLA_ACCESS_TOKEN }}
Expand Down
36 changes: 18 additions & 18 deletions .github/workflows/cloud-tests.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -55,15 +55,15 @@ jobs:
k8s-version: ["1.27", "1.28", "1.29"]

steps:
- uses: actions/checkout@v4
- uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
with:
fetch-depth: 0 # fetch is needed for "git tag --list" in the Makefile

- name: Import environment variables from file
run: cat ".github/env" >> $GITHUB_ENV

- name: Setup Terraform
uses: hashicorp/setup-terraform@v3
uses: hashicorp/setup-terraform@b9cd54a3c349d3f38e8881555d616ced269862dd # v3.1.2

- name: Terraform init
run: terraform init
Expand All @@ -81,7 +81,7 @@ jobs:
TF_VAR_k8s_version: ${{ matrix.k8s-version }}
working-directory: .github/terraform/aks

- uses: actions/setup-go@v5
- uses: actions/setup-go@44694675825211faa026b3c33043df3e48a5fa00 # v6.0.0
with:
go-version: "${{ env.golang-version }}"
cache: true
Expand All @@ -106,7 +106,7 @@ jobs:
if: success() || failure()

- name: Upload cloud test results
uses: actions/upload-artifact@v4 # upload test results
uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4.6.2
if: success() || failure() # run this step even if previous step failed
with: # upload a combined archive with unit and integration test results
name: cloud-test-results-aks-${{ matrix.k8s-version }}
Expand All @@ -115,7 +115,7 @@ jobs:
.github/terraform/aks/aks-${{ matrix.k8s-version }}.json

- name: Upload test logs artifact
uses: actions/upload-artifact@v4
uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4.6.2
if: failure()
with:
name: test-logs-aks-${{ matrix.k8s-version }}
Expand All @@ -138,15 +138,15 @@ jobs:
AWS_REGION: us-east-2

steps:
- uses: actions/checkout@v4
- uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
with:
fetch-depth: 0 # fetch is needed for "git tag --list" in the Makefile

- name: Import environment variables from file
run: cat ".github/env" >> $GITHUB_ENV

- name: Setup Terraform
uses: hashicorp/setup-terraform@v3
uses: hashicorp/setup-terraform@b9cd54a3c349d3f38e8881555d616ced269862dd # v3.1.2

- run: terraform init
working-directory: .github/terraform/aws
Expand All @@ -163,7 +163,7 @@ jobs:
TF_VAR_kubernetes_version: ${{ matrix.k8s-version }}
working-directory: .github/terraform/aws

- uses: actions/setup-go@v5
- uses: actions/setup-go@44694675825211faa026b3c33043df3e48a5fa00 # v6.0.0
with:
go-version: "${{ env.golang-version }}"
cache: true
Expand All @@ -188,14 +188,14 @@ jobs:
if: success() || failure()

- name: Upload test results
uses: actions/upload-artifact@v4 # upload test results
uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4.6.2
if: success() || failure() # run this step even if previous step failed
with: # upload a combined archive with unit and integration test results
name: cloud-test-results-eks-${{ matrix.k8s-version }}
path: integration-tests-eks-${{ matrix.k8s-version }}.xml

- name: Upload test logs artifact
uses: actions/upload-artifact@v4
uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4.6.2
if: failure()
with:
name: test-logs-eks-${{ matrix.k8s-version }}
Expand All @@ -215,7 +215,7 @@ jobs:
KUBECONFIG: ${{ format('{0}/{1}', github.workspace, '.github/terraform/gke/kubeconfig') }}

steps:
- uses: actions/checkout@v4
- uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
with:
fetch-depth: 0 # fetch is needed for "git tag --list" in the Makefile

Expand All @@ -226,7 +226,7 @@ jobs:
run: echo ${{ secrets.GCP_SERVICE_ACCOUNT }} | base64 -d > gcp_sa.json

- name: Setup Terraform
uses: hashicorp/setup-terraform@v3
uses: hashicorp/setup-terraform@b9cd54a3c349d3f38e8881555d616ced269862dd # v3.1.2

- run: terraform init
working-directory: .github/terraform/gke
Expand All @@ -243,7 +243,7 @@ jobs:
TF_VAR_k8s_version: ${{ matrix.k8s-version }}
working-directory: .github/terraform/gke

- uses: actions/setup-go@v5
- uses: actions/setup-go@44694675825211faa026b3c33043df3e48a5fa00 # v6.0.0
with:
go-version: "${{ env.golang-version }}"
cache: true
Expand Down Expand Up @@ -272,14 +272,14 @@ jobs:
if: success() || failure()

- name: Upload test results
uses: actions/upload-artifact@v4 # upload test results
uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4.6.2
if: success() || failure() # run this step even if previous step failed
with: # upload a combined archive with unit and integration test results
name: cloud-test-results-gke-${{ matrix.k8s-version }}
path: integration-tests-gke-${{ matrix.k8s-version }}.xml

- name: Upload test logs artifact
uses: actions/upload-artifact@v4
uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4.6.2
if: failure()
with:
name: test-logs-gke-${{ matrix.k8s-version }}
Expand All @@ -292,13 +292,13 @@ jobs:
if: always()
steps:
- name: Download test results
uses: actions/download-artifact@v4
uses: actions/download-artifact@634f93cb2916e3fdff6788551b99b062d0335ce0 # v5.0.0
with:
pattern: cloud-test-results-*
merge-multiple: true

- name: Publish Test Results
uses: EnricoMi/publish-unit-test-result-action@v2
uses: EnricoMi/publish-unit-test-result-action@3a74b2957438d0b6e2e61d67b05318aa25c9e6c6 # v2.20.0
with:
commit: ${{ github.event.workflow_run.head_sha }}
event_file: ${{ github.event_path }}
Expand All @@ -312,7 +312,7 @@ jobs:
# Run only if the previous job has failed and only if it's running against the main branch
if: ${{ always() && contains(join(needs.*.result, ','), 'fail') && github.ref_name == 'main' }}
steps:
- uses: sarisia/actions-status-discord@v1
- uses: sarisia/actions-status-discord@11a0bfe3b50977e38aa2bd4a4ebd296415e83c19 # v1.15.4
with:
webhook: ${{ secrets.DISCORD_WEBHOOK }}
status: Failure
Expand Down
20 changes: 10 additions & 10 deletions .github/workflows/cnspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ jobs:

steps:
- name: Checkout repository
uses: actions/checkout@v4
uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0

- name: Sanitize version input (Workflow Dispatch)
if: github.event_name == 'workflow_dispatch'
Expand All @@ -45,34 +45,34 @@ jobs:
echo "VERSION=${TAG#v}" >> $GITHUB_ENV

- name: Set up QEMU
uses: docker/setup-qemu-action@v3
uses: docker/setup-qemu-action@29109295f81e9208d7d86ff1c6c12d2833863392 # v3.6.0
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
uses: docker/setup-buildx-action@e468171a9de216ec08956ac3ada2f0791b6bd435 # v3.11.1

- name: Log into registry ghcr.io
uses: docker/login-action@v3
uses: docker/login-action@5e57cd118135c172c3672efd75eb46360885c0ef # v3.6.0
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}

- name: Authenticate with Google Cloud
uses: "google-github-actions/auth@v2"
uses: "google-github-actions/auth@7c6bc770dae815cd3e89ee6cdf493a5fab2cc093" # v3.0.0
with:
credentials_json: "${{ secrets.GCP_ARTIFACT_REGISTRY_SA }}"

- name: "Set up Cloud SDK"
uses: "google-github-actions/setup-gcloud@v2"
uses: "google-github-actions/setup-gcloud@aa5489c8933f4cc7a4f7d45035b3b1440c9c10db" # v3.0.1

- name: Docker Login (GCR)
run: |
gcloud auth configure-docker us-docker.pkg.dev
- name: "Setup Docker Buildx"
uses: docker/setup-buildx-action@v3
uses: docker/setup-buildx-action@e468171a9de216ec08956ac3ada2f0791b6bd435 # v3.11.1

- name: Extract Docker metadata
id: meta
uses: docker/metadata-action@v5
uses: docker/metadata-action@c1e51972afc2121e065aed6d45c65596fe445f3f # v5.8.0
with:
images: |
${{ env.GHCR_IMAGE }}
Expand All @@ -86,12 +86,12 @@ jobs:

- name: Build and push cnspec image
id: build-and-push-operator
uses: docker/build-push-action@v6
uses: docker/build-push-action@263435318d21b8e681c14492fe198d362a7d2c83 # v6.18.0
with:
context: .
file: cnspec.Dockerfile
build-args: VERSION=${{ env.VERSION }}${{ matrix.suffix }}
platforms: linux/amd64,linux/arm64
push: true
labels: ${{ steps.meta.outputs.labels }}
tags: ${{ steps.meta.outputs.tags }}
tags: ${{ steps.meta.outputs.tags }}
18 changes: 9 additions & 9 deletions .github/workflows/integration-tests.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -26,11 +26,11 @@ jobs:
strategy:
fail-fast: false
matrix:
k8s-version: [v1.28.9, v1.29.4] #v1.30.0] k3d doesn't support 1.30 yet
k8s-version: [v1.31.9, v1.32.9, v1.33.5, v1.34.1]
k8s-distro: [minikube, k3d]

steps:
- uses: actions/checkout@v4
- uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
with:
ref: ${{ github.event.pull_request.head.sha }}
persist-credentials: false
Expand All @@ -46,13 +46,13 @@ jobs:
kubernetes-version: ${{ matrix.k8s-version }}

- name: Start k3d
uses: nolar/setup-k3d-k3s@v1
uses: nolar/setup-k3d-k3s@293b8e5822a20bc0d5bcdd4826f1a665e72aba96 # v1.0.9
if: matrix.k8s-distro == 'k3d'
with:
version: ${{ matrix.k8s-version }}
k3d-args: --k3s-arg=--disable=traefik@server:*

- uses: actions/setup-go@v5
- uses: actions/setup-go@44694675825211faa026b3c33043df3e48a5fa00 # v6.0.0
with:
go-version: "${{ env.golang-version }}"

Expand All @@ -76,14 +76,14 @@ jobs:
- run: mv integration-tests.xml integration-tests-${{ matrix.k8s-distro }}-${{ matrix.k8s-version }}.xml
if: success() || failure()

- uses: actions/upload-artifact@v4 # upload test results
if: success() || failure() # run this step even if previous step failed
with: # upload a combined archive with unit and integration test results
- uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4.6.2
if: success() || failure() # run this step even if previous step failed
with: # upload a combined archive with unit and integration test results
name: test-results-${{ matrix.k8s-distro }}-${{ matrix.k8s-version }}
path: integration-tests-${{ matrix.k8s-distro }}-${{ matrix.k8s-version }}.xml

- name: Upload test logs artifact
uses: actions/upload-artifact@v4
uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4.6.2
if: failure()
with:
name: test-logs-${{ matrix.k8s-distro }}-${{ matrix.k8s-version }}
Expand All @@ -96,7 +96,7 @@ jobs:
# Run only if the previous job has failed and only if it's running against the main branch
if: ${{ always() && contains(join(needs.*.result, ','), 'fail') && github.ref_name == 'main' }}
steps:
- uses: sarisia/actions-status-discord@v1
- uses: sarisia/actions-status-discord@11a0bfe3b50977e38aa2bd4a4ebd296415e83c19 # v1.15.4
with:
webhook: ${{ secrets.DISCORD_WEBHOOK }}
status: Failure
Expand Down
27 changes: 27 additions & 0 deletions .github/workflows/leftover-spaces-cleaner.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
name: Leftover spaces cleanup

on:
schedule:
# Every Sunday at 11PM
- cron: '0 23 * * 0'

jobs:
build:
runs-on: ubuntu-latest
name: Leftover spaces cleanup
steps:
- uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0

- name: Set up Go
uses: actions/setup-go@44694675825211faa026b3c33043df3e48a5fa00 # v6.0.0
with:
go-version: '1.24'

- name: Run leftover spaces cleanup
run: go run cmd/test-space-cleaner/main.go
env:
MONDOO_API_TOKEN: ${{ secrets.MONDOO_TEST_ORG_TOKEN }}
MONDOO_ORG_MRN: '//captain.api.mondoo.app/organizations/mondoo-operator-testing'
MONDOO_GQL_ENDPOINT: 'https://api.mondoo.com/query'


33 changes: 17 additions & 16 deletions .github/workflows/link-check.yaml
Original file line number Diff line number Diff line change
@@ -1,19 +1,20 @@
---
name: Link Checking
name: Link Checking

"on":
pull_request:
push:
branches: [main]
"on":
pull_request:
push:
branches: [main]

jobs:
md-links:
name: Run markdown link check
runs-on: ubuntu-latest
steps:
- name: Check out code
uses: actions/checkout@v4
- name: markdown-link-check
uses: gaurav-nelson/github-action-markdown-link-check@v1
with:
use-verbose-mode: "yes"
jobs:
md-links:
name: Run markdown link check
runs-on: ubuntu-latest
steps:
- name: Check out code
uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
- name: markdown-link-check
uses: gaurav-nelson/github-action-markdown-link-check@5c5dfc0ac2e225883c0e5f03a85311ec2830d368
with:
use-verbose-mode: "yes"
config-file: ".github/actions/link-check/config.json"
Loading
Loading