-
Notifications
You must be signed in to change notification settings - Fork 3
Implement get-change command; improve start-change/end-change with new --change and --ticket-link params #34
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
Conversation
| }, | ||
| }) | ||
| if err != nil { | ||
| log.WithContext(ctx).WithError(err).WithFields(log.Fields{ |
Check failure
Code scanning / CodeQL
Clear-text logging of sensitive information
| }).Error("failed to get change") | ||
| return 1 | ||
| } | ||
| log.WithContext(ctx).WithFields(log.Fields{ |
Check failure
Code scanning / CodeQL
Clear-text logging of sensitive information
This requires overmindtech/cli#34 to be merged and tagged.
This is analogous to how get-change works
…ange commands to use it
| ctx, err = ensureToken(ctx, signals) | ||
| if err != nil { | ||
| log.WithContext(ctx).WithFields(lf).WithError(err).Error("failed to authenticate") | ||
| log.WithContext(ctx).WithFields(log.Fields{ |
Check failure
Code scanning / CodeQL
Clear-text logging of sensitive information
|
|
||
| ctx, err = ensureToken(ctx, signals) | ||
| if err != nil { | ||
| log.WithContext(ctx).WithFields(log.Fields{ |
Check failure
Code scanning / CodeQL
Clear-text logging of sensitive information
| ctx, err = ensureToken(ctx, signals) | ||
| if err != nil { | ||
| log.WithContext(ctx).WithFields(lf).WithError(err).Error("failed to authenticate") | ||
| log.WithContext(ctx).WithFields(log.Fields{ |
Check failure
Code scanning / CodeQL
Clear-text logging of sensitive information
All the logging goes to stderr, so the formatted change is all that remains on stdout: