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

Add support for authorization header. #640

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

bachp
Copy link

@bachp bachp commented Oct 24, 2024

This can for example be used to fetch audits from private/internal gitlab instances via the API.

Example:

export CARGO_VET_AUTH_HEADER="PRIVATE-TOKEN: __token__"
# Add an API URL to the sources.list: https://gitlab.com/api/v4/projects/12000/repository/files/supply-chain%2Faudits.toml/raw?ref=main
cargo vet aggregate --output-file audits.toml sources.list

Addresses the HTTP authentication part of #336

This can for example be used to fetch audits from private/internal
gitlab instances via the API.

Example:

```
export CARGO_VET_AUTH_HEADER="PRIVATE-TOKEN: __token__"
# Add an API URL to the sources.list: https://gitlab.com/api/v4/projects/12000/repository/files/supply-chain%2Faudits.toml/raw?ref=main
cargo vet aggregate --output-file audits.toml sources.list
```
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.

1 participant