forked from mirrors/kingfisher
JWT tokens without both 'iss' and 'aud' are no longer reported as active credentials
This commit is contained in:
parent
061d3d97ed
commit
b3ddc119a4
4 changed files with 5 additions and 5 deletions
|
|
@ -60,7 +60,7 @@ pub struct GitHubRepoSpecifiers {
|
|||
pub all_organizations: bool,
|
||||
|
||||
/// Filter by repository type
|
||||
#[arg(long, default_value_t = GitHubRepoType::All, alias = "github-repo-type")]
|
||||
#[arg(long, default_value_t = GitHubRepoType::Source, alias = "github-repo-type")]
|
||||
pub repo_type: GitHubRepoType,
|
||||
}
|
||||
|
||||
|
|
@ -87,7 +87,7 @@ pub enum GitHubRepoType {
|
|||
impl From<GitHubRepoType> for crate::github::RepoType {
|
||||
fn from(val: GitHubRepoType) -> Self {
|
||||
match val {
|
||||
GitHubRepoType::All => crate::github::RepoType::All,
|
||||
GitHubRepoType::Source => crate::github::RepoType::All,
|
||||
GitHubRepoType::Source => crate::github::RepoType::Source,
|
||||
GitHubRepoType::Fork => crate::github::RepoType::Fork,
|
||||
}
|
||||
|
|
|
|||
|
|
@ -60,7 +60,7 @@ pub struct InputSpecifierArgs {
|
|||
)]
|
||||
pub github_api_url: Url,
|
||||
|
||||
#[arg(long, default_value_t = GitHubRepoType::All)]
|
||||
#[arg(long, default_value_t = GitHubRepoType::Source)]
|
||||
pub github_repo_type: GitHubRepoType,
|
||||
|
||||
// GitLab Options
|
||||
|
|
|
|||
|
|
@ -275,7 +275,7 @@ fn create_default_scan_args() -> cli::commands::scan::ScanArgs {
|
|||
github_organization: Vec::new(),
|
||||
all_github_organizations: false,
|
||||
github_api_url: url::Url::parse("https://api.github.com/").unwrap(),
|
||||
github_repo_type: GitHubRepoType::All,
|
||||
github_repo_type: GitHubRepoType::Source,
|
||||
// new GitLab defaults
|
||||
gitlab_user: Vec::new(),
|
||||
gitlab_group: Vec::new(),
|
||||
|
|
|
|||
|
|
@ -76,7 +76,7 @@ mod tests {
|
|||
github_organization: Vec::new(),
|
||||
all_github_organizations: false,
|
||||
github_api_url: Url::parse("https://api.github.com/").unwrap(),
|
||||
github_repo_type: GitHubRepoType::All,
|
||||
github_repo_type: GitHubRepoType::Source,
|
||||
|
||||
// GitLab
|
||||
gitlab_user: Vec::new(),
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue