Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
159 commits
Select commit Hold shift + click to select a range
2354b90
feat: Provide credentials in imagePullSecret without global access
maltemorgenstern Jun 27, 2024
72b9b9e
test: Add tests for CredentialsByServer function
maltemorgenstern Jul 21, 2024
46ef0f6
fix: Allow trivy-operator to update secrets in the operator namespace
maltemorgenstern Jul 21, 2024
8e65408
fix: helm param gcr service account auth (#2108)
chen-keinan Jun 26, 2024
81d6cd2
chore: bump github.com/hashicorp/go-getter-v1.7.5 (#2162)
chen-keinan Jul 1, 2024
ae5b527
build(deps): bump github.com/aws/aws-sdk-go from 1.54.6 to 1.54.11 (#…
dependabot[bot] Jul 2, 2024
9d3b738
feat: dynamic compliance reports (#2160)
chen-keinan Jul 2, 2024
5337fa2
release: prepare v0.22.0 (#2166)
chen-keinan Jul 4, 2024
db38872
fix: remove null checks values from ClusterComplianceReport in helm c…
verdel Jul 4, 2024
338b96b
Update configuration.md, added sbom generation flag (#2163)
Talbalash-legit Jul 7, 2024
2ed726f
feat: add options to Helm chart to load Trivy config from custom conf…
kimdre Jul 8, 2024
ace0d1f
build(deps): bump github.com/aws/aws-sdk-go from 1.54.6 to 1.54.15 (#…
dependabot[bot] Jul 8, 2024
c454f54
platform and type - no metadata values (#2179)
Dimonyga Jul 9, 2024
099da3f
chore: Update chart 0.24.1 (#2180)
Dimonyga Jul 9, 2024
ba1ab19
build(deps): bump golang.org/x/net from 0.26.0 to 0.27.0 (#2176)
dependabot[bot] Jul 9, 2024
6f00f5b
Add hashing for vulnKey. (#2183)
kersten Jul 15, 2024
e89f9d6
build(deps): bump github.com/aws/aws-sdk-go from 1.54.15 to 1.54.19 (…
dependabot[bot] Jul 16, 2024
8829edd
build(deps): bump actions/setup-python from 5.1.0 to 5.1.1 (#2185)
dependabot[bot] Jul 16, 2024
51156c1
docs: Grafana Dashboard - Add headless parameter to values.yaml (#2190)
3xAG Jul 19, 2024
2e74a2d
build(deps): bump github.com/google/go-containerregistry (#2186)
dependabot[bot] Jul 20, 2024
e95bef2
build(deps): bump k8s.io/cli-runtime from 0.30.2 to 0.30.3 (#2198)
dependabot[bot] Jul 25, 2024
537b8d6
build(deps): bump github.com/aws/aws-sdk-go from 1.54.19 to 1.54.20 (…
dependabot[bot] Jul 26, 2024
a7e4b8c
build(deps): bump docker/login-action from 3.2.0 to 3.3.0 (#2193)
dependabot[bot] Jul 28, 2024
4fc6277
build(deps): bump github.com/onsi/gomega from 1.33.1 to 1.34.0 (#2207)
dependabot[bot] Aug 5, 2024
486dae0
build(deps): bump github.com/onsi/ginkgo/v2 from 2.19.0 to 2.19.1 (#2…
dependabot[bot] Aug 8, 2024
cd8b695
build(deps): bump github.com/aws/aws-sdk-go from 1.54.20 to 1.55.5 (#…
dependabot[bot] Aug 9, 2024
04cd74c
build(deps): bump sigstore/cosign-installer from 3.5.0 to 3.6.0 (#2225)
dependabot[bot] Aug 13, 2024
a825365
build(deps): bump github.com/google/go-containerregistry (#2224)
dependabot[bot] Aug 14, 2024
91a467d
build(deps): bump golangci/golangci-lint-action from 6.0.1 to 6.1.0 (…
dependabot[bot] Aug 17, 2024
714287b
build(deps): bump github.com/onsi/gomega from 1.34.0 to 1.34.1 (#2214)
dependabot[bot] Aug 19, 2024
708011f
build(deps): bump golang.org/x/text from 0.16.0 to 0.17.0 (#2222)
dependabot[bot] Aug 20, 2024
07974f8
build(deps): bump github.com/onsi/ginkgo/v2 from 2.19.1 to 2.20.0 (#2…
dependabot[bot] Aug 21, 2024
2ecdc1b
Fix compliance typo (#2210)
harryagstian Aug 21, 2024
bb4cd9d
fix: fix check gcr service account (#2200)
vadimceb Aug 22, 2024
d99b440
docs: fix typo (#2235)
pjonsson Aug 25, 2024
50ef46a
chore: bump up trivy to v0.57.1 (#2301)
afdesk Nov 19, 2024
1abbd81
fix: vuln scan success criteria met (#2292)
badgerspoke Nov 19, 2024
3f902c5
refactor(misconf): Remove support for `WARN` in rego (#2317)
simar7 Nov 20, 2024
07573f9
build(deps): bump aquaproj/aqua-installer from 3.0.1 to 3.0.2 (#2315)
dependabot[bot] Nov 20, 2024
5b7c9ef
chore: use mirror.gcr.io for trivy-check by default (#2321)
afdesk Nov 20, 2024
b6fcf35
chore: bump up base alpine image to 3.20.3 (#2320)
afdesk Nov 20, 2024
866aca6
chore: bump up go version to 1.22.7 (#2319)
afdesk Nov 20, 2024
181666b
- Updated `cache.Options` with a `DefaultTransform` function that rem…
mjshastha Nov 20, 2024
b2433b0
feat: add package purl in vuln report (#2311)
hown3d Nov 21, 2024
aa79f11
release: prepare v0.23.0 (#2322)
afdesk Nov 22, 2024
1ab4a42
chore: bump up kind for k8s v1.31 (#2318)
afdesk Nov 22, 2024
deab5ff
ci: bump up GoReleaser to v2.4.8 (#2323)
afdesk Nov 25, 2024
9af0ab8
ci: bump GoReleaser up for private registry test (#2334)
afdesk Nov 26, 2024
342a11e
chore: Use `mirror.gcr.io` instead `ghcr.io` as helm chart default (#…
simar7 Nov 26, 2024
4fd25a7
build(deps): bump k8s.io/apiextensions-apiserver from 0.31.0 to 0.31.…
dependabot[bot] Nov 27, 2024
87fad08
build(deps): bump sigs.k8s.io/controller-runtime from 0.19.1 to 0.19.…
dependabot[bot] Nov 27, 2024
7bb9935
build(deps): bump go.uber.org/automaxprocs from 1.5.3 to 1.6.0 (#2327)
dependabot[bot] Nov 27, 2024
af2cecc
build(deps): bump aquaproj/aqua-installer from 3.0.2 to 3.1.0 (#2326)
dependabot[bot] Nov 28, 2024
688539d
build(deps): bump github.com/onsi/ginkgo/v2 from 2.20.0 to 2.22.0 (#2…
dependabot[bot] Nov 28, 2024
b98d1c7
build(deps): bump sigstore/cosign-installer from 3.6.0 to 3.7.0 (#2277)
dependabot[bot] Nov 28, 2024
4ffeb73
build(deps): bump actions/setup-python from 5.1.1 to 5.3.0 (#2298)
dependabot[bot] Nov 29, 2024
3d0098a
build(deps): bump engineerd/setup-kind from 0.5.0 to 0.6.2 (#2305)
dependabot[bot] Nov 30, 2024
cccafa2
build(deps): bump golangci/golangci-lint-action from 6.1.0 to 6.1.1 (…
dependabot[bot] Dec 1, 2024
6f12e1f
build(deps): bump golang.org/x/text from 0.19.0 to 0.21.0 (#2355)
dependabot[bot] Dec 12, 2024
a203cb8
build(deps): bump golang.org/x/net from 0.30.0 to 0.32.0 (#2354)
dependabot[bot] Dec 12, 2024
a845aef
build(deps): bump codecov/codecov-action from 4 to 5 (#2337)
dependabot[bot] Dec 16, 2024
084e2e1
build(deps): bump helm/kind-action from 1.10.0 to 1.11.0 (#2357)
dependabot[bot] Dec 17, 2024
612c5e9
chore: bump up Trivy to v0.58.0 (#2350)
afdesk Dec 17, 2024
d9131eb
build(deps): bump golang.org/x/net from 0.32.0 to 0.34.0 (#2370)
dependabot[bot] Jan 9, 2025
151c639
build(deps): bump helm/kind-action from 1.11.0 to 1.12.0 (#2363)
dependabot[bot] Jan 9, 2025
b68ef01
Fix mage build command (#2332)
tom1299 Jan 9, 2025
5a22276
Fix missing credentials for java-db from private registry (#2353)
tom1299 Jan 9, 2025
7095e23
fix: confix insecure when pull policy (#2228)
tranthang2404 Jan 10, 2025
65167b6
add TRIVY_JAVA_DB_REPOSITORY to trivy configmap (#2272)
louzadod Jan 10, 2025
3898cc9
chore: bump up Trivy version to fix CVE-2025-21613 and CVE-2025-21614…
afdesk Jan 10, 2025
ca2efe5
fix: scanjob.customVolumesMount is not applied to the Built-Job (#2241)
takutakahashi Jan 11, 2025
4dc37c5
build(deps): bump github.com/onsi/ginkgo/v2 from 2.22.0 to 2.22.2 (#2…
dependabot[bot] Jan 14, 2025
e80ebd3
feat: Add extraEnv option to Helm chart (#2288)
gnadaban Jan 15, 2025
572901d
build(deps): bump sigs.k8s.io/controller-runtime from 0.19.2 to 0.19.…
dependabot[bot] Jan 16, 2025
e02da8f
chore: disable stale bot (#2382)
itaysk Jan 19, 2025
cf93332
build(deps): bump golangci/golangci-lint-action from 6.1.1 to 6.2.0 (…
dependabot[bot] Jan 22, 2025
e1a9b91
build(deps): bump helm/chart-testing-action from 2.6.1 to 2.7.0 (#2387)
dependabot[bot] Jan 22, 2025
0a9e4d7
chore: bump up k8s deps to version 1.32 (#2391)
afdesk Jan 22, 2025
f3c4a5b
set Follow to false when retrieving logs (#2286)
jrhunger Jan 23, 2025
b66b331
fix: return the image manifest digest instead of image id (#2399)
dkulchinsky Jan 29, 2025
05d1e81
build(deps): bump aquaproj/aqua-installer from 3.1.0 to 3.1.1 (#2400)
dependabot[bot] Jan 30, 2025
52f1771
Perf: Exclude kube-bench pods from being evaluated in the Trivy opera…
mjshastha Jan 31, 2025
221da3d
chore(lint): Add support for linter in mage (#2392)
afdesk Jun 2, 2025
cf0e826
build(deps): bump actions/setup-python from 5.3.0 to 5.4.0 (#2414)
dependabot[bot] Feb 4, 2025
4f91691
chore: bump up Trivy version to v0.59.1 (#2406)
afdesk Feb 6, 2025
4502aa1
build(deps): bump sigs.k8s.io/controller-runtime from 0.20.0 to 0.20.…
dependabot[bot] Feb 6, 2025
6416370
release: prepare v0.24.0 (#2421)
afdesk Feb 7, 2025
9223a20
fix(ci): update python action for Helm chart testing (#2424)
afdesk Feb 7, 2025
e4518ff
ci: bump up Helm Chart to version 0.26.0 (app version v0.24.0) (#2426)
afdesk Feb 7, 2025
8e0a242
docs: correct example ConfigMap for custom policy (#2445)
nikpivkin Feb 17, 2025
af55ffa
build(deps): bump actions/setup-python from 5.3.0 to 5.4.0 (#2433)
dependabot[bot] Feb 17, 2025
316b753
perf: Improve performance by optimizing the loading of checks (#2435)
simar7 Feb 19, 2025
6665ac0
fix: update default values for configmap (#2439)
afdesk Feb 19, 2025
57da0db
fix: sync stdout buffer to file (#2191)
daanschipper Feb 20, 2025
88e33bf
feat: add host aliases in helm charts (#2397)
Kouzi99 Feb 21, 2025
a6fbb8c
release: prepare v0.24.1 (#2454)
simar7 Feb 25, 2025
00c75b9
fix: using `trivyoperator` namespace for custom checks (#2440)
afdesk Feb 26, 2025
e2c650f
fix(test): correct assertion and clean up test cases for eval policie…
afdesk Feb 26, 2025
f7ecc5e
fix: parseImageRef tag absence issue when digest in imageRef (#2418)
danchenko-dmitry Feb 27, 2025
a8f6845
ci: Add groupings to dependabot.yml (#2459)
simar7 Feb 27, 2025
e50eb16
build(deps): bump the common group across 1 directory with 5 updates …
dependabot[bot] Mar 3, 2025
a85cb4f
build(deps): bump the github-actions group with 3 updates (#2463)
dependabot[bot] Mar 3, 2025
b28ec24
build(deps): bump the k8s group with 6 updates (#2461)
dependabot[bot] Mar 3, 2025
0a12d41
Update CODEOWNERS (#2467)
simar7 Mar 4, 2025
ed8418c
fix: use map for `scanJobAffinity` in the Helm Chart (#2469)
afdesk Mar 5, 2025
77df9b5
chore: bump up Trivy version to v0.60.0 (#2476)
afdesk Mar 11, 2025
125de0f
build(deps): bump the common group across 1 directory with 4 updates …
dependabot[bot] Mar 11, 2025
e485355
release: prepare v0.25.0 (#2473)
simar7 Mar 11, 2025
466aa6d
chore: bump minor-version of base alpine image to 3.20.6 to resolve o…
rgoltz Mar 12, 2025
406c61b
chore(test): update images for integration tests (#2482)
afdesk Mar 12, 2025
c8f4232
fix(config): correct init policy loader (#2487)
afdesk Mar 19, 2025
9d55b9e
build(deps): bump github.com/golang-jwt/jwt/v4 from 4.5.1 to 4.5.2 (#…
dependabot[bot] Mar 25, 2025
0698d11
build(deps): bump github.com/golang-jwt/jwt/v5 from 5.2.1 to 5.2.2 (#…
dependabot[bot] Mar 25, 2025
8a32ddb
build(deps): bump github.com/containerd/containerd from 1.7.25 to 1.7…
dependabot[bot] Mar 25, 2025
bbce041
test: improve integration tests (#2500)
afdesk Apr 3, 2025
1e25d56
build(deps): bump github.com/containerd/containerd/v2 (#2499)
dependabot[bot] Apr 4, 2025
333a367
chore(deps): bump golang.org/x/oauth2 to 0.27.0 to resolve CVE-2025-2…
rgoltz Apr 4, 2025
61ddb8d
chore(deps): Bump `trivy-*` deps (#2507)
simar7 Apr 8, 2025
1fa914b
docs: change docs about ttl for scanned reports (#2503)
Apr 8, 2025
1949632
build(deps): bump the k8s group across 1 directory with 2 updates (#2…
dependabot[bot] Apr 8, 2025
54260e6
build(deps): bump the common group across 1 directory with 6 updates …
dependabot[bot] Apr 8, 2025
e627c30
fix: skip excluded images in client server mode (#2516)
pascal-hofmann Apr 12, 2025
4ac6f35
fix(misconfig): ordering policies for hash (#2520)
afdesk Apr 26, 2025
c17e8e6
chore: improve cache for policies (#2526)
afdesk Apr 29, 2025
737aec1
chore(deps): bump up Trivy versions to v0.62.0 (#2528)
afdesk May 1, 2025
9b51b41
release: prepare v0.26.0 (#2535)
simar7 May 2, 2025
77f4576
chore(ci): Free up space to build (#2539)
simar7 May 2, 2025
c658362
chore(ci): Free up additional space (#2543)
simar7 May 6, 2025
8264623
chore(ci): Clear up space prior to build
simar7 May 6, 2025
f04fe6a
chore(deps): Update deps for trivy patch release (#2547)
simar7 May 7, 2025
f49b25a
release: prepare v0.26.1
simar7 May 7, 2025
cd1137a
fix(policy): show passed checks
afdesk May 2, 2025
0406972
refactor: split evaluation function into evaluate and filter
afdesk May 5, 2025
96ec975
refactor: accurate titles for methods and comments
afdesk May 5, 2025
66bcbc1
fix: a mistake in the method call
afdesk May 5, 2025
a2a44ef
test: add test cases for default configs
afdesk May 5, 2025
bd44058
docs(helm): Add trivy.existingSecret to README
peschmae Apr 30, 2025
737958f
docs: update trivy fs source
emmanuel-ferdman Apr 16, 2025
f239a05
fix: skip ConfigMap caching
afdesk May 12, 2025
759fa73
test: add test cases for exclude images
afdesk May 13, 2025
bc550eb
chore(deps): bump golangci-lint to v2.1.2
simar7 May 22, 2025
e72aa71
ci: increase timeout for integration tests
afdesk May 29, 2025
2a7e98d
chore: bumps up UBI to version 9
afdesk May 26, 2025
d837afb
chore(deps): bump golangci-lint to v2.1.6
mmorel-35 May 23, 2025
b6c0c2c
fix: enable staticcheck linters
mmorel-35 May 23, 2025
15d7e48
fix: enable errorlint linters
mmorel-35 May 23, 2025
6d1e1d2
feat: add using Trivy config file
afdesk Apr 28, 2025
707b9e0
chore: add test cases
afdesk May 12, 2025
0849d34
fix: update args for the main container
afdesk May 12, 2025
5000ae9
Update deploy/helm/values.yaml
afdesk May 23, 2025
dc85789
Update deploy/helm/README.md
afdesk May 23, 2025
4931fe5
fix: remove oci artifact construction at startup
tanderson May 26, 2025
d5e0a00
fix: enable contextcheck and usetesting linters (#2562)
mmorel-35 May 30, 2025
de3d1b1
feat: copying over original alternate store writing to rebased main b…
mleykin-squarespace May 31, 2025
e8c45b6
build(deps): bump the github-actions group across 1 directory with 5 …
dependabot[bot] May 31, 2025
271482d
build(deps): bump the common group across 1 directory with 5 updates …
dependabot[bot] May 31, 2025
70e1a26
test: Add tests for CredentialsByServer function
maltemorgenstern Jul 21, 2024
74e1f17
fix: Allow trivy-operator to update secrets in the operator namespace
maltemorgenstern Jul 21, 2024
9545bca
chore: fix linter errros
afdesk Jun 2, 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
2 changes: 1 addition & 1 deletion .github/CODEOWNERS
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
# Global

* @chen-keinan
* @simar7
32 changes: 24 additions & 8 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -1,15 +1,31 @@
# To get started with Dependabot version updates, you'll need to specify which
# package ecosystems to update and where the package manifests are located.
# Please see the documentation for all configuration options:
# https://help.github.com/github/administering-a-repository/configuration-options-for-dependency-updates

---
version: 2
updates:
- package-ecosystem: github-actions
- package-ecosystem: gomod
directory: /
schedule:
interval: weekly
- package-ecosystem: gomod
groups:
k8s:
patterns:
- "*k8s*"
testcontainers:
patterns:
- github.com/testcontainers/*
common:
patterns:
- "*"
golang:
patterns:
- go*
aqua:
patterns:
- "*aquasecurity*"
- package-ecosystem: github-actions
directory: /
schedule:
interval: weekly
interval: monthly
groups:
github-actions:
patterns:
- "*"
72 changes: 46 additions & 26 deletions .github/workflows/build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,8 @@ on:
- LICENSE
- NOTICE
env:
KIND_VERSION: v0.17.0
KIND_IMAGE: kindest/node:v1.21.1@sha256:69860bda5563ac81e3c0057d654b5253219618a22ec3a346306239bba8cfa1a6
GO_VERSION: '1.22'
KIND_VERSION: v0.24.0
KIND_IMAGE: kindest/node:v1.31.2
permissions: {}
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
Expand All @@ -39,18 +38,16 @@ jobs:
- name: Setup Go
uses: actions/setup-go@v5
with:
go-version: ${{ env.GO_VERSION }}
go-version-file: go.mod
- name: Install tools
uses: aquaproj/aqua-installer@v3.0.1
uses: aquaproj/aqua-installer@v4.0.0
with:
aqua_version: v1.25.0
- name: Verify Go code
uses: golangci/golangci-lint-action@v6.0.1
uses: golangci/golangci-lint-action@v8.0.0
with:
args: --verbose
version: v1.57.2
skip-pkg-cache: true
skip-build-cache: true
version: v2.1
- name: Verify YAML code
uses: ibiqlik/action-yamllint@v3
- name: Vendor Go modules
Expand All @@ -63,20 +60,31 @@ jobs:
name: Run tests
runs-on: ubuntu-latest
steps:
- name: Maximize build space
uses: AdityaGarg8/remove-unwanted-software@v5
with:
remove-android: 'true'
remove-dotnet: 'true'
remove-haskell: 'true'
remove-codeql: 'true'
remove-docker-images: 'true'
remove-large-packages: 'true'
remove-cached-tools: 'true'
remove-swapfile: 'true'
- name: Checkout code
uses: actions/checkout@v4
- name: Setup Go
uses: actions/setup-go@v5
with:
go-version: ${{ env.GO_VERSION }}
go-version-file: go.mod
- name: Install tools
uses: aquaproj/aqua-installer@v3.0.1
uses: aquaproj/aqua-installer@v4.0.0
with:
aqua_version: v1.25.0
- name: Run unit tests
run: mage test:unit
- name: Upload code coverage
uses: codecov/codecov-action@v4
uses: codecov/codecov-action@v5
with:
files: ./coverage.txt
operator-envtest:
Expand All @@ -91,44 +99,49 @@ jobs:
- name: Setup Go
uses: actions/setup-go@v5
with:
go-version: ${{ env.GO_VERSION }}
go-version-file: go.mod
- name: Install tools
uses: aquaproj/aqua-installer@v3.0.1
uses: aquaproj/aqua-installer@v4.0.0
with:
aqua_version: v1.25.0
- name: Run envtest
run: mage test:envtest
- name: Upload code coverage
uses: codecov/codecov-action@v4
uses: codecov/codecov-action@v5
with:
files: ./coverage.txt
itest-trivy-operator:
name: Run integration tests
needs:
- operator-envtest
runs-on: ubuntu-latest
timeout-minutes: 15
timeout-minutes: 30
steps:
- name: Checkout code
uses: actions/checkout@v4

- name: Setup Go
uses: actions/setup-go@v5
with:
go-version: ${{ env.GO_VERSION }}
go-version-file: go.mod

- name: Install tools
uses: aquaproj/aqua-installer@v3.0.1
uses: aquaproj/aqua-installer@v4.0.0
with:
aqua_version: v1.25.0

- name: Setup Kubernetes cluster (KIND)
uses: engineerd/setup-kind@v0.5.0
uses: engineerd/setup-kind@v0.6.2
with:
version: ${{ env.KIND_VERSION }}
image: ${{ env.KIND_IMAGE }}

- name: Test connection to Kubernetes cluster
run: |
kubectl cluster-info
kubectl wait --for=condition=Ready nodes --all --timeout=300s
kubectl describe node

- name: Run integration tests
run: |
kubectl create -k deploy/static
Expand All @@ -137,10 +150,12 @@ jobs:
KUBECONFIG: /home/runner/.kube/config
OPERATOR_NAMESPACE: trivy-system
OPERATOR_TARGET_NAMESPACES: default

- name: Upload code coverage
uses: codecov/codecov-action@v4
uses: codecov/codecov-action@v5
with:
files: ./itest/trivy-operator/coverage.txt

e2e-testing:
name: Run end to end testing
needs:
Expand All @@ -161,12 +176,12 @@ jobs:
- name: Setup Go
uses: actions/setup-go@v5
with:
go-version: ${{ env.GO_VERSION }}
go-version-file: go.mod
- name: Release snapshot
uses: goreleaser/goreleaser-action@v6
with:
version: v1.7.0
args: release -f=goreleaser-e2e.yaml --snapshot --skip-publish --rm-dist
version: v2.4.8
args: release -f=goreleaser-e2e.yaml --snapshot --skip=publish --clean
- name: Install kind and create cluster
run: >
curl -Lo ./kind https://kind.sigs.k8s.io/dl/${{ env.KIND_VERSION
Expand All @@ -188,10 +203,10 @@ jobs:
kubectl describe node
- name: Load operator image to cluster
run: >
docker tag ghcr.io/aquasecurity/trivy-operator:${{ github.sha }}-amd64
ghcr.io/aquasecurity/trivy-operator:e2e
docker tag mirror.gcr.io/aquasec/trivy-operator:${{ github.sha }}-amd64
mirror.gcr.io/aquasec/trivy-operator:e2e

docker save -o trivy-operator.tar ghcr.io/aquasecurity/trivy-operator:e2e
docker save -o trivy-operator.tar mirror.gcr.io/aquasec/trivy-operator:e2e

kind load image-archive trivy-operator.tar
- name: Init E2E tests (Install kuttl & helm)
Expand Down Expand Up @@ -265,6 +280,11 @@ jobs:
run: >
./bin/kuttl test --start-kind=false --config tests/e2e/config/cluster-scan.yaml

- name: The job has failed - print the logs
if: ${{ failure() }}
run: >
kubectl logs -n trivy-system deployment/trivy-operator

- name: Delete kind cluster
run: |
kind delete cluster
26 changes: 15 additions & 11 deletions .github/workflows/chart-testing.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,15 +14,14 @@ on:
env:
KIND_VERSION: v0.17.0
KIND_IMAGE: kindest/node:v1.21.1@sha256:69860bda5563ac81e3c0057d654b5253219618a22ec3a346306239bba8cfa1a6
GO_VERSION: '1.22'
permissions: {}
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
chart-testing:
name: Run chart testing
runs-on: ubuntu-latest
runs-on: ubuntu-22.04
env:
DOCKER_CLI_EXPERIMENTAL: enabled
steps:
Expand All @@ -38,12 +37,13 @@ jobs:
- name: Setup Go
uses: actions/setup-go@v5
with:
go-version: ${{ env.GO_VERSION }}
go-version-file: go.mod
- name: Release snapshot
uses: goreleaser/goreleaser-action@v6
with:
version: v1.7.0
args: release -f=goreleaser-e2e.yaml --snapshot --skip-publish --rm-dist
version: v2.4.8
args: release -f=goreleaser-e2e.yaml --snapshot --skip=publish --clean

- name: Install kind and create cluster
run: |
curl -Lo ./kind https://kind.sigs.k8s.io/dl/${{ env.KIND_VERSION }}/kind-linux-amd64
Expand All @@ -69,19 +69,23 @@ jobs:
cmd: yq -i '.appVersion = "ct"' ./deploy/helm/Chart.yaml
- name: Load operator image to cluster
run: >
docker tag ghcr.io/aquasecurity/trivy-operator:${{ github.sha }}-amd64
ghcr.io/aquasecurity/trivy-operator:ct
docker tag mirror.gcr.io/aquasec/trivy-operator:${{ github.sha }}-amd64
mirror.gcr.io/aquasec/trivy-operator:ct

docker save -o trivy-operator.tar ghcr.io/aquasecurity/trivy-operator:ct
docker save -o trivy-operator.tar mirror.gcr.io/aquasec/trivy-operator:ct

kind load image-archive trivy-operator.tar

- name: Set up python
uses: actions/setup-python@82c7e631bb3cdc910f68e0081d67478d79c6982d
uses: actions/setup-python@v5.6.0
with:
python-version: 3.7
python-version: '3.x'
check-latest: true

- name: Setup chart-testing
id: lint
uses: helm/chart-testing-action@v2.6.1
uses: helm/chart-testing-action@v2.7.0

- name: Run chart-testing
run: ct lint-and-install --validate-maintainers=false --charts deploy/helm
- name: Delete kind cluster
Expand Down
15 changes: 7 additions & 8 deletions .github/workflows/private-registries.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -24,15 +24,14 @@ on:
env:
KIND_VERSION: v0.17.0
KIND_IMAGE: kindest/node:v1.21.1@sha256:69860bda5563ac81e3c0057d654b5253219618a22ec3a346306239bba8cfa1a6
GO_VERSION: '1.22'
permissions: {}
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
private-registry-testing:
name: private registry testing
runs-on: ubuntu-latest
runs-on: ubuntu-22.04
env:
DOCKER_CLI_EXPERIMENTAL: enabled
steps:
Expand All @@ -48,12 +47,12 @@ jobs:
- name: Setup Go
uses: actions/setup-go@v5
with:
go-version: ${{ env.GO_VERSION }}
go-version-file: go.mod
- name: Release snapshot
uses: goreleaser/goreleaser-action@v6
with:
version: v1.7.0
args: release -f=goreleaser-e2e.yaml --snapshot --skip-publish --rm-dist
version: v2.4.8
args: release -f=goreleaser-e2e.yaml --snapshot --skip=publish --clean
- name: Install kind and create cluster
run: >
curl -Lo ./kind https://kind.sigs.k8s.io/dl/${{ env.KIND_VERSION
Expand Down Expand Up @@ -83,10 +82,10 @@ jobs:
-n private
- name: Load operator image to cluster
run: >
docker tag ghcr.io/aquasecurity/trivy-operator:${{ github.sha }}-amd64
ghcr.io/aquasecurity/trivy-operator:e2e
docker tag mirror.gcr.io/aquasec/trivy-operator:${{ github.sha }}-amd64
mirror.gcr.io/aquasec/trivy-operator:e2e

docker save -o trivy-operator.tar ghcr.io/aquasecurity/trivy-operator:e2e
docker save -o trivy-operator.tar mirror.gcr.io/aquasec/trivy-operator:e2e

kind load image-archive trivy-operator.tar
- name: Init E2E tests (Install kuttl & helm)
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/publish-docs.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ jobs:
fetch-depth: 0
ref: ${{ github.event.inputs.ref }}
persist-credentials: true
- uses: actions/setup-python@82c7e631bb3cdc910f68e0081d67478d79c6982d
- uses: actions/setup-python@5db1cf9a59fb97c40a68accab29236f0da7e94db
with:
python-version: 3.x
- run: |
Expand Down
19 changes: 13 additions & 6 deletions .github/workflows/publish-helm-chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -26,24 +26,31 @@ jobs:
- uses: actions/checkout@v4
with:
fetch-depth: 0

- name: Install Helm
uses: azure/setup-helm@fe7b79cd5ee1e45176fcad797de68ecaf3ca4814 # v4.2.0
uses: azure/setup-helm@b9e51907a09c216f16ebe8536097933489208112 # v4.3.0
with:
version: v3.14.2

- name: Set up python
uses: actions/setup-python@82c7e631bb3cdc910f68e0081d67478d79c6982d # v5.1.0
uses: actions/setup-python@v5.6.0
with:
python-version: 3.7
python-version: '3.x'
check-latest: true

- name: Setup Chart Linting
id: lint
uses: helm/chart-testing-action@v2.6.1
uses: helm/chart-testing-action@v2.7.0

- name: Setup Kubernetes cluster (KIND)
uses: helm/kind-action@v1.10.0 # v1.5.0
uses: helm/kind-action@v1.12.0 # v1.5.0
with:
version: ${{ env.KIND_VERSION }}
node_image: ${{ env.KIND_IMAGE }}

- name: Run chart-testing
run: ct lint-and-install --validate-maintainers=false --charts deploy/helm

- name: Install chart-releaser
run: |
wget https://github.com/helm/chart-releaser/releases/download/v1.3.0/chart-releaser_1.3.0_linux_amd64.tar.gz
Expand Down Expand Up @@ -76,7 +83,7 @@ jobs:

# OCI registry as helm repository (helm 3.8+)
- name: Login to GHCR
uses: docker/login-action@0d4c9c5ea7693da7b068278f7b52bda2a190a446 # v3.2.0
uses: docker/login-action@74a5d142397b4f367a81961eba4e8cd7edddf772 # v3.4.0
with:
registry: ghcr.io
username: ${{ github.actor }}
Expand Down
Loading
Loading