JWT tokens without both 'iss' and 'aud' are no longer reported as active credentials

This commit is contained in:
Mick Grove 2025-08-07 17:36:39 -07:00
commit d4e8900d37
4 changed files with 5 additions and 5 deletions

View file

@ -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,
}

View file

@ -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

View file

@ -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(),

View file

@ -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(),