-
Notifications
You must be signed in to change notification settings - Fork 28
CLI ignores OAuth client flags when a local API key is configured(AST-127635) #1409
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
base: main
Are you sure you want to change the base?
Conversation
|
Fixed Issues (3)Great job! The following issues were fixed in this Pull Request
|
internal/commands/root.go
Outdated
| log.SetOutput(multiWriter) | ||
| return nil | ||
| } | ||
| func CheckPreferredCredentials(cmd *cobra.Command) string { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
the return value of this method is redundant as its not used anywhere, method can be made void
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Changes have been made and pushed to the branch.


By submitting this pull request, you agree to the terms within the Checkmarx Code of Conduct. Please review the contributing guidelines for guidance on creating high-quality pull requests.
Description
If there's a configuration in CLI to access CxOne with an API key and an attempt is made to create a scan using OAuth client credentials, these credentials are not taken into account.
Type of Change
Related Issues
https://checkmarx.atlassian.net/browse/AST-127635
Checklist
Screenshots (if applicable)
Add screenshots to help explain your changes.
Additional Notes
Add any other relevant information.