Skip to content

Commit abbe40b

Browse files
Merge pull request #370 from roy9495/issue#366/roy9495
Skip authentication for sentry
2 parents 0406104 + 10dadf2 commit abbe40b

File tree

1 file changed

+8
-4
lines changed

1 file changed

+8
-4
lines changed

plugins/sentry/sentry_cli.go

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,10 +9,14 @@ import (
99

1010
func SentryCLI() schema.Executable {
1111
return schema.Executable{
12-
Name: "Sentry CLI",
13-
Runs: []string{"sentry-cli"},
14-
DocsURL: sdk.URL("https://docs.sentry.io/product/cli/"),
15-
NeedsAuth: needsauth.NotForHelpOrVersion(),
12+
Name: "Sentry CLI",
13+
Runs: []string{"sentry-cli"},
14+
DocsURL: sdk.URL("https://docs.sentry.io/product/cli/"),
15+
NeedsAuth: needsauth.IfAll(
16+
needsauth.NotForHelpOrVersion(),
17+
needsauth.NotWhenContainsArgs("--auth-token"),
18+
needsauth.NotWhenContainsArgs("--api-key"),
19+
),
1620
Uses: []schema.CredentialUsage{
1721
{
1822
Name: credname.AuthToken,

0 commit comments

Comments
 (0)