From d4e8900d377327f2b2e5cf73749d95be9b8e1b21 Mon Sep 17 00:00:00 2001 From: Mick Grove Date: Thu, 7 Aug 2025 17:36:39 -0700 Subject: [PATCH] JWT tokens without both 'iss' and 'aud' are no longer reported as active credentials --- src/cli/commands/github.rs | 4 ++-- src/cli/commands/inputs.rs | 2 +- src/main.rs | 2 +- src/reporter/json_format.rs | 2 +- 4 files changed, 5 insertions(+), 5 deletions(-) diff --git a/src/cli/commands/github.rs b/src/cli/commands/github.rs index cea9a44..50aa190 100644 --- a/src/cli/commands/github.rs +++ b/src/cli/commands/github.rs @@ -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 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, } diff --git a/src/cli/commands/inputs.rs b/src/cli/commands/inputs.rs index 4cf4f26..2249640 100644 --- a/src/cli/commands/inputs.rs +++ b/src/cli/commands/inputs.rs @@ -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 diff --git a/src/main.rs b/src/main.rs index 9c9c1bd..58145e6 100644 --- a/src/main.rs +++ b/src/main.rs @@ -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(), diff --git a/src/reporter/json_format.rs b/src/reporter/json_format.rs index 0e5a845..aae16fc 100644 --- a/src/reporter/json_format.rs +++ b/src/reporter/json_format.rs @@ -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(),