Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

merge main to fork #244

Merged
merged 508 commits into from
Nov 5, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
508 commits
Select commit Hold shift + click to select a range
a76e328
fix(sbom): take pkg name from `purl` for maven pkgs (#7008)
DmitriyLewen Jun 26, 2024
8d618e4
feat(k8s)!: node-collector dynamic commands support (#6861)
chen-keinan Jun 26, 2024
3d02a31
fix(plugin): respect `--insecure` (#7022)
knqyf263 Jun 26, 2024
9045f24
docs: Add sudo on commands, chmod before mv on install docs (#7009)
DPS0340 Jun 26, 2024
0ccdbfb
chore: enable float-compare rule from testifylint (#6967)
mmorel-35 Jun 26, 2024
e9fc3e3
fix(cli): show info message only when --scanners is available (#7032)
knqyf263 Jun 27, 2024
4be02ba
refactor: use google/wire for cache (#7024)
knqyf263 Jun 27, 2024
9e4927e
chore(deps): bump trivy-kubernetes version (#7012)
matheusfm Jun 27, 2024
137c916
fix: use embedded when command path not found (#7037)
chen-keinan Jun 27, 2024
4f8b399
docs: ✨ Updated ecosystem docs with reference to new community app (#…
ChristofferNissen Jun 27, 2024
edc556b
feat(php): add installed.json file support (#4865)
DmitriyLewen Jun 28, 2024
14d71ba
fix(sbom): use package UIDs for uniqueness (#7042)
knqyf263 Jun 28, 2024
55ccd06
feat: add memory cache backend (#7048)
knqyf263 Jun 28, 2024
3d4ae8b
fix(sbom): fix panic when scanning SBOM file without root component i…
DmitriyLewen Jun 28, 2024
654217a
feat(conda): add licenses support for `environment.yml` files (#6953)
DmitriyLewen Jul 1, 2024
c55b0e6
release: v0.53.0 [main] (#6855)
aqua-bot Jul 1, 2024
c464726
chore(deps): bump the github-actions group with 2 updates (#7067)
dependabot[bot] Jul 2, 2024
6a307bb
docs: navigate to the release highlights and summary (#7072)
knqyf263 Jul 2, 2024
fc6b3a7
refactor: pass DB dir to trivy-db (#7057)
knqyf263 Jul 2, 2024
acbec05
perf(debian): use `bytes.Index` in `emptyLineSplit` to cut allocation…
paulcacheux Jul 2, 2024
91f2237
chore(deps): bump the common group across 1 directory with 23 updates…
dependabot[bot] Jul 2, 2024
db68d10
chore: bump golangci-lint from v1.58 to v1.59 (#7077)
knqyf263 Jul 2, 2024
1f5f348
feat: add `log.FilePath()` function for logger (#7080)
DmitriyLewen Jul 2, 2024
266d9b1
refactor(sbom): add sbom prefix + filepaths for decode log messages (…
DmitriyLewen Jul 3, 2024
03ac93d
feat(nodejs): add license parser to pnpm analyser (#7036)
oscarbc96 Jul 3, 2024
cb89fbb
refactor(secret): add warning about large files (#7085)
DmitriyLewen Jul 3, 2024
a7a304d
fix(java): use `go-mvn-version` to remove `Package` duplicates (#7088)
DmitriyLewen Jul 4, 2024
25f8143
fix: ignore nodes when listing permission is not allowed (#7107)
chen-keinan Jul 8, 2024
ec3e0ca
chore(deps): bump the aws group with 4 updates (#7115)
dependabot[bot] Jul 9, 2024
dc68a66
fix: Add dependencyManagement exclusions to the child exclusions (#6969)
coheigea Jul 9, 2024
a64993e
test: add missing advisory details for integration tests database (#7…
DmitriyLewen Jul 9, 2024
17b5dbf
feat: add openSUSE tumbleweed detection and scanning (#6965)
msmeissn Jul 9, 2024
ab0fd0d
chore(deps): bump the docker group with 2 updates (#7116)
dependabot[bot] Jul 9, 2024
5a9f1a6
refactor(secret): move warning about file size after `IsBinary` check…
DmitriyLewen Jul 9, 2024
7cbdb0a
feat(cli): rename `--vuln-type` flag to `--pkg-types` flag (#7104)
DmitriyLewen Jul 9, 2024
f27c236
fix(misconf): do not evaluate TF when a load error occurs (#7109)
nikpivkin Jul 10, 2024
d2f4da8
chore: add VEX document and generator for Trivy (#7128)
knqyf263 Jul 10, 2024
e674c93
chore(deps): bump the common group across 1 directory with 7 updates …
dependabot[bot] Jul 10, 2024
a3a6de2
chore: add VEX for Trivy images (#7140)
knqyf263 Jul 10, 2024
d1f8967
docs(misconf): add info about limitations for terraform plan json (#7…
nikpivkin Jul 10, 2024
4308a0a
docs: Fix PR documentation to use GitHub Discussions, not Issues (#7141)
pbaumard Jul 12, 2024
2a577a7
fix: close file when failed to open gzip (#7164)
testwill Jul 15, 2024
d1ec89d
feat(misconf): enabled China configuration for ACRs (#7156)
admanb Jul 16, 2024
7066f5e
chore(deps): bump the aws group with 6 updates (#7166)
dependabot[bot] Jul 16, 2024
c8a7abd
fix: add missing platform and type to spec (#7149)
nikpivkin Jul 16, 2024
b76a725
chore(deps): bump goreleaser from `v2.0.0` to `v2.1.0` (#7162)
DmitriyLewen Jul 16, 2024
5bc662b
fix(dotnet): don't include non-runtime libraries into report for `*.d…
DmitriyLewen Jul 22, 2024
5f78ea4
refactor(fs): remove unused field for CompositeFS (#7195)
nikpivkin Jul 22, 2024
5f78045
docs: updates config file (#7188)
this-oliver Jul 22, 2024
5cbc452
feat(mariner): Add support for Azure Linux (#7186)
tofay Jul 22, 2024
9d52018
fix(server): pass license categories to options (#7203)
nikpivkin Jul 22, 2024
9269563
chore(vex): update subcomponents for CVE-2023-42363/42364/42365/42366…
knqyf263 Jul 22, 2024
92b13be
fix(secret): trim excessively long lines (#7192)
afdesk Jul 23, 2024
051ac39
chore(deps): bump the docker group across 1 directory with 2 updates …
dependabot[bot] Jul 24, 2024
0e286f0
ci: use free runner for all tests except `build tests` (#7215)
DmitriyLewen Jul 25, 2024
efb1f69
feat(sbom): add vulnerability support for SPDX formats (#7213)
DmitriyLewen Jul 25, 2024
8c87194
fix(secret): update length of `hugging-face-access-token` (#7216)
DmitriyLewen Jul 25, 2024
7fa5e7d
fix(cli): error on missing config file (#7154)
sgaist Jul 25, 2024
c3036de
fix(report): hide empty table when all secrets/license/misconfigs are…
DmitriyLewen Jul 25, 2024
bff317c
feat: share build-in rules (#7207)
afdesk Jul 25, 2024
174b1e3
fix(secret): skip regular strings contain secret patterns (#7182)
afdesk Jul 25, 2024
88ba460
feat(vex): VEX Repository support (#7206)
knqyf263 Jul 25, 2024
8d5ba3f
chore(deps): bump the common group across 1 directory with 17 updates…
dependabot[bot] Jul 25, 2024
d76feba
fix(dotnet): show `nuget package dir not found` log only when checkin…
DmitriyLewen Jul 25, 2024
f35f4a5
docs: show VEX cli pages + update config file page for VEX flags (#7244)
DmitriyLewen Jul 29, 2024
5c37361
feat(vuln): add `--pkg-relationships` (#7237)
knqyf263 Jul 29, 2024
805592d
chore: show VEX notice for OSS maintainers in CI environments (#7246)
knqyf263 Jul 29, 2024
4e54a7e
fix(java): avoid panic if deps from `pom` in `it` dir are not found (…
DmitriyLewen Jul 29, 2024
54bb8bd
fix(nodejs): detect direct dependencies when using `latest` version f…
DmitriyLewen Jul 30, 2024
f198cf8
refactor(flag): return error if both `--download-db-only` and `--down…
DmitriyLewen Jul 30, 2024
4a2f492
feat(sbom): add image labels into `SPDX` and `CycloneDX` reports (#7257)
DmitriyLewen Jul 30, 2024
c2fd2e0
feat(vex): retrieve VEX attestations from OCI registries (#7249)
knqyf263 Jul 30, 2024
3b7aad3
chore(deps): bump google.golang.org/grpc from 1.64.0 to 1.64.1 (#7136)
dependabot[bot] Jul 30, 2024
b3ee4bc
docs: update ecosystem page reporting with plopsec.com app (#7262)
pl0psec Jul 30, 2024
ff403a3
release: v0.54.0 [main] (#7075)
aqua-bot Jul 31, 2024
45b3f34
feat(vm): Support direct filesystem (#7058)
yusuke-koyoshi Jul 31, 2024
7024572
feat(cli)!: delete deprecated SBOM flags (#7266)
knqyf263 Jul 31, 2024
35c60f0
feat(vm): support the Ext2/Ext3 filesystems (#6983)
Jul 31, 2024
b3ee6da
fix(plugin): do not call GitHub content API for releases and tags (#7…
knqyf263 Jul 31, 2024
49d5270
fix(java): Return error when trying to find a remote pom to avoid seg…
coheigea Jul 31, 2024
2a0e529
fix(flag): incorrect behavior for deprected flag `--clear-cache` (#7281)
afdesk Jul 31, 2024
e95152f
refactor(misconf): remove file filtering from parsers (#7289)
nikpivkin Aug 2, 2024
fd8348d
feat(vuln): Add `--detection-priority` flag for accuracy tuning (#7288)
knqyf263 Aug 2, 2024
555ac8c
docs: add auto-generated config (#7261)
afdesk Aug 5, 2024
bb2e26a
fix(terraform): add aws_region name to presets (#7184)
albertodonato Aug 6, 2024
85dadf5
perf(misconf): do not convert contents of a YAML file to string (#7292)
nikpivkin Aug 6, 2024
13789b7
refactor(misconf): remove unused universal scanner (#7293)
nikpivkin Aug 6, 2024
c766831
perf(misconf): use json.Valid to check validity of JSON (#7308)
nikpivkin Aug 6, 2024
a4180bd
fix(misconf): load only submodule if it is specified in source (#7112)
nikpivkin Aug 6, 2024
a817fae
feat(misconf): support for policy and bucket grants (#7284)
nikpivkin Aug 6, 2024
f0ed5e4
fix(misconf): do not set default value for default_cache_behavior (#7…
nikpivkin Aug 7, 2024
fe92072
feat(misconf): iterator argument support for dynamic blocks (#7236)
nikpivkin Aug 7, 2024
ac3eb9d
chore(deps): bump the common group across 1 directory with 7 updates …
dependabot[bot] Aug 7, 2024
7278abd
docs: update client/server docs for misconf and license scanning (#7277)
nikpivkin Aug 7, 2024
65d991c
docs: update links to packaging.python.org (#7318)
nikpivkin Aug 8, 2024
2b6d8d9
perf(misconf): optimize work with context (#6968)
nikpivkin Aug 8, 2024
59c1541
refactor: replace ftypes.Gradle with packageurl.TypeGradle (#7323)
nikpivkin Aug 9, 2024
08cc14b
docs: update air-gapped docs (#7160)
itaysk Aug 9, 2024
ee339b5
docs(misconf): Update callsites to use correct naming (#7335)
simar7 Aug 14, 2024
0047dbf
chore(deps): bump the common group with 9 updates (#7333)
dependabot[bot] Aug 15, 2024
aadb090
fix(misconf): change default TLS values for the Azure storage account…
nikpivkin Aug 15, 2024
0c6687d
refactor(misconf): highlight only affected rows (#7310)
nikpivkin Aug 15, 2024
c5c62d5
fix(misconf): wrap Azure PortRange in iac types (#7357)
nikpivkin Aug 20, 2024
efdbd8f
feat(misconf): scanning support for YAML and JSON (#7311)
nikpivkin Aug 20, 2024
db2c955
feat(misconf): variable support for Terraform Plan (#7228)
nikpivkin Aug 21, 2024
05a8297
fix: safely check if the directory exists (#7353)
nikpivkin Aug 21, 2024
3f0e7eb
chore(deps): bump the aws group across 1 directory with 7 updates (#7…
dependabot[bot] Aug 21, 2024
24a4563
feat(server): add internal `--path-prefix` flag for client/server mod…
knqyf263 Aug 21, 2024
6fe6727
chore(deps): bump trivy-checks (#7350)
nikpivkin Aug 22, 2024
bfdf5cf
refactor(misconf): use slog (#7295)
nikpivkin Aug 23, 2024
9ef05fc
feat(misconf): ignore duplicate checks (#7317)
nikpivkin Aug 23, 2024
b65b32d
fix(misconf): init frameworks before updating them (#7376)
nikpivkin Aug 23, 2024
2a6c7ab
fix(misconf): support deprecating for Go checks (#7377)
nikpivkin Aug 23, 2024
e9b43f8
feat(python): use minimum version for pip packages (#7348)
afdesk Aug 24, 2024
45a9627
docs: add pkg flags to config file page (#7370)
DmitriyLewen Aug 24, 2024
be86126
feat(misconf): Add support for using spec from on-disk bundle (#7179)
simar7 Aug 27, 2024
dd9733e
fix(report): escape `Message` field in `asff.tpl` template (#7401)
DmitriyLewen Aug 27, 2024
0799770
fix(misconf): use module to log when metadata retrieval fails (#7405)
nikpivkin Aug 27, 2024
44e4686
feat(misconf): support for ignore by nested attributes (#7205)
nikpivkin Aug 28, 2024
9d7264a
fix(misconf): do not filter Terraform plan JSON by name (#7406)
nikpivkin Aug 28, 2024
98e136e
feat(misconf): port and protocol support for EC2 networks (#7146)
nikpivkin Aug 29, 2024
344dafd
chore: fix allow rule of ignoring test files to make it case insensit…
aasish-r Aug 29, 2024
391448a
fix(secret): use only line with secret for long secret lines (#7412)
DmitriyLewen Aug 29, 2024
84118d0
chore: update CODEOWNERS (#7398)
knqyf263 Aug 29, 2024
4c6e8ca
feat(server): Make Trivy Server Multiplexer Exported (#7389)
orizerah Aug 29, 2024
7aea79d
feat(report): export modified findings in JSON (#7383)
knqyf263 Aug 29, 2024
c96dcdd
fix(sbom): use `NOASSERTION` for licenses fields in SPDX formats (#7403)
DmitriyLewen Aug 29, 2024
a5aa63e
fix(misconf): do not register Rego libs in checks registry (#7420)
nikpivkin Aug 29, 2024
39c8024
chore(deps): Bump trivy-checks (#7417)
simar7 Aug 30, 2024
3a5d091
fix(misconf): do not recreate filesystem map (#7416)
nikpivkin Aug 30, 2024
bf64003
fix(secret): use `.eyJ` keyword for JWT secret (#7410)
DmitriyLewen Aug 30, 2024
0cac3ac
fix(misconf): fix infer type for null value (#7424)
nikpivkin Aug 31, 2024
feaef96
fix(aws): handle ECR repositories in different regions (#6217)
knrc Sep 2, 2024
c929290
fix: logger initialization before flags parsing (#7372)
DmitriyLewen Sep 2, 2024
fd9ed3a
fix(nodejs): check all `importers` to detect dev deps from pnpm-lock.…
DmitriyLewen Sep 2, 2024
1a6295c
test: add integration plugin tests (#7299)
DmitriyLewen Sep 2, 2024
af1d257
feat(sbom): set User-Agent header on requests to Rekor (#7396)
bobcallaway Sep 3, 2024
da4ebfa
fix(helm): explicitly define `kind` and `apiVersion` of `volumeClaimT…
LucasVanHaaren Sep 3, 2024
870523d
chore(deps): Bump trivy-checks and pin OPA (#7427)
simar7 Sep 3, 2024
2d97700
feat(java): add `test` scope support for `pom.xml` files (#7414)
DmitriyLewen Sep 3, 2024
f80183c
fix(license): add license handling to JUnit template (#7409)
psibre Sep 3, 2024
2d80769
feat(go): use `toolchain` as `stdlib` version for `go.mod` files (#7163)
DmitriyLewen Sep 3, 2024
7a1e8b8
release: v0.55.0 [main] (#7271)
aqua-bot Sep 3, 2024
4926da7
fix(license): stop spliting a long license text (#7336)
afdesk Sep 5, 2024
412fb76
refactor(java): add error/statusCode for logs when we can't get pom.x…
DmitriyLewen Sep 6, 2024
e2118e8
chore(helm): bump up Trivy Helm chart (#7441)
afdesk Sep 6, 2024
5375cd2
chore(deps): bump the common group across 1 directory with 19 updates…
dependabot[bot] Sep 6, 2024
3642fe1
chore(deps): bump the aws group with 6 updates (#7468)
dependabot[bot] Sep 10, 2024
dd0a64a
fix(oracle): Update EOL date for Oracle 7 (#7480)
s-reddy1498 Sep 10, 2024
927c6e0
fix(report): change a receiver of MarshalJSON (#7483)
knqyf263 Sep 11, 2024
7ff9aff
fix(report): fix error with unmarshal of `ExperimentalModifiedFinding…
DmitriyLewen Sep 11, 2024
d589856
docs(oci): Add a note About the expected Media Type for the Trivy-DB …
Squiddim Sep 11, 2024
6472e3c
feat(license): improve license normalization (#7131)
pbaumard Sep 11, 2024
8876e70
docs(db): add a manifest example (#7485)
knqyf263 Sep 11, 2024
b0222fe
revert(java): stop supporting of `test` scope for `pom.xml` files (#7…
DmitriyLewen Sep 12, 2024
04a854c
docs: refine go docs (#7442)
itaysk Sep 12, 2024
42748c4
chore(vex): suppress openssl vulnerabilities (#7500)
knqyf263 Sep 16, 2024
701dbda
chore(deps): bump alpine from 3.20.0 to 3.20.3 (#7508)
kaplanlior Sep 16, 2024
0efd202
chore(vex): add `CVE-2024-34155`, `CVE-2024-34156` and `CVE-2024-3415…
DmitriyLewen Sep 16, 2024
5442949
fix(java): use `dependencyManagement` from root/child pom's for depen…
DmitriyLewen Sep 16, 2024
e6f45cd
refactor: split `.egg` and `packaging` analyzers (#7514)
DmitriyLewen Sep 16, 2024
f768d3a
feat(misconf): Register checks only when needed (#7435)
simar7 Sep 17, 2024
56db43c
fix(misconf): Fix logging typo (#7473)
simar7 Sep 17, 2024
d1d7132
chore(deps): bump go-ebs-file (#7513)
nikpivkin Sep 18, 2024
aeb7039
fix(sbom): parse type `framework` as `library` when unmarshalling `Cy…
DmitriyLewen Sep 18, 2024
dbd2dd6
refactor(misconf): pass options to Rego scanner as is (#7529)
nikpivkin Sep 18, 2024
5dd94eb
fix(sbom): export bom-ref when converting a package to a component (#…
afdesk Sep 19, 2024
1f9fc13
perf(misconf): use port ranges instead of enumeration (#7549)
nikpivkin Sep 20, 2024
37d549e
fix(misconf): Fixed scope for China Cloud (#7560)
bloomadcariad Sep 23, 2024
8128ecc
docs(misconf): Add more info on how to use arbitrary JSON/YAML scan f…
simar7 Sep 26, 2024
bbc8e1d
chore(deps): remove broken replaces for opa and discovery (#7600)
lebauce Sep 26, 2024
fea7250
ci: cache test images for `integration`, `VM` and `module` tests (#7599)
DmitriyLewen Sep 26, 2024
1fdf30a
ci: add `workflow_dispatch` trigger for test workflow. (#7606)
DmitriyLewen Sep 26, 2024
3fa24e8
chore(deps): bump the common group across 1 directory with 20 updates…
dependabot[bot] Sep 26, 2024
13ef3e7
fix(db): check `DownloadedAt` for `trivy-java-db` (#7592)
DmitriyLewen Sep 26, 2024
a8fbe46
fix: allow access to '..' in mapfs (#7575)
nikpivkin Sep 27, 2024
9baf658
test: use a local registry for remote scanning (#7607)
knqyf263 Sep 27, 2024
ea0cf03
fix(misconf): escape all special sequences (#7558)
nikpivkin Sep 28, 2024
ef0a27d
feat(misconf): add ability to disable checks by ID (#7536)
nikpivkin Sep 28, 2024
efdb68d
feat(suse): added SUSE Linux Enterprise Micro support (#7294)
msmeissn Sep 29, 2024
de40df9
fix(misconf): disable DS016 check for image history analyzer (#7540)
nikpivkin Sep 30, 2024
cb16d43
ci: split `save` and `restore` cache actions (#7614)
DmitriyLewen Sep 30, 2024
9d1be41
refactor: fix auth error handling (#7615)
knqyf263 Sep 30, 2024
60725f8
feat(secret): enhance secret scanning for python binary files (#7223)
afdesk Sep 30, 2024
b836232
feat(java): add empty versions if `pom.xml` dependency versions can't…
DmitriyLewen Sep 30, 2024
d4edeb5
test: use loaded image names (#7617)
knqyf263 Oct 1, 2024
7602d14
ci: don't use cache for `setup-go` (#7622)
DmitriyLewen Oct 1, 2024
3562529
feat: support multiple DB repositories for vulnerability and Java DB …
nikpivkin Oct 1, 2024
c0e8da3
feat(misconf): Support `--skip-*` for all included modules (#7579)
simar7 Oct 2, 2024
1faf529
chore: add prefixes to log messages (#7625)
knqyf263 Oct 2, 2024
82e2adc
fix(misconf): Disable deprecated checks by default (#7632)
simar7 Oct 2, 2024
8735242
chore(deps): Bump trivy-checks to v1.1.0 (#7631)
simar7 Oct 2, 2024
3e1fa21
fix(secret): change grafana token regex to find them without unquoted…
sgaist Oct 2, 2024
69bf7e0
feat: support RPM archives (#7628)
knqyf263 Oct 2, 2024
fcaea74
fix(misconf): not to warn about missing selectors of libraries (#7638)
nikpivkin Oct 3, 2024
d246401
release: v0.56.0 [main] (#7447)
aqua-bot Oct 3, 2024
cb0b3a9
feat(cli): error out when ignore file cannot be found (#7624)
sgaist Oct 3, 2024
2c87f0c
fix(db): fix javadb downloading error handling (#7642)
nikpivkin Oct 3, 2024
ab3a3b2
docs(report): Improve SARIF reporting doc (#7655)
pbaumard Oct 7, 2024
015bb88
fix(report): Fix invalid URI in SARIF report (#7645)
pbaumard Oct 7, 2024
a585e95
fix(redhat): include arch in PURL qualifiers (#7654)
knqyf263 Oct 7, 2024
fdf203c
fix(repo): `git clone` output to Stderr (#7561)
dangogh Oct 8, 2024
55b5a7e
docs(report): fix reporting doc format (#7671)
pbaumard Oct 8, 2024
1f2e91b
fix(sbom): add options for DBs in private registries (#7660)
knqyf263 Oct 9, 2024
27117f8
feat(cli): add `trivy auth` (#7664)
knqyf263 Oct 9, 2024
672e886
fix(cli): `clean --all` deletes only relevant dirs (#7704)
knqyf263 Oct 10, 2024
c78f45b
refactor(misconf): introduce generic scanner (#7515)
nikpivkin Oct 11, 2024
31aa20a
docs: apt-transport-https is a transitional package (#7678)
simondeziel Oct 14, 2024
633a7ab
feat(cli): rename `trivy auth` to `trivy registry` (#7727)
knqyf263 Oct 15, 2024
ad91412
feat(misconf): public network support for Azure Storage Account (#7601)
nikpivkin Oct 16, 2024
83e5b83
docs: add note about disabled DS016 check (#7724)
nikpivkin Oct 16, 2024
bcfc37b
test: define constants for test images (#7739)
knqyf263 Oct 16, 2024
2eaa17e
feat(misconf): ssl_mode support for GCP SQL DB instance (#7564)
nikpivkin Oct 17, 2024
9da84f5
fix(misconf): change default ACL of digitalocean_spaces_bucket to pri…
nikpivkin Oct 17, 2024
c8c14d3
fix(misconf): check if property is not nil before conversion (#7578)
nikpivkin Oct 17, 2024
778df82
fix(java): correctly inherit `version` and `scope` from upper/root `d…
DmitriyLewen Oct 17, 2024
922949a
test: use forked images (#7755)
knqyf263 Oct 17, 2024
a7baa93
feat(parser): ignore white space in pom.xml files (#7747)
sgaist Oct 17, 2024
cd44bb4
refactor(misconf): simplify k8s scanner (#7717)
nikpivkin Oct 17, 2024
35fd018
fix(misconf): fix for Azure Storage Account network acls adaptation (…
nikpivkin Oct 18, 2024
c225883
feat(cyclonedx): add file checksums to `CycloneDX` reports (#7507)
Churro Oct 18, 2024
8d5dbc9
fix(misconf): properly expand dynamic blocks (#7612)
nikpivkin Oct 19, 2024
57e24aa
fix: enable usestdlibvars linter (#7770)
mmorel-35 Oct 21, 2024
f6acdf7
fix(license): fix license normalization for Universal Permissive Lice…
pbaumard Oct 21, 2024
010b213
refactor(k8s): scan config files as a folder (#7690)
afdesk Oct 21, 2024
9514148
feat(misconf): export unresolvable field of IaC types to Rego (#7765)
nikpivkin Oct 21, 2024
f75c0d1
feat(misconf): Show misconfig ID in output (#7762)
simar7 Oct 23, 2024
c0d79fa
feat(report): update gitlab template to populate operating_system val…
aarongoldenthal Oct 24, 2024
ad3c09e
feat: add end of life date for Ubuntu 24.10 (#7787)
itsdean Oct 25, 2024
a16b830
ci(helm): auto public Helm chart after PR merged (#7526)
afdesk Oct 25, 2024
63dd3d6
docs: add Windows install instructions (#7800)
okamototk Oct 28, 2024
7a4f4d8
fix(k8s): support kubernetes v1.31 (#7810)
afdesk Oct 29, 2024
c434775
fix(k8s)!: support k8s multi container (#7444)
smtan-gl Oct 29, 2024
c70b6fa
refactor(misconf): Deprecate `EXCEPTIONS` for misconfiguration scanni…
simar7 Oct 29, 2024
6fab88d
fix(helm): properly handle multiple archived dependencies (#7782)
nikpivkin Oct 29, 2024
b661d68
fix(cli): add config name to skip-policy-update alias (#7820)
nikpivkin Oct 30, 2024
f2bb9c6
fix(sbom): use `Annotation` instead of `AttributionTexts` for `SPDX`…
DmitriyLewen Oct 30, 2024
7882776
fix(k8s): skip resources without misconfigs (#7797)
afdesk Oct 31, 2024
e872ec0
fix(go): Do not trim v prefix from versions in Go Mod Analyzer (#7733)
Rutam21 Oct 31, 2024
194d4ab
chore(deps): Bump trivy-checks (#7819)
simar7 Oct 31, 2024
7654b2e
docs: add example of creating whitelist of checks (#7821)
nikpivkin Oct 31, 2024
dc44946
docs(java): add info about supported scopes (#7842)
DmitriyLewen Oct 31, 2024
5e78b6c
feat(db): append errors (#7843)
knqyf263 Oct 31, 2024
7632625
chore: lint `errors.Join` (#7845)
knqyf263 Oct 31, 2024
efec326
release: v0.57.0 [main] (#7710)
aqua-bot Nov 1, 2024
4da59bd
chore: bump golangci-lint to v1.61.0 (#7853)
knqyf263 Nov 4, 2024
a9b557d
chore(deps): bump the github-actions group across 1 directory with 2 …
dependabot[bot] Nov 4, 2024
a6a45b3
test: save `containerd` image into archive and use in tests (#7816)
DmitriyLewen Nov 4, 2024
2529b58
refactor(secret): optimize performance by moving ToLower operation ou…
Yeatesss Nov 5, 2024
ed2288f
chore(deps): bump github.com/golang-jwt/jwt/v4 from 4.5.0 to 4.5.1 (#…
dependabot[bot] Nov 5, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
6 changes: 3 additions & 3 deletions .github/CODEOWNERS
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,8 @@ pkg/cloud/ @simar7 @nikpivkin
pkg/iac/ @simar7 @nikpivkin

# Helm chart
helm/trivy/ @chen-keinan
helm/trivy/ @afdesk

# Kubernetes scanning
pkg/k8s/ @chen-keinan
docs/docs/target/kubernetes.md @chen-keinan
pkg/k8s/ @afdesk
docs/docs/target/kubernetes.md @afdesk
2 changes: 1 addition & 1 deletion .github/DISCUSSION_TEMPLATE/bugs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ body:
label: Checklist
description: Have you tried the following?
options:
- label: Run `trivy image --reset`
- label: Run `trivy clean --all`
- label: Read [the troubleshooting](https://aquasecurity.github.io/trivy/latest/docs/references/troubleshooting/)
- type: markdown
attributes:
Expand Down
3 changes: 3 additions & 0 deletions .github/actions/trivy-triage/Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
.PHONEY: test
test: helpers.js helpers.test.js
node --test helpers.test.js
29 changes: 29 additions & 0 deletions .github/actions/trivy-triage/action.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
name: 'trivy-discussion-triage'
description: 'automatic triage of Trivy discussions'
inputs:
discussion_num:
description: 'Discussion number to triage'
required: false
runs:
using: "composite"
steps:
- name: Conditionally label discussions based on category and content
env:
GH_TOKEN: ${{ github.token }}
uses: actions/github-script@v6
with:
script: |
const {detectDiscussionLabels, fetchDiscussion, labelDiscussion } = require('${{ github.action_path }}/helpers.js');
const config = require('${{ github.action_path }}/config.json');
discussionNum = parseInt(${{ inputs.discussion_num }});
let discussion;
if (discussionNum > 0) {
discussion = (await fetchDiscussion(github, context.repo.owner, context.repo.repo, discussionNum)).repository.discussion;
} else {
discussion = context.payload.discussion;
}
const labels = detectDiscussionLabels(discussion, config.discussionLabels);
if (labels.length > 0) {
console.log(`Adding labels ${labels} to discussion ${discussion.node_id}`);
labelDiscussion(github, discussion.node_id, labels);
}
14 changes: 14 additions & 0 deletions .github/actions/trivy-triage/config.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
{
"discussionLabels": {
"Container Image":"LA_kwDOCsUTCM75TTQU",
"Filesystem":"LA_kwDOCsUTCM75TTQX",
"Git Repository":"LA_kwDOCsUTCM75TTQk",
"Virtual Machine Image":"LA_kwDOCsUTCM8AAAABMpz1bw",
"Kubernetes":"LA_kwDOCsUTCM75TTQv",
"AWS":"LA_kwDOCsUTCM8AAAABMpz1aA",
"Vulnerability":"LA_kwDOCsUTCM75TTPa",
"Misconfiguration":"LA_kwDOCsUTCM75TTP8",
"License":"LA_kwDOCsUTCM77ztRR",
"Secret":"LA_kwDOCsUTCM75TTQL"
}
}
70 changes: 70 additions & 0 deletions .github/actions/trivy-triage/helpers.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,70 @@
module.exports = {
detectDiscussionLabels: (discussion, configDiscussionLabels) => {
res = [];
const discussionId = discussion.id;
const category = discussion.category.name;
const body = discussion.body;
if (category !== "Ideas") {
console.log(`skipping discussion with category ${category} and body ${body}`);
return [];
}
const scannerPattern = /### Scanner\n\n(.+)/;
const scannerFound = body.match(scannerPattern);
if (scannerFound && scannerFound.length > 1) {
res.push(configDiscussionLabels[scannerFound[1]]);
}
const targetPattern = /### Target\n\n(.+)/;
const targetFound = body.match(targetPattern);
if (targetFound && targetFound.length > 1) {
res.push(configDiscussionLabels[targetFound[1]]);
}
return res;
},
fetchDiscussion: async (github, owner, repo, discussionNum) => {
const query = `query Discussion ($owner: String!, $repo: String!, $discussion_num: Int!){
repository(name: $repo, owner: $owner) {
discussion(number: $discussion_num) {
number,
id,
body,
category {
id,
name
},
labels(first: 100) {
edges {
node {
id,
name
}
}
}
}
}
}`;
const vars = {
owner: owner,
repo: repo,
discussion_num: discussionNum
};
return github.graphql(query, vars);
},
labelDiscussion: async (github, discussionId, labelIds) => {
const query = `mutation AddLabels($labelId: ID!, $labelableId:ID!) {
addLabelsToLabelable(
input: {labelIds: [$labelId], labelableId: $labelableId}
) {
clientMutationId
}
}`;
// TODO: add all labels in one call
labelIds.forEach((labelId) => {
const vars = {
labelId: labelId,
labelableId: discussionId
};
github.graphql(query, vars);
});
}
};

87 changes: 87 additions & 0 deletions .github/actions/trivy-triage/helpers.test.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,87 @@
const assert = require('node:assert/strict');
const { describe, it } = require('node:test');
const {detectDiscussionLabels} = require('./helpers.js');

const configDiscussionLabels = {
"Container Image":"ContainerImageLabel",
"Filesystem":"FilesystemLabel",
"Vulnerability":"VulnerabilityLabel",
"Misconfiguration":"MisconfigurationLabel",
};

describe('trivy-triage', async function() {
describe('detectDiscussionLabels', async function() {
it('detect scanner label', async function() {
const discussion = {
body: 'hello hello\nbla bla.\n### Scanner\n\nVulnerability\n### Target\n\nContainer Image\nbye bye.',
category: {
name: 'Ideas'
}
};
const labels = detectDiscussionLabels(discussion, configDiscussionLabels);
assert(labels.includes('VulnerabilityLabel'));
});
it('detect target label', async function() {
const discussion = {
body: 'hello hello\nbla bla.\n### Scanner\n\nVulnerability\n### Target\n\nContainer Image\nbye bye.',
category: {
name: 'Ideas'
}
};
const labels = detectDiscussionLabels(discussion, configDiscussionLabels);
assert(labels.includes('ContainerImageLabel'));
});
it('detect label when it is first', async function() {
const discussion = {
body: '### Scanner\n\nVulnerability\n### Target\n\nContainer Image\nbye bye.',
category: {
name: 'Ideas'
}
};
const labels = detectDiscussionLabels(discussion, configDiscussionLabels);
assert(labels.includes('ContainerImageLabel'));
});
it('detect label when it is last', async function() {
const discussion = {
body: '### Scanner\n\nVulnerability\n### Target\n\nContainer Image',
category: {
name: 'Ideas'
}
};
const labels = detectDiscussionLabels(discussion, configDiscussionLabels);
assert(labels.includes('ContainerImageLabel'));
});
it('detect scanner and target labels', async function() {
const discussion = {
body: 'hello hello\nbla bla.\n### Scanner\n\nVulnerability\n### Target\n\nContainer Image\nbye bye.',
category: {
name: 'Ideas'
}
};
const labels = detectDiscussionLabels(discussion, configDiscussionLabels);
assert(labels.includes('ContainerImageLabel'));
assert(labels.includes('VulnerabilityLabel'));
});
it('not detect other labels', async function() {
const discussion = {
body: 'hello hello\nbla bla.\n### Scanner\n\nVulnerability\n### Target\n\nContainer Image\nbye bye.',
category: {
name: 'Ideas'
}
};
const labels = detectDiscussionLabels(discussion, configDiscussionLabels);
assert(!labels.includes('FilesystemLabel'));
assert(!labels.includes('MisconfigurationLabel'));
});
it('process only relevant categories', async function() {
const discussion = {
body: 'hello world',
category: {
name: 'Announcements'
}
};
const labels = detectDiscussionLabels(discussion, configDiscussionLabels);
assert(labels.length === 0);
});
});
});
Original file line number Diff line number Diff line change
@@ -0,0 +1,65 @@
{
"active_lock_reason": null,
"answer_chosen_at": null,
"answer_chosen_by": null,
"answer_html_url": null,
"author_association": "OWNER",
"body": "### Description\n\nlfdjs lfkdj dflsakjfd ';djk \r\nfadfd \r\nasdlkf \r\na;df \r\ndfsal;kfd ;akjl\n\n### Target\n\nContainer Image\n\n### Scanner\n\nMisconfiguration",
"category": {
"created_at": "2023-07-02T10:14:46.000+03:00",
"description": "Share ideas for new features",
"emoji": ":bulb:",
"id": 39743708,
"is_answerable": false,
"name": "Ideas",
"node_id": "DIC_kwDOE0GiPM4CXnDc",
"repository_id": 323068476,
"slug": "ideas",
"updated_at": "2023-07-02T10:14:46.000+03:00"
},
"comments": 0,
"created_at": "2023-09-11T08:40:11Z",
"html_url": "https://github.com/itaysk/testactions/discussions/9",
"id": 5614504,
"locked": false,
"node_id": "D_kwDOE0GiPM4AVauo",
"number": 9,
"reactions": {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/itaysk/testactions/discussions/9/reactions"
},
"repository_url": "https://api.github.com/repos/itaysk/testactions",
"state": "open",
"state_reason": null,
"timeline_url": "https://api.github.com/repos/itaysk/testactions/discussions/9/timeline",
"title": "Title title",
"updated_at": "2023-09-11T08:40:11Z",
"user": {
"avatar_url": "https://avatars.githubusercontent.com/u/1161307?v=4",
"events_url": "https://api.github.com/users/itaysk/events{/privacy}",
"followers_url": "https://api.github.com/users/itaysk/followers",
"following_url": "https://api.github.com/users/itaysk/following{/other_user}",
"gists_url": "https://api.github.com/users/itaysk/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/itaysk",
"id": 1161307,
"login": "itaysk",
"node_id": "MDQ6VXNlcjExNjEzMDc=",
"organizations_url": "https://api.github.com/users/itaysk/orgs",
"received_events_url": "https://api.github.com/users/itaysk/received_events",
"repos_url": "https://api.github.com/users/itaysk/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/itaysk/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/itaysk/subscriptions",
"type": "User",
"url": "https://api.github.com/users/itaysk"
}
}
29 changes: 29 additions & 0 deletions .github/actions/trivy-triage/testutils/fetchDiscussion.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
#! /bin/bash
# fetch discussion by discussion number
# requires authenticated gh cli, assumes repo but current git repository
# args:
# $1: discussion number, e.g 123, required

discussion_num="$1"
gh api graphql -F discussion_num="$discussion_num" -F repo="{repo}" -F owner="{owner}" -f query='
query Discussion ($owner: String!, $repo: String!, $discussion_num: Int!){
repository(name: $repo, owner: $owner) {
discussion(number: $discussion_num) {
number,
id,
body,
category {
id,
name
},
labels(first: 100) {
edges {
node {
id,
name
}
}
}
}
}
}'
16 changes: 16 additions & 0 deletions .github/actions/trivy-triage/testutils/fetchLabels.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
#! /bin/bash
# fetch labels and their IDs
# requires authenticated gh cli, assumes repo but current git repository

gh api graphql -F repo="{repo}" -F owner="{owner}" -f query='
query GetLabelIds($owner: String!, $repo: String!) {
repository(name: $repo, owner: $owner) {
id
labels(first: 100) {
nodes {
id
name
}
}
}
}'
16 changes: 16 additions & 0 deletions .github/actions/trivy-triage/testutils/labelDiscussion.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
#! /bin/bash
# add a label to a discussion
# requires authenticated gh cli, assumes repo but current git repository
# args:
# $1: discussion ID (not number!), e.g DIC_kwDOE0GiPM4CXnDc, required
# $2: label ID, e.g. MDU6TGFiZWwzNjIzNjY0MjQ=, required
discussion_id="$1"
label_id="$2"
gh api graphql -F labelableId="$discussion_id" -F labelId="$label_id" -F repo="{repo}" -F owner="{owner}" -f query='
mutation AddLabels($labelId: ID!, $labelableId:ID!) {
addLabelsToLabelable(
input: {labelIds: [$labelId], labelableId: $labelableId}
) {
clientMutationId
}
}'
Loading
Loading