You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The contents of settings.xml can be interpolated using the following expressions: ${user.home} and all other system properties ${env.HOME} etc. for environment variables
kind/featureCategorizes issue or PR as related to a new feature.target/filesystemIssues relating to filesystem scanning
1 participant
Heading
Bold
Italic
Quote
Code
Link
Numbered list
Unordered list
Task list
Attach files
Mention
Reference
Menu
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Description
Trivy's maven settings.xml parser currently does not support environment variable interpolation.
As documented at https://maven.apache.org/settings.html
For example, when given this
settings.xml
:Currently, Trivy uses the username
env.USERNAME
when it should use whatever the value of the environment variableUSERNAME
is.I believe https://github.com/aquasecurity/trivy/blob/v0.53.0/pkg/dependency/parser/java/pom/settings.go is where the change would be made.
Target
Filesystem
Scanner
None
Beta Was this translation helpful? Give feedback.
All reactions