GitHub’s official command line tool
155 matches across 11 categories. Click a row to expand file-level details.
| Severity | File | Line | Snippet |
|---|---|---|---|
| MEDIUM | …thub/workflows/scripts/spam-detection/eval-prompts.yml | 2928 | # Create a repository with a file so it has a default branch |
| MEDIUM | …thub/workflows/scripts/spam-detection/eval-prompts.yml | 2934 | # Create a fork |
| MEDIUM | …thub/workflows/scripts/spam-detection/eval-prompts.yml | 2950 | # Create the PR inside the fork |
| MEDIUM | …thub/workflows/scripts/spam-detection/eval-prompts.yml | 4381 | # Create a repository to act as upstream with a file so it has a default branch |
| MEDIUM | …thub/workflows/scripts/spam-detection/eval-prompts.yml | 4389 | # Create a fork in the same org |
| MEDIUM | …thub/workflows/scripts/spam-detection/eval-prompts.yml | 4407 | # Create the PR spanning upstream and fork repositories, gh pr create does not support headRepositoryId needed for |
| MEDIUM | …thub/workflows/scripts/spam-detection/eval-prompts.yml | 4597 | # Create a repository with a file so it has a default branch |
| MEDIUM | …thub/workflows/scripts/spam-detection/eval-prompts.yml | 4603 | # Create a fork |
| MEDIUM | …thub/workflows/scripts/spam-detection/eval-prompts.yml | 4619 | # Create the PR inside the fork |
| MEDIUM | …thub/workflows/scripts/spam-detection/eval-prompts.yml | 4849 | input: "<TITLE>\nLocal extensions can override core commands\n</TITLE>\n\n<BODY>\n### Describe the bug\n\n1. Local e |
| MEDIUM | pkg/cmd/extension/command.go | 586 | # Create a script-based extension |
| MEDIUM | pkg/cmd/extension/command.go | 589 | # Create a Go extension |
| MEDIUM | pkg/cmd/extension/command.go | 592 | # Create a non-Go precompiled extension |
| MEDIUM | pkg/cmd/agent-task/agent_task.go | 42 | # Create a new agent task on the current repository |
| MEDIUM | pkg/cmd/agent-task/create/create.go | 87 | # Create a task from an inline description |
| MEDIUM | pkg/cmd/agent-task/create/create.go | 90 | # Create a task from an inline description and follow logs |
| MEDIUM | pkg/cmd/agent-task/create/create.go | 93 | # Create a task from a file |
| MEDIUM | pkg/cmd/agent-task/create/create.go | 96 | # Create a task with problem statement from stdin |
| MEDIUM | pkg/cmd/agent-task/create/create.go | 99 | # Create a task with an editor |
| MEDIUM | pkg/cmd/agent-task/create/create.go | 102 | # Create a task with an editor and a file as a template |
| MEDIUM | pkg/cmd/agent-task/create/create.go | 108 | # Create a task using the custom agent defined in '.github/agents/my-agent.md' |
| MEDIUM | pkg/cmd/release/create/create.go | 151 | # Create a release and start a discussion |
| MEDIUM | pkg/cmd/release/create/create.go | 154 | # Create a release only if there are new commits available since the last release |
| MEDIUM | pkg/cmd/project/item-create/item_create.go | 43 | # Create a draft issue in the current user's project "1" |
| MEDIUM | pkg/cmd/project/field-create/field_create.go | 44 | # Create a field in the current user's project "1" |
| MEDIUM | pkg/cmd/project/field-create/field_create.go | 47 | # Create a field with three options to select from for owner monalisa |
| MEDIUM | pkg/cmd/project/create/create.go | 40 | # Create a new project owned by login monalisa |
| MEDIUM | pkg/cmd/issue/develop/develop.go | 63 | # Create a branch for issue 123 based on the my-feature branch |
| MEDIUM | pkg/cmd/issue/develop/develop.go | 66 | # Create a branch for issue 123 and check it out |
| MEDIUM | pkg/cmd/issue/develop/develop.go | 69 | # Create a branch in repo monalisa/cli for issue 123 in repo cli/cli |
| MEDIUM | pkg/cmd/gist/create/create.go | 65 | # Create a gist with a description |
| MEDIUM | pkg/cmd/gist/create/create.go | 68 | # Create a gist containing several files |
| MEDIUM | pkg/cmd/gist/create/create.go | 71 | # Create a gist containing several files using patterns |
| MEDIUM | pkg/cmd/gist/create/create.go | 77 | # Create a gist from output piped from another command |
| MEDIUM | pkg/cmd/repo/license/view/view.go | 57 | # Create a LICENSE.md with the MIT license |
| MEDIUM | pkg/cmd/repo/autolink/create/create.go | 58 | # Create an alphanumeric autolink to example.com for the key prefix "TICKET-". |
| MEDIUM | pkg/cmd/repo/autolink/create/create.go | 62 | # Create a numeric autolink to example.com for the key prefix "STORY-". |
| MEDIUM | pkg/cmd/repo/create/create.go | 106 | # Create a repository interactively |
| MEDIUM | pkg/cmd/repo/create/create.go | 109 | # Create a new remote repository and clone it locally |
| MEDIUM | pkg/cmd/repo/create/create.go | 112 | # Create a new remote repository in a different organization |
| MEDIUM | pkg/cmd/repo/create/create.go | 115 | # Create a remote repository from the current directory |
| MEDIUM | pkg/cmd/repo/gitignore/view/view.go | 49 | # Create a new .gitignore file using the Go template |
| MEDIUM | pkg/cmd/repo/gitignore/view/view.go | 52 | # Create a new .gitignore file using the Python template |
| Severity | File | Line | Snippet |
|---|---|---|---|
| LOW | internal/prompter/accessible_prompter_test.go | 21 | "golang.org/x/sys/unix" |
| LOW | internal/prompter/prompter.go | 21 | Select(prompt string, defaultValue string, options []string) (int, error) |
| LOW | internal/prompter/huh_prompter_test.go | 41 | |
| LOW | internal/prompter/prompter_mock.go | 1 | // Code generated by moq; DO NOT EDIT. |
| LOW | internal/prompter/prompter_mock.go | 21 | // panic("mock out the AuthToken method") |
| LOW | internal/prompter/prompter_mock.go | 41 | // MultiSelectWithSearchFunc: func(prompt string, searchPrompt string, defaults []string, persistentOptions []string, |
| LOW | internal/ghcmd/cmd.go | 421 | |
| LOW | internal/ghcmd/update_enabled.go | 1 | //go:build updateable |
| LOW | internal/gh/gh.go | 81 | |
| LOW | internal/gh/gh.go | 121 | // |
| LOW | internal/gh/mock/config.go | 21 | // // make and configure a mocked gh.Config |
| LOW | internal/gh/mock/config.go | 41 | // ColorLabelsFunc: func(hostname string) gh.ConfigEntry { |
| LOW | internal/gh/mock/config.go | 61 | // }, |
| LOW | internal/gh/mock/config.go | 81 | // panic("mock out the Write method") |
| LOW | internal/gh/mock/migration.go | 21 | // mockedMigration := &MigrationMock{ |
| LOW | internal/config/migration/multi_account.go | 41 | // |
| LOW | internal/config/migration/multi_account.go | 61 | // put that under the new user entry, otherwise there will be no value for the |
| LOW | internal/codespaces/api/api.go | 1 | package api |
| LOW | …/rpc/codespace/codespace_host_service.v1.proto.mock.go | 21 | // NotifyCodespaceOfClientActivityFunc: func(contextMoqParam context.Context, notifyCodespaceOfClientActivityRequest * |
| LOW | …paces/rpc/ssh/ssh_server_host_service.v1.proto.mock.go | 21 | // StartRemoteServerAsyncFunc: func(contextMoqParam context.Context, startRemoteServerRequest *StartRemoteServerReques |
| LOW | …c/jupyter/jupyter_server_host_service.v1.proto.mock.go | 21 | // GetRunningServerFunc: func(contextMoqParam context.Context, getRunningServerRequest *GetRunningServerRequest) (*Get |
| LOW | internal/featuredetection/feature_detection.go | 21 | ReleaseFeatures() (ReleaseFeatures, error) |
| LOW | internal/featuredetection/feature_detection.go | 41 | // |
| LOW | internal/featuredetection/feature_detection.go | 341 | func (d *detector) SearchFeatures() (SearchFeatures, error) { |
| LOW | internal/featuredetection/feature_detection.go | 461 | // TODO workflowDispatchRunDetailsCleanup |
| LOW | internal/telemetry/telemetry.go | 341 | Type string `json:"type"` |
| LOW | internal/telemetry/detach_windows.go | 1 | //go:build windows |
| LOW | internal/barista/observability/telemetry.twirp.go | 521 | // that is everything in a Twirp route except for the <Method>. This can be used for routing, |
| LOW | internal/barista/observability/telemetry.twirp.go | 541 | } |
| LOW | internal/barista/observability/telemetry.twirp.go | 901 | |
| LOW | docs/release-process-deep-dive.md | 221 | security default-keychain -s "$keychain" |
| LOW | script/build.go | 1 | // Build tasks for the GitHub CLI project. |
| LOW | acceptance/README.md | 121 | |
| LOW | .github/workflows/scripts/bump-go.sh | 1 | #!/usr/bin/env bash |
| LOW | api/queries_issue.go | 101 | logins := make([]string, len(a.Nodes)) |
| LOW | git/client.go | 21 | ) |
| LOW | git/client.go | 101 | // CredentialPattern is used to inform AuthenticatedCommand which patterns Git should match |
| LOW | git/client.go | 521 | // |
| LOW | git/client.go | 541 | // remote = foo/bar |
| LOW | git/client_test.go | 1161 | { |
| LOW | pkg/cmd/codespace/mock_prompter.go | 1 | // Code generated by moq; DO NOT EDIT. |
| LOW | pkg/cmd/codespace/mock_api.go | 21 | // panic("mock out the CreateCodespace method") |
| LOW | pkg/cmd/codespace/mock_api.go | 41 | // GetCodespaceRepositoryContentsFunc: func(ctx context.Context, codespace *codespacesAPI.Codespace, path string) ([]b |
| LOW | pkg/cmd/codespace/mock_api.go | 61 | // }, |
| LOW | pkg/cmd/codespace/ssh.go | 661 | // codespaceSSHConfig contains values needed to write an OpenSSH host |
| LOW | pkg/cmd/codespace/select.go | 41 | // ## Examples |
| LOW | pkg/cmd/extension/manager.go | 861 | // |
| LOW | pkg/cmd/extension/ext_tmpls/script.sh | 1 | #!/usr/bin/env bash |
| LOW | pkg/cmd/extension/ext_tmpls/script.sh | 21 | # repositories(first: 100, after: $endCursor) { |
| LOW | pkg/cmd/auth/shared/git_credential.go | 41 | result, err := flow.Prompter.Confirm("Authenticate Git with your GitHub credentials?", true) |
| LOW | pkg/cmd/agent-task/capi/client_mock.go | 21 | // CreateJobFunc: func(ctx context.Context, owner string, repo string, problemStatement string, baseBranch string, cus |
| LOW | pkg/cmd/agent-task/capi/client_mock.go | 41 | // }, |
| LOW | pkg/cmd/agent-task/shared/log_mock.go | 21 | // mockedLogRenderer := &LogRendererMock{ |
| LOW | pkg/cmd/release/list/http.go | 41 | func fetchReleases(httpClient *http.Client, repo ghrepo.Interface, limit int, excludeDrafts bool, excludePreReleases boo |
| LOW | pkg/cmd/release/create/http.go | 181 | |
| LOW | pkg/cmd/pr/diff/diff.go | 301 | if err != nil { |
| LOW | pkg/cmd/pr/shared/editable.go | 101 | // curate the final list of assignees from the default list. |
| LOW | pkg/cmd/pr/shared/editable.go | 501 | |
| LOW | pkg/cmd/pr/shared/find_refs_resolution.go | 301 | // |
| LOW | pkg/cmd/pr/create/create.go | 881 | } |
| 25 more matches not shown… | |||
| Severity | File | Line | Snippet |
|---|---|---|---|
| LOW | …orkflows/scripts/spam-detection/generate-sys-prompt.sh | 64 | - Generic placeholder text like "Lorem ipsum" or "test test test". |
| LOW | pkg/cmd/search/commits/commits.go | 61 | # Search commits authored by users with name "Jane Doe" |
| LOW | pkg/cmd/search/commits/commits.go | 62 | $ gh search commits --author-name="Jane Doe" |
| LOW | pkg/cmd/pr/comment/comment_test.go | 637 | if body != "Lorem ipsum dolor sit amet, consectet lo..." { |
| LOW | pkg/cmd/pr/comment/comment_test.go | 637 | if body != "Lorem ipsum dolor sit amet, consectet lo..." { |
| LOW | pkg/cmd/pr/comment/comment_test.go | 647 | {ID: "id1", Author: api.CommentAuthor{Login: "octocat"}, URL: "https://github.com/OWNER/REPO/pull/123#issuecomment-1 |
| LOW | pkg/cmd/pr/comment/comment_test.go | 647 | {ID: "id1", Author: api.CommentAuthor{Login: "octocat"}, URL: "https://github.com/OWNER/REPO/pull/123#issuecomment-1 |
| LOW | pkg/cmd/issue/comment/comment_test.go | 617 | if body != "Lorem ipsum dolor sit amet, consectet lo..." { |
| LOW | pkg/cmd/issue/comment/comment_test.go | 617 | if body != "Lorem ipsum dolor sit amet, consectet lo..." { |
| LOW | pkg/cmd/issue/comment/comment_test.go | 627 | {ID: "id1", Author: api.CommentAuthor{Login: "octocat"}, URL: "https://github.com/OWNER/REPO/pull/123#issuecomment-1 |
| LOW | pkg/cmd/issue/comment/comment_test.go | 627 | {ID: "id1", Author: api.CommentAuthor{Login: "octocat"}, URL: "https://github.com/OWNER/REPO/pull/123#issuecomment-1 |
| Severity | File | Line | Snippet |
|---|---|---|---|
| MEDIUM | …thub/workflows/scripts/spam-detection/eval-prompts.yml | 3299 | input: "<TITLE>\nAdd the ability to delete the \"last\" comment, similar to `--edit-last`\n</TITLE>\n\n<BODY>\n### D |
| MEDIUM | …thub/workflows/scripts/spam-detection/eval-prompts.yml | 3299 | input: "<TITLE>\nAdd the ability to delete the \"last\" comment, similar to `--edit-last`\n</TITLE>\n\n<BODY>\n### D |
| MEDIUM | …thub/workflows/scripts/spam-detection/eval-prompts.yml | 4563 | input: "<TITLE>\n`--allow-forking=false` not interpreted correctly if forking disabled at organization level\n</TITL |
| MEDIUM | …thub/workflows/scripts/spam-detection/eval-prompts.yml | 4709 | input: "<TITLE>\n`gh repo create` to work on bare repos\n</TITLE>\n\n<BODY>\n### Describe the feature or problem you |
| Severity | File | Line | Snippet |
|---|---|---|---|
| LOW | pkg/cmd/agent-task/shared/testdata/log-2-want.txt | 225 | except Exception as e: |
| MEDIUM | pkg/cmd/agent-task/shared/testdata/log-2-want.txt | 226 | print(f'Error: {e}') |
| MEDIUM | pkg/cmd/agent-task/shared/testdata/log-2-input.txt | 41 | data: {"choices":[{"delta":{"role":"assistant","content":"Let me try a different approach to verify the YAML:"},"finish_ |
| MEDIUM | pkg/cmd/agent-task/shared/testdata/log-2-input.txt | 43 | data: {"id":"msg_vrtx_01GbFRhuSh5bH1VPVEAMD8L9","created":1757597820,"model":"claude-sonnet-4","choices":[{"finish_reaso |
| Severity | File | Line | Snippet |
|---|---|---|---|
| MEDIUM | …thub/workflows/scripts/spam-detection/eval-prompts.yml | 4809 | input: "<TITLE>\nCan't install forked extension\n</TITLE>\n\n<BODY>\n### Describe the bug\r\n\r\nI have forked an [e |
| MEDIUM | pkg/cmd/preview/prompter/prompter.go | 177 | // Here, we return a static set of options for demonstration purposes. |
| Severity | File | Line | Snippet |
|---|---|---|---|
| HIGH | pkg/cmd/agent-task/shared/testdata/log-1-input.txt | 61 | data: {"choices":[{"delta":{"role":"assistant","content":"Excellent! The security analysis shows no vulnerabilities. \n\ |
| Severity | File | Line | Snippet |
|---|---|---|---|
| MEDIUM | .github/workflows/scripts/bump-go.sh | 14 | # ----------------------------------------------------------------------------- |
| Severity | File | Line | Snippet |
|---|---|---|---|
| LOW | pkg/cmd/agent-task/view/view.go | 183 | // so we need to check if the selector arg is a reference and fetch the PR |
| LOW | pkg/cmd/issue/shared/lookup.go | 37 | // if there is an issue repo returned, then we need to check if it is the same as the previous one |
| Severity | File | Line | Snippet |
|---|---|---|---|
| LOW | .github/workflows/scripts/bump-go.sh | 5 | # Usage: |
| Severity | File | Line | Snippet |
|---|---|---|---|
| LOW | .github/workflows/scripts/spam-detection/check-issue.sh | 3 | # Check if an issue is spam or not and output "PASS" (not spam) or "FAIL" (spam). |