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

chore: merge upstream v0.59.0 #8

Open
wants to merge 85 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
85 commits
Select commit Hold shift + click to select a range
775f954
docs: add commercial content (#8030)
itaysk Dec 3, 2024
07b2d7f
fix(misconf): use log instead of fmt for logging (#8033)
nikpivkin Dec 4, 2024
71391a5
chore(deps): bump github.com/moby/buildkit from 0.17.2 to 0.18.0 in t…
dependabot[bot] Dec 4, 2024
21b68e1
fix: respect GITHUB_TOKEN to download artifacts from GHCR (#7580)
knqyf263 Dec 4, 2024
1feb81c
ci(helm): bump Trivy version to 0.58.0 for Trivy Helm Chart 0.10.0 (#…
aqua-bot Dec 5, 2024
7389961
feat(nodejs): respect peer dependencies for dependency tree (#7989)
knqyf263 Dec 5, 2024
9d9f80d
fix(java): correctly overwrite version from depManagement if dependen…
DmitriyLewen Dec 5, 2024
5e68bdc
fix(flag): skip hidden flags for `--generate-default-config` command …
DmitriyLewen Dec 5, 2024
fd07074
fix(sbom): fix wrong overwriting of applications obtained from differ…
DmitriyLewen Dec 5, 2024
ffe24e1
feat(misconf): generate placeholders for random provider resources (#…
nikpivkin Dec 6, 2024
51f2123
fix: handle `BLOW_UNKNOWN` error to download DBs (#8060)
DmitriyLewen Dec 6, 2024
90f1d8d
fix(oracle): add architectures support for advisories (#4809)
DmitriyLewen Dec 9, 2024
da17dc7
feat: add `--distro` flag to manually specify OS distribution for vul…
knqyf263 Dec 9, 2024
11dbf54
docs(k8s): add a note about multi-container pods (#7815)
afdesk Dec 9, 2024
2c41ac8
fix: Updated twitter icon (#7772)
sarthak-kumar-shailendra Dec 9, 2024
9bd6ed7
perf: avoid heap allocation in applier findPackage (#7883)
jinroh Dec 9, 2024
e8b31bf
chore(deps): bump the aws group across 1 directory with 6 updates (#8…
dependabot[bot] Dec 9, 2024
156a2aa
fix: enable err-error and errorf rules from perfsprint linter (#7859)
mmorel-35 Dec 10, 2024
4202c4b
fix(redhat): correct rewriting of recommendations for the same vulner…
DmitriyLewen Dec 10, 2024
f9fceb5
fix(sbom): scan results of SBOMs generated from container images are …
fabriziosestito Dec 11, 2024
f5e4291
fix(license): always trim leading and trailing spaces for licenses (#…
DmitriyLewen Dec 13, 2024
328db73
chore(vex): suppress CVE-2024-45337 (#8101)
knqyf263 Dec 16, 2024
d7ac286
fix: CVE-2024-45337: Misuse of ServerConfig.PublicKeyCallback may cau…
jdesouza Dec 16, 2024
2200f38
fix: wasm module test (#8099)
itaysk Dec 16, 2024
e7507f0
chore(deps): bump golang.org/x/crypto from 0.30.0 to 0.31.0 (#8103)
dependabot[bot] Dec 16, 2024
f0b3a99
chore(deps): bump `github.com/CycloneDX/cyclonedx-go` from `v0.9.1` t…
DmitriyLewen Dec 16, 2024
17827db
test: set dummy value for NUGET_PACKAGES (#8107)
nikpivkin Dec 16, 2024
e79e73d
chore: bump go to 1.23.4 (#8123)
nikpivkin Dec 18, 2024
dcf28a1
chore(deps): bump the common group across 1 directory with 14 updates…
dependabot[bot] Dec 18, 2024
49f3540
chore(deps): bump the docker group across 1 directory with 3 updates …
dependabot[bot] Dec 18, 2024
c4a4a5f
feat(python): add support for uv (#8080)
nikpivkin Dec 19, 2024
95f7a56
chore(vex): suppress CVE-2024-45338 (#8137)
knqyf263 Dec 20, 2024
30c7cb1
chore(deps): bump `golang.org/x/net` from `v0.32.0` to `v0.33.0` (#8140)
DmitriyLewen Dec 20, 2024
7558df7
fix(sbom): use root package for `unknown` dependencies (if exists) (#…
DmitriyLewen Dec 23, 2024
a034d26
fix(python): skip dev group's deps for poetry (#8106)
nikpivkin Dec 23, 2024
e6d0ba5
chore(deps): bump the aws group across 1 directory with 6 updates (#8…
dependabot[bot] Dec 23, 2024
b5859d3
refactor: add generic Set implementation (#8149)
knqyf263 Dec 24, 2024
9fd5cc5
docs(vex): use debian minor version in examples (#8166)
DmitriyLewen Dec 24, 2024
735335f
fix(sbom): attach nested packages to Application (#8144)
DmitriyLewen Dec 24, 2024
774e04d
feat(python): add support for poetry dev dependencies (#8152)
nikpivkin Dec 24, 2024
49c54b4
feat(python): add support for uv dev and optional dependencies (#8134)
nikpivkin Dec 24, 2024
eedefdd
chore(deps): bump the common group with 6 updates (#8162)
dependabot[bot] Dec 24, 2024
03db7fc
refactor: use slices package instead of custom function (#8172)
nikpivkin Dec 25, 2024
4f111b9
refactor(python): use once + debug for `License acquired from METADAT…
DmitriyLewen Dec 25, 2024
e8085ba
docs: Updated JSON schema version 2 in the trivy documentation (#8188)
amitverse Dec 28, 2024
70f3faa
chore: remove aws iam related scripts (#8179)
nikpivkin Jan 2, 2025
bbc5a85
fix(misconf): disable git terminal prompt on tf module load (#8026)
nikpivkin Jan 3, 2025
670fbf2
fix: CVE-2025-21613 and CVE-2025-21614 : go-git: argument injection v…
jdesouza Jan 8, 2025
f9a6a71
chore(alpine): add EOL date for Alpine 3.21 (#8221)
chrisnovakovic Jan 9, 2025
f352f6b
fix(redhat): check `usr/share/buildinfo/` dir to detect content sets …
DmitriyLewen Jan 9, 2025
a0429f7
feat(misconf): support for ignoring by inline comments for Helm (#8138)
nikpivkin Jan 10, 2025
23dc3a6
fix(misconf): allow null values only for tf variables (#8112)
nikpivkin Jan 10, 2025
0aa2607
ci(helm): bump Trivy version to 0.58.1 for Trivy Helm Chart 0.10.0 (#…
aqua-bot Jan 10, 2025
243e5a3
refactor: use trivy-checks/pkg/specs package (#8226)
nikpivkin Jan 11, 2025
ca41a28
chore(secret): add reported issues related to secrets in junit templa…
fabiogermann Jan 13, 2025
92697c7
ci: fix path to main dir for canary builds (#8231)
DmitriyLewen Jan 13, 2025
ae28398
fix(suse): SUSE - update OSType constants and references for compatil…
DmitriyLewen Jan 13, 2025
011012a
ci: add workflow to restrict direct PRs to release branches (#8240)
knqyf263 Jan 14, 2025
4f77e01
chore(deps): bump alpine from 3.20.0 to 3.21.0 in the docker group ac…
dependabot[bot] Jan 16, 2025
6d84e0c
feat: add a examples field to check metadata (#8068)
nikpivkin Jan 17, 2025
c002327
feat(misconf): support for ignoring by inline comments for Dockerfile…
nikpivkin Jan 20, 2025
2d30dd7
refactor(license): improve license expression normalization (#8257)
knqyf263 Jan 21, 2025
2acd8e3
chore(deps): bump the common group across 1 directory with 29 updates…
dependabot[bot] Jan 21, 2025
4316bcb
feat: add support for registry mirrors (#8244)
DmitriyLewen Jan 22, 2025
f12054e
fix(misconf): correctly handle all YAML tags in K8S templates (#8259)
nikpivkin Jan 23, 2025
eafd810
fix(fs): fix cache key generation to use UUID (#8275)
knqyf263 Jan 23, 2025
cc66d6d
chore(deps): use aqua forks for `github.com/liamg/jfather` and `githu…
DmitriyLewen Jan 24, 2025
509e030
feat(image): prevent scanning oversized container images (#8178)
nikpivkin Jan 27, 2025
715575d
chore: use require.ErrorContains when possible (#8291)
mmorel-35 Jan 27, 2025
aec8885
fix(spdx): use the `hasExtractedLicensingInfos` field for licenses th…
DmitriyLewen Jan 27, 2025
b5062f3
feat(fs): use git commit hash as cache key for clean repositories (#8…
knqyf263 Jan 27, 2025
60491f8
chore: enable int-conversion from perfsprint (#8194)
mmorel-35 Jan 27, 2025
13fe2ee
chore(deps): bump the common group with 12 updates (#8301)
dependabot[bot] Jan 28, 2025
d749b62
chore(deps): bump the aws group with 7 updates (#8299)
dependabot[bot] Jan 28, 2025
846498d
fix: de-duplicate same `dpkg` packages with different filePaths from …
DmitriyLewen Jan 28, 2025
0a3887c
fix(misconf): handle heredocs in dockerfile instructions (#8284)
nikpivkin Jan 29, 2025
da7bba9
chore: update code owners (#8303)
knqyf263 Jan 29, 2025
db9e57a
feat(k8s): improve artifact selections for specific namespaces (#8248)
afdesk Jan 29, 2025
f258fd5
docs: replace short codes with Unicode emojis (#8296)
nikpivkin Jan 29, 2025
2e8e38a
fix: improve conversion of image config to Dockerfile (#8308)
nikpivkin Jan 29, 2025
87f3751
chore(terraform): add accessors to underlying raw hcl values (#8306)
Emyrk Jan 30, 2025
0031a38
chore(deps): Bump trivy-checks (#8310)
simar7 Jan 30, 2025
73bd20d
feat(image): return error early if total size of layers exceeds limit…
nikpivkin Jan 30, 2025
a58d685
release: v0.59.0 [main] (#8041)
aqua-bot Jan 30, 2025
369a4d4
Merge tag 'v0.59.0' into ajk/chore/merge-upstream-0.59.0
ajkerrigan Feb 5, 2025
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/ @afdesk
helm/trivy/ @afdesk @simar7

# Kubernetes scanning
pkg/k8s/ @afdesk
docs/docs/target/kubernetes.md @afdesk
pkg/k8s/ @afdesk @simar7
docs/docs/target/kubernetes.md @afdesk @simar7
2 changes: 1 addition & 1 deletion .github/workflows/auto-update-labels.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ on:
branches:
- main
env:
GO_VERSION: '1.22'
GO_VERSION: '1.23'
jobs:
deploy:
name: Auto-update labels
Expand Down
19 changes: 19 additions & 0 deletions .github/workflows/release-pr-check.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
name: Backport PR Check

on:
pull_request:
branches:
- 'release/v*'

jobs:
check-pr-author:
runs-on: ubuntu-latest
steps:
- name: Check PR author
id: check_author
run: |
if [ "${{ github.actor }}" != "aqua-bot" ]; then
echo "::error::This branch is intended for automated backporting by bot. Please refer to the documentation:"
echo "::error::https://trivy.dev/latest/community/maintainer/backporting/"
exit 1
fi
2 changes: 1 addition & 1 deletion .github/workflows/reusable-release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ on:

env:
GH_USER: "aqua-bot"
GO_VERSION: '1.22'
GO_VERSION: '1.23'

jobs:
release:
Expand Down
33 changes: 33 additions & 0 deletions .github/workflows/spdx-cron.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
name: SPDX licenses cron
on:
schedule:
- cron: '0 0 * * 0' # every Sunday at 00:00
workflow_dispatch:

jobs:
build:
name: Check if SPDX exceptions
runs-on: ubuntu-24.04
steps:
- name: Check out code
uses: actions/[email protected]

- name: Check if SPDX exceptions are up-to-date
run: |
mage spdx:updateLicenseExceptions
if [ -n "$(git status --porcelain)" ]; then
echo "Run 'mage spdx:updateLicenseExceptions' and push it"
exit 1
fi

- name: Microsoft Teams Notification
## Until the PR with the fix for the AdaptivCard version is merged yet
## https://github.com/Skitionek/notify-microsoft-teams/pull/96
## Use the aquasecurity fork
uses: aquasecurity/notify-microsoft-teams@master
if: failure()
with:
webhook_url: ${{ secrets.TRIVY_MSTEAMS_WEBHOOK }}
needs: ${{ toJson(needs) }}
job: ${{ toJson(job) }}
steps: ${{ toJson(steps) }}
2 changes: 1 addition & 1 deletion .github/workflows/test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ on:
workflow_dispatch:

env:
GO_VERSION: '1.22'
GO_VERSION: '1.23'
jobs:
test:
name: Test
Expand Down
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ thumbs.db
coverage.txt
integration/testdata/fixtures/images
integration/testdata/fixtures/vm-images
internal/gittest/testdata/test-repo

# SBOMs generated during CI
/bom.json
Expand Down
17 changes: 16 additions & 1 deletion .golangci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,17 @@ linters-settings:
- licence
- optimise
- simmilar
perfsprint:
# Optimizes even if it requires an int or uint type cast.
int-conversion: true
# Optimizes into `err.Error()` even if it is only equivalent for non-nil errors.
err-error: true
# Optimizes `fmt.Errorf`.
errorf: true
# Optimizes `fmt.Sprintf` with only one argument.
sprintf1: false
# Optimizes into strings concatenation.
strconcat: false
revive:
ignore-generated-header: true
testifylint:
Expand All @@ -100,6 +111,7 @@ linters:
- govet
- ineffassign
- misspell
- perfsprint
- revive
- tenv
- testifylint
Expand All @@ -109,7 +121,7 @@ linters:
- usestdlibvars

run:
go: '1.22'
go: '1.23'
timeout: 30m

issues:
Expand Down Expand Up @@ -140,5 +152,8 @@ issues:
linters:
- gocritic
text: "importShadow:"
- linters:
- perfsprint
text: "fmt.Sprint"
exclude-use-default: false
max-same-issues: 0
2 changes: 1 addition & 1 deletion .release-please-manifest.json
Original file line number Diff line number Diff line change
@@ -1 +1 @@
{".":"0.58.0"}
{".":"0.59.0"}
59 changes: 59 additions & 0 deletions .vex/trivy.openvex.json
Original file line number Diff line number Diff line change
Expand Up @@ -540,6 +540,65 @@
"status": "not_affected",
"justification": "vulnerable_code_not_in_execute_path",
"impact_statement": "Govulncheck determined that the vulnerable code isn't called"
},
{
"vulnerability": {
"@id": "https://pkg.go.dev/vuln/GO-2024-3321",
"name": "GO-2024-3321",
"description": "Misuse of ServerConfig.PublicKeyCallback may cause authorization bypass in golang.org/x/crypto",
"aliases": [
"CVE-2024-45337",
"GHSA-v778-237x-gjrc"
]
},
"products": [
{
"@id": "pkg:golang/github.com/aquasecurity/trivy",
"identifiers": {
"purl": "pkg:golang/github.com/aquasecurity/trivy"
},
"subcomponents": [
{
"@id": "pkg:golang/golang.org/x/crypto",
"identifiers": {
"purl": "pkg:golang/golang.org/x/crypto"
}
}
]
}
],
"status": "not_affected",
"justification": "vulnerable_code_not_in_execute_path",
"impact_statement": "Govulncheck determined that the vulnerable code isn't called"
},
{
"vulnerability": {
"@id": "https://pkg.go.dev/vuln/GO-2024-3333",
"name": "GO-2024-3333",
"description": "Non-linear parsing of case-insensitive content in golang.org/x/net/html",
"aliases": [
"CVE-2024-45338"
]
},
"products": [
{
"@id": "pkg:golang/github.com/aquasecurity/trivy",
"identifiers": {
"purl": "pkg:golang/github.com/aquasecurity/trivy"
},
"subcomponents": [
{
"@id": "pkg:golang/golang.org/x/net",
"identifiers": {
"purl": "pkg:golang/golang.org/x/net"
}
}
]
}
],
"status": "not_affected",
"justification": "vulnerable_code_not_in_execute_path",
"impact_statement": "Govulncheck determined that the vulnerable code isn't called"
}
]
}
57 changes: 57 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,62 @@
# Changelog

## [0.59.0](https://github.com/aquasecurity/trivy/compare/v0.58.0...v0.59.0) (2025-01-30)


### Features

* add `--distro` flag to manually specify OS distribution for vulnerability scanning ([#8070](https://github.com/aquasecurity/trivy/issues/8070)) ([da17dc7](https://github.com/aquasecurity/trivy/commit/da17dc72782cd68b5d2c4314a67936343462b75e))
* add a examples field to check metadata ([#8068](https://github.com/aquasecurity/trivy/issues/8068)) ([6d84e0c](https://github.com/aquasecurity/trivy/commit/6d84e0cc0d48ae5c490cad868bb4e5e76392241c))
* add support for registry mirrors ([#8244](https://github.com/aquasecurity/trivy/issues/8244)) ([4316bcb](https://github.com/aquasecurity/trivy/commit/4316bcbc5b9038eed21214a826981c49696bb27f))
* **fs:** use git commit hash as cache key for clean repositories ([#8278](https://github.com/aquasecurity/trivy/issues/8278)) ([b5062f3](https://github.com/aquasecurity/trivy/commit/b5062f3ae20044d1452bf293f210a24cd1d419b3))
* **image:** prevent scanning oversized container images ([#8178](https://github.com/aquasecurity/trivy/issues/8178)) ([509e030](https://github.com/aquasecurity/trivy/commit/509e03030c36d17f9427ab50a4e99fb1846ba65a))
* **image:** return error early if total size of layers exceeds limit ([#8294](https://github.com/aquasecurity/trivy/issues/8294)) ([73bd20d](https://github.com/aquasecurity/trivy/commit/73bd20d6199a777d1ed7eb560e0184d8f1b4b550))
* **k8s:** improve artifact selections for specific namespaces ([#8248](https://github.com/aquasecurity/trivy/issues/8248)) ([db9e57a](https://github.com/aquasecurity/trivy/commit/db9e57a34e460ac6934ee21dffaa2322db9fd56b))
* **misconf:** generate placeholders for random provider resources ([#8051](https://github.com/aquasecurity/trivy/issues/8051)) ([ffe24e1](https://github.com/aquasecurity/trivy/commit/ffe24e18dc3dca816ec9ce5ccf66d5d7b5ea70d6))
* **misconf:** support for ignoring by inline comments for Dockerfile ([#8115](https://github.com/aquasecurity/trivy/issues/8115)) ([c002327](https://github.com/aquasecurity/trivy/commit/c00232720a89df659c6cd0b56d99304d5ffea1a7))
* **misconf:** support for ignoring by inline comments for Helm ([#8138](https://github.com/aquasecurity/trivy/issues/8138)) ([a0429f7](https://github.com/aquasecurity/trivy/commit/a0429f773b4f696fc613d91f1600cd0da38fb2c8))
* **nodejs:** respect peer dependencies for dependency tree ([#7989](https://github.com/aquasecurity/trivy/issues/7989)) ([7389961](https://github.com/aquasecurity/trivy/commit/73899610e8eece670d2e5ddc1478fcc0a2a5760d))
* **python:** add support for poetry dev dependencies ([#8152](https://github.com/aquasecurity/trivy/issues/8152)) ([774e04d](https://github.com/aquasecurity/trivy/commit/774e04d19dc2067725ac2e18ca871872f74082ab))
* **python:** add support for uv ([#8080](https://github.com/aquasecurity/trivy/issues/8080)) ([c4a4a5f](https://github.com/aquasecurity/trivy/commit/c4a4a5fa971d73ae924afcf2259631f15e96e520))
* **python:** add support for uv dev and optional dependencies ([#8134](https://github.com/aquasecurity/trivy/issues/8134)) ([49c54b4](https://github.com/aquasecurity/trivy/commit/49c54b49c6563590dd82007d52e425a7a4e07ac0))


### Bug Fixes

* CVE-2024-45337: Misuse of ServerConfig.PublicKeyCallback may cause authorization bypass ([#8088](https://github.com/aquasecurity/trivy/issues/8088)) ([d7ac286](https://github.com/aquasecurity/trivy/commit/d7ac286085077c969734225a789e6cc056d5c5f5))
* CVE-2025-21613 and CVE-2025-21614 : go-git: argument injection via the URL field ([#8207](https://github.com/aquasecurity/trivy/issues/8207)) ([670fbf2](https://github.com/aquasecurity/trivy/commit/670fbf2d81ea20ea691a86e4ed25a7454baf08e5))
* de-duplicate same `dpkg` packages with different filePaths from different layers ([#8298](https://github.com/aquasecurity/trivy/issues/8298)) ([846498d](https://github.com/aquasecurity/trivy/commit/846498dd23a80531881f803147077eee19004a50))
* enable err-error and errorf rules from perfsprint linter ([#7859](https://github.com/aquasecurity/trivy/issues/7859)) ([156a2aa](https://github.com/aquasecurity/trivy/commit/156a2aa4c49386828c0446f8978473c8da7a8754))
* **flag:** skip hidden flags for `--generate-default-config` command ([#8046](https://github.com/aquasecurity/trivy/issues/8046)) ([5e68bdc](https://github.com/aquasecurity/trivy/commit/5e68bdc9d08f96d22451d7b5dd93e79ca576eeb7))
* **fs:** fix cache key generation to use UUID ([#8275](https://github.com/aquasecurity/trivy/issues/8275)) ([eafd810](https://github.com/aquasecurity/trivy/commit/eafd810d7cb366215efbd0ab3b72c4651d31c6a6))
* handle `BLOW_UNKNOWN` error to download DBs ([#8060](https://github.com/aquasecurity/trivy/issues/8060)) ([51f2123](https://github.com/aquasecurity/trivy/commit/51f2123c5ccc4f7a37d1068830b6670b4ccf9ac8))
* improve conversion of image config to Dockerfile ([#8308](https://github.com/aquasecurity/trivy/issues/8308)) ([2e8e38a](https://github.com/aquasecurity/trivy/commit/2e8e38a8c094f3392893693ab15a605ab0d378f9))
* **java:** correctly overwrite version from depManagement if dependency uses `project.*` props ([#8050](https://github.com/aquasecurity/trivy/issues/8050)) ([9d9f80d](https://github.com/aquasecurity/trivy/commit/9d9f80d9791f38a0b4c727152166ae4d237a83a9))
* **license:** always trim leading and trailing spaces for licenses ([#8095](https://github.com/aquasecurity/trivy/issues/8095)) ([f5e4291](https://github.com/aquasecurity/trivy/commit/f5e429179df1637de96962ab9c19e4336056bb5d))
* **misconf:** allow null values only for tf variables ([#8112](https://github.com/aquasecurity/trivy/issues/8112)) ([23dc3a6](https://github.com/aquasecurity/trivy/commit/23dc3a67535b7458728b2939514a96bd3de3aa81))
* **misconf:** correctly handle all YAML tags in K8S templates ([#8259](https://github.com/aquasecurity/trivy/issues/8259)) ([f12054e](https://github.com/aquasecurity/trivy/commit/f12054e669f9df93c6322ba2755036dbccacaa83))
* **misconf:** disable git terminal prompt on tf module load ([#8026](https://github.com/aquasecurity/trivy/issues/8026)) ([bbc5a85](https://github.com/aquasecurity/trivy/commit/bbc5a85444ec86b7bb26d6db27803d199431a8e6))
* **misconf:** handle heredocs in dockerfile instructions ([#8284](https://github.com/aquasecurity/trivy/issues/8284)) ([0a3887c](https://github.com/aquasecurity/trivy/commit/0a3887ca0350d7dabf5db7e08aaf8152201fdf0d))
* **misconf:** use log instead of fmt for logging ([#8033](https://github.com/aquasecurity/trivy/issues/8033)) ([07b2d7f](https://github.com/aquasecurity/trivy/commit/07b2d7fbd7f8ef5473c2438c560fffc8bdadf913))
* **oracle:** add architectures support for advisories ([#4809](https://github.com/aquasecurity/trivy/issues/4809)) ([90f1d8d](https://github.com/aquasecurity/trivy/commit/90f1d8d78aa20b47fafab2c8ecb07247f075ef45))
* **python:** skip dev group's deps for poetry ([#8106](https://github.com/aquasecurity/trivy/issues/8106)) ([a034d26](https://github.com/aquasecurity/trivy/commit/a034d26443704601c1fe330a5cc1f019f6974524))
* **redhat:** check `usr/share/buildinfo/` dir to detect content sets ([#8222](https://github.com/aquasecurity/trivy/issues/8222)) ([f352f6b](https://github.com/aquasecurity/trivy/commit/f352f6b66355fe3636c9e4e9f3edd089c551a81c))
* **redhat:** correct rewriting of recommendations for the same vulnerability ([#8063](https://github.com/aquasecurity/trivy/issues/8063)) ([4202c4b](https://github.com/aquasecurity/trivy/commit/4202c4ba0d8fcff4b89499fe03050ef4efd37330))
* respect GITHUB_TOKEN to download artifacts from GHCR ([#7580](https://github.com/aquasecurity/trivy/issues/7580)) ([21b68e1](https://github.com/aquasecurity/trivy/commit/21b68e18188f91935ac1055a78ee97a7f35a110d))
* **sbom:** attach nested packages to Application ([#8144](https://github.com/aquasecurity/trivy/issues/8144)) ([735335f](https://github.com/aquasecurity/trivy/commit/735335f08f84936f3928cbbc3eb71af3a3a4918d))
* **sbom:** fix wrong overwriting of applications obtained from different sbom files but having same app type ([#8052](https://github.com/aquasecurity/trivy/issues/8052)) ([fd07074](https://github.com/aquasecurity/trivy/commit/fd07074e8033530eee2732193b00e59f27c73096))
* **sbom:** scan results of SBOMs generated from container images are missing layers ([#7635](https://github.com/aquasecurity/trivy/issues/7635)) ([f9fceb5](https://github.com/aquasecurity/trivy/commit/f9fceb58bf64657dee92302df1ed97e597e474c9))
* **sbom:** use root package for `unknown` dependencies (if exists) ([#8104](https://github.com/aquasecurity/trivy/issues/8104)) ([7558df7](https://github.com/aquasecurity/trivy/commit/7558df7c227c769235e5441fbdd3f9f7efb1ff84))
* **spdx:** use the `hasExtractedLicensingInfos` field for licenses that are not listed in the SPDX ([#8077](https://github.com/aquasecurity/trivy/issues/8077)) ([aec8885](https://github.com/aquasecurity/trivy/commit/aec8885bc7f7e3c5a2a68214dca9aff28accd122))
* **suse:** SUSE - update OSType constants and references for compatility ([#8236](https://github.com/aquasecurity/trivy/issues/8236)) ([ae28398](https://github.com/aquasecurity/trivy/commit/ae283985c926ca828b25b69ad0338008be31e5fe))
* Updated twitter icon ([#7772](https://github.com/aquasecurity/trivy/issues/7772)) ([2c41ac8](https://github.com/aquasecurity/trivy/commit/2c41ac83a95e9347605d36f483171a60ffce0fa2))
* wasm module test ([#8099](https://github.com/aquasecurity/trivy/issues/8099)) ([2200f38](https://github.com/aquasecurity/trivy/commit/2200f3846d675c64ab9302af43224d663a67c944))


### Performance Improvements

* avoid heap allocation in applier findPackage ([#7883](https://github.com/aquasecurity/trivy/issues/7883)) ([9bd6ed7](https://github.com/aquasecurity/trivy/commit/9bd6ed73e5d49d52856c76124e84c268475c5456))

## [0.58.0](https://github.com/aquasecurity/trivy/compare/v0.57.0...v0.58.0) (2024-12-02)


Expand Down
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM alpine:3.20.3
FROM alpine:3.21.0
RUN apk --no-cache add ca-certificates git
COPY trivy /usr/local/bin/trivy
COPY contrib/*.tpl contrib/
Expand Down
2 changes: 1 addition & 1 deletion Dockerfile.canary
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM alpine:3.20.0
FROM alpine:3.21.0
RUN apk --no-cache add ca-certificates git

# binaries were created with GoReleaser
Expand Down
2 changes: 1 addition & 1 deletion Dockerfile.protoc
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM --platform=linux/amd64 golang:1.22
FROM --platform=linux/amd64 golang:1.23

# Set environment variable for protoc
ENV PROTOC_ZIP=protoc-3.19.4-linux-x86_64.zip
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ trivy k8s --report summary cluster
## Want more? Check out Aqua

If you liked Trivy, you will love Aqua which builds on top of Trivy to provide even more enhanced capabilities for a complete security management offering.
You can find a high level comparison table specific to Trivy users [here](https://github.com/aquasecurity/resources/blob/main/trivy-aqua.md).
You can find a high level comparison table specific to Trivy users [here](https://trivy.dev/commercial/comparison).
In addition check out the <https://aquasec.com> website for more information about our products and services.
If you'd like to contact Aqua or request a demo, please use this form: <https://www.aquasec.com/demo>

Expand Down
2 changes: 1 addition & 1 deletion aqua.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,6 @@ registries:
- type: standard
ref: v3.157.0 # renovate: depName=aquaproj/aqua-registry
packages:
- name: tinygo-org/tinygo@v0.31.1
- name: tinygo-org/tinygo@v0.33.0
- name: WebAssembly/binaryen@version_112
- name: magefile/[email protected]
6 changes: 6 additions & 0 deletions cmd/trivy/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,12 @@ func main() {
if errors.As(err, &exitError) {
os.Exit(exitError.Code)
}

var userErr *types.UserError
if errors.As(err, &userErr) {
log.Fatal("Error", log.Err(userErr))
}

log.Fatal("Fatal error", log.Err(err))
}
}
Expand Down
10 changes: 10 additions & 0 deletions contrib/junit.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -44,5 +44,15 @@
</testsuite>
{{- end }}

{{- if .Secrets }}
{{- $secrets := len .Secrets }}
<testsuite tests="{{ $secrets }}" failures="{{ $secrets }}" name="{{ .Target }}" time="0">{{ range .Secrets }}
<testcase classname="{{ .RuleID }}" name="[{{ .Severity }}] {{ .Title }}">
<failure message="{{ .Title }}" type="description">{{ escapeXML .Match }}</failure>
</testcase>
{{- end }}
</testsuite>
{{- end }}

{{- end }}
</testsuites>
Loading
Loading