Skip to content
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

Failed to fetch advisory database: git operation failed #388

Closed
hanabi1224 opened this issue Jan 19, 2022 · 1 comment
Closed

Failed to fetch advisory database: git operation failed #388

hanabi1224 opened this issue Jan 19, 2022 · 1 comment
Labels
enhancement New feature or request

Comments

@hanabi1224
Copy link

Describe the bug
cargo works with the combination of below ~/.gitconfig and ~/.cargo/config , but cargo deny check advisories fails with errors.

~/.gitconfig

[url "git@github.com:"]
        insteadOf = https://github.com/

~/.cargo/config

[net]
git-fetch-with-cli = true

Error:

2022-01-19 04:07:41 [ERROR] failed to fetch advisory database: git operation failed: failed to authenticate when downloading repository
attempted ssh-agent authentication, but none of the usernames `git` succeeded

To Reproduce
Steps to reproduce the behavior:

  1. create ~/.gitconfig and ~/.cargo/config with the content above
  2. run setup ssh keys for git cli
  3. run cargo update against any crate, it should work fine
  4. run cargo deny check advisories, it fails with error above

Expected behavior
A clear and concise description of what you expected to happen.

Screenshots
If applicable, add screenshots to help explain your problem.

Device:

  • OS: windows 11 / wsl2 Ubuntu 20.04
  • Browser [e.g. chrome, safari]
  • Version [e.g. 22]

Additional context
Add any other context about the problem here.

@hanabi1224 hanabi1224 added the bug Something isn't working label Jan 19, 2022
@Jake-Shadle Jake-Shadle added enhancement New feature or request and removed bug Something isn't working labels Jan 19, 2022
@Jake-Shadle
Copy link
Member

Resolved by #420

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants