Repository navigation
fix(check-vulnerabilities): avoid direct-URL requirements crashing safety - #1646
Merged
Merged
Conversation
RobPasMue
requested review from
AlejandroFernandezLuces,
MaxJPRey,
jorgepiloto and
moe-ad
November 3, 2026 09:49
Member
Author
|
The bug itself is not directly on us.. it is more on the |
Member
Author
|
@moe-ad - consider merging this and patch releasing if possible |
SMoraisAnsys
approved these changes
Nov 3, 2026
moe-ad
approved these changes
Nov 3, 2026
moe-ad
pushed a commit
that referenced
this pull request
Nov 3, 2026
…fety (#1646) Co-authored-by: pyansys-ci-bot <[email protected]>
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Problem
check-vulnerabilitiesfails with:Seen in ansys/ansys-tools-common (e.g. https://github.com/ansys/ansys-tools-common/actions/runs/41602389379).
Root cause
The action force-reinstalls pip from a direct URL in the project venv, so
uv pip freeze/pip freezewrites:safety check(3.8.1) crashes with the error above when the requirements file contains a direct-URL line and at least one vulnerability is found. Repositories without findings are unaffected, which is why it only shows up in some repos (ansys-tools-common currently pinsurllib3==2.7.0for dev purposes). Any consumer with its own direct-URL/git dependency would hit the same crash.Reproduced locally: same requirements with
pip @ <url>crashes; withpip==26.2.2safety reports the findings and writesinfo_safety.json.Fix
Save installed packages with
pip list --format freeze --exclude-editable(uv and pip backends), which always emitsname==version.--exclude-editabledrops the project's own-e file://...line, which safety ignored anyway. Poetry branch unchanged.