Skip to content

Commit 06e114d

Browse files
authored
Skip authentication
Signed-off-by: TATHAGATA ROY <[email protected]>
1 parent 0b46a42 commit 06e114d

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

plugins/sentry/sentry_cli.go

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,11 @@ func SentryCLI() schema.Executable {
1212
Name: "Sentry CLI",
1313
Runs: []string{"sentry-cli"},
1414
DocsURL: sdk.URL("https://docs.sentry.io/product/cli/"),
15-
NeedsAuth: needsauth.NotForHelpOrVersion(),
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)