-
Notifications
You must be signed in to change notification settings - Fork 3
Implement create-bookmark command
#24
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
|
|
||
| ctx, err = ensureToken(ctx, signals) | ||
| if err != nil { | ||
| log.WithContext(ctx).WithError(err).WithFields(log.Fields{ |
Check failure
Code scanning / CodeQL
Clear-text logging of sensitive information
|
|
||
| contents, err := io.ReadAll(in) | ||
| if err != nil { | ||
| log.WithContext(ctx).WithError(err).Error("failed to read file") |
Check failure
Code scanning / CodeQL
Clear-text logging of sensitive information
| msg := sdp.BookmarkProperties{} | ||
| err = json.Unmarshal(contents, &msg) | ||
| if err != nil { | ||
| log.WithContext(ctx).WithError(err).Error("failed to parse input") |
Check failure
Code scanning / CodeQL
Clear-text logging of sensitive information
| }, | ||
| }) | ||
| 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 bookmark") | ||
| return 1 | ||
| } | ||
| log.WithContext(ctx).WithFields(log.Fields{ |
Check failure
Code scanning / CodeQL
Clear-text logging of sensitive information
| "bookmark-description": response.Msg.Bookmark.Properties.Description, | ||
| }).Info("created bookmark") | ||
| for _, q := range response.Msg.Bookmark.Properties.Queries { | ||
| log.WithContext(ctx).WithFields(log.Fields{ |
Check failure
Code scanning / CodeQL
Clear-text logging of sensitive information
| }).Info("created bookmark query") | ||
| } | ||
| for _, i := range response.Msg.Bookmark.Properties.ExcludedItems { | ||
| log.WithContext(ctx).WithFields(log.Fields{ |
Check failure
Code scanning / CodeQL
Clear-text logging of sensitive information
|
Already merged as part of #31 |
No description provided.