-
Notifications
You must be signed in to change notification settings - Fork 2.4k
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
feat(java): add support licenses and graph for gradle lock files #6140
Merged
knqyf263
merged 31 commits into
aquasecurity:main
from
DmitriyLewen:feat-gradle/license-support
Mar 19, 2024
Merged
Changes from all commits
Commits
Show all changes
31 commits
Select commit
Hold shift + click to select a range
7e6fe52
feat(gradle): check cache dir to get licenses
DmitriyLewen cc404bd
refactor: move gradleLockAnalyzer to PostAnalyzer
DmitriyLewen b7cfa38
refactor
DmitriyLewen 26a51b0
refactor: move pom struct to `types.go`
DmitriyLewen 5111f89
fix linter errors
DmitriyLewen d46a093
test: update tests
DmitriyLewen bd66906
feat: add dependencies for pom
DmitriyLewen 4ccc955
feat: fill DependsOn from poms
DmitriyLewen 4f31a54
refactor
DmitriyLewen 460a0fa
chore(deps): go.mod tidy
DmitriyLewen 5679b16
Merge branch 'main' into 'feat-gradle/license-support)'
DmitriyLewen ef7273f
refactor: move pom logic from types.go to pom.go
DmitriyLewen 3360c81
test: add pom tests
DmitriyLewen 346acbd
feat: add parser for build.gradle
DmitriyLewen 073048b
add test for parsing build.gradle
DmitriyLewen 6726c42
feat: add build.gradle logic to lock file
DmitriyLewen cd6be51
add tests
DmitriyLewen b450dbb
feat: add support of build.gradle.kts files
DmitriyLewen ebeb37a
test: add empty test for build.gradle
DmitriyLewen 55d3b96
add support of single line "dependencies"
DmitriyLewen a75068a
fix linter error
DmitriyLewen 0cf9360
Merge branch 'main' into 'feat-gradle/license-support'
DmitriyLewen 8d71b35
docs(java): add info about cache dir and build.gradle files
DmitriyLewen 76f78a8
refactor
DmitriyLewen 580f12d
feat(build.gradle): add excludes support
DmitriyLewen 46d0105
refactor: remove logic for `build.gradle`
DmitriyLewen 2845964
refactor(parser): mark all dependencies as Indirect
DmitriyLewen 1cd367f
refactor: remove unused variables
DmitriyLewen c081e1b
docs: add gradle.lockfile to dependency tree support
DmitriyLewen 7a378b0
Merge branch 'main' of github.com:DmitriyLewen/trivy into feat-gradle…
DmitriyLewen 81d500b
fix import
DmitriyLewen File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I see a second way:
we can mark Gradle dependencies as indirect when before building the dependency tree -
trivy/pkg/report/table/vulnerability.go
Line 210 in 8221473