Skip to content

Update GitHub token help description to match documentation (AST-79915) #1049

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

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 7 additions & 7 deletions internal/params/flags.go
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ const (
CweIDFlag = "cwe-id"
SCMTokenFlag = "token"
AzureTokenUsage = "Azure DevOps personal access token. Requires “Connected server” and “Code“ scope."
GithubTokenUsage = "GitHub OAuth token. Requires “Repo” scope and organization SSO authorization, if enforced by the organization"
GithubTokenUsage = "GitHub Personal Access Token (PAT). Requires “Repo” scope and organization SSO authorization, if enforced by the organization"

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The updated help description for the GitHub token should specify that it's a personal access token more clearly. Consider rephrasing to 'GitHub Personal Access Token (PAT), which requires the "Repo" scope and organization SSO authorization if it's enforced by the organization.' This ensures clarity and consistency with the documentation.

GitLabTokenUsage = "GitLab OAuth token"
BitbucketTokenUsage = "Bitbucket OAuth token"
BotCount = "Note: dependabot is not counted but other bots might be considered as contributors."
Expand Down Expand Up @@ -285,12 +285,12 @@ var (
)

// Custom states
const IncludeDeletedQueryParam = "include-deleted"
const True = "true"
const IncludeDeletedQueryParam = "include-deleted"
const True = "true"

// System States
const ToVerify = "TO_VERIFY"
const NotExploitable = "NOT_EXPLOITABLE"
const ToVerify = "TO_VERIFY"
const NotExploitable = "NOT_EXPLOITABLE"
const ProposedNotExploitable = "PROPOSED_NOT_EXPLOITABLE"
const CONFIRMED = "CONFIRMED"
const URGENT = "URGENT"
const CONFIRMED = "CONFIRMED"
const URGENT = "URGENT"
Loading