Skip to content

chore: update OSV-Scanner to v2.0.2 #397

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

Merged
merged 1 commit into from
May 7, 2025

Conversation

bestbeforetoday
Copy link
Contributor

Also add a Makefile to allow vulnerability scans of dependencies to be run locally more easily.

  • make scan to scan all components.
  • make component=core scan to scan only the core component.
  • make clean to remove Gradle lockfiles used for scans.

Also add a Makefile to allow vulnerability scans of dependencies to be
run locally more easily.

- `make scan` to scan all components.
- `make component=core scan` to scan only the core component.
- `make clean` to remove Gradle lockfiles used for scans.

Signed-off-by: Mark S. Lewis <Mark.S.Lewis@outlook.com>
@bestbeforetoday bestbeforetoday marked this pull request as ready for review May 2, 2025 18:10
Copy link
Member

@vbarua vbarua left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Changes look great! Did leave one question, mostly because I want to piggyback off of your work and add new targets later.


.PHONY: clean
clean:
find . -depth 2 -type f -name gradle.lockfile -delete -print
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I really like using Makefiles for stuff like this 🔧

This makes me want to add (in the future) targets like make build, make test and make format to invoke Gradle as it makes it easier for new contributors to run the codebase for the first time. When we do that, I would also want to have make clean invoke ./gradlew clean. Would that cause any issues for your work here?

Copy link
Contributor Author

@bestbeforetoday bestbeforetoday May 7, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not at all. It sounds like a great idea to me. If you wanted to keep the Makefile targets more granular as it is extended, the clean target in this change could be renamed to scan-clean (or clean-scan), and the (new) clean target could depend on scan-clean.

@vbarua vbarua merged commit 3478802 into substrait-io:main May 7, 2025
12 checks passed
@bestbeforetoday bestbeforetoday deleted the osv-scanner branch May 7, 2025 13:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants