Rework check-vulnerability to leverage lock file without installing the package
- Dominant language
- Python
- Stars
- 19
- Forks
- 7
- Avg merge
- 2d 4h
- Merged PRs (30d)
- 50
Description
Given the recent changes with our way of checking the packages, I think we could update the check-vulnerability action to avoid installing packages. Previously we didn't leverage a requirement file with safety but given that's our way of working now... I think we could simply do something like
`uv export --frozen --format requirements-txt -o requirements-for-safety.txt --extra EXTRA_TARGET --no-hashes`
and the same is probably available in poetry.
This might require some thoughts to align with the `skip-install` input logic.
Contributor guide
Research direction
Start by locating the check-vulnerability action and its skip-install input, then review the current package-checking flow. Compare exporting a frozen requirements file with the uv command shown and the equivalent Poetry workflow, including EXTRA_TARGET and --no-hashes. Done means vulnerability checks use the lock-file-derived requirements without installing packages and the skip-install behavior remains coherent.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- github-actions, python
- Domain
- ci-cd, tooling
- Issue type
- Refactor
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Active
- Clarity
- Mostly clear
- Newbie friendliness
- 48/100