Skip to content

Conversation

@DavidS-ovm
Copy link
Contributor

No description provided.


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

[Sensitive data returned by an access to apiKey](1) flows to a logging call.

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

[Sensitive data returned by an access to apiKey](1) flows to a logging call.
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

[Sensitive data returned by an access to apiKey](1) flows to a logging call.
},
})
if err != nil {
log.WithContext(ctx).WithError(err).WithFields(log.Fields{

Check failure

Code scanning / CodeQL

Clear-text logging of sensitive information

[Sensitive data returned by an access to apiKey](1) flows to a logging call.
}).Error("failed to get bookmark")
return 1
}
log.WithContext(ctx).WithFields(log.Fields{

Check failure

Code scanning / CodeQL

Clear-text logging of sensitive information

[Sensitive data returned by an access to apiKey](1) flows to a logging call.
"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

[Sensitive data returned by an access to apiKey](1) flows to a logging call.
}).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

[Sensitive data returned by an access to apiKey](1) flows to a logging call.
@DavidS-ovm
Copy link
Contributor Author

Already merged as part of #31

@DavidS-ovm DavidS-ovm closed this Aug 21, 2023
@DavidS-ovm DavidS-ovm deleted the create-bookmark branch August 21, 2023 14:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants