-
Notifications
You must be signed in to change notification settings - Fork 90
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
Cannot use SSH to fetch advisory DB #412
Comments
That code was added specifically because rustsec doesn't support non-https urls. Please file an issue on rustsec if you want this supported in cargo-deny. |
I don't really understand this, because A quick search of this repo doesn't seem to turn up any place where the Can you clarify why |
With the check removed, I'm able to clone an advisory DB over SSH without any problem. I opened #426 to remove the check. |
Sorry, had closed this issue before I did #422 but had vaguely remembered it since I included |
Describe the bug
If an SSH Git URL is provided for the advisory DB, cargo-deny exits with "error: advisory database url is not https".
To Reproduce
Steps to reproduce the behavior:
db-urls = ["ssh://git@git.yourcompany.com/yourcompany/rustsec-advisory-db.git"]
indeny.toml
cargo deny
Expected behavior
The advisory DB was cloned over SSH.
Additional context
The check is here: https://github.com/EmbarkStudios/cargo-deny/blob/main/src/advisories/cfg.rs#L131
This crate seems to delegate cloning Git repositories to the
git2
crate (update: or, since #420, optionally the Git executable) so I see no reason why the SSH clone would not work if this check was removed.The text was updated successfully, but these errors were encountered: