Skip to content
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

Updated Sendgrid Analyzer #3906

Conversation

kashifkhan0771
Copy link
Contributor

Description:

This PR is related to #3872

  1. Restructured the code
  2. Added /user/profile API call for profile details
  3. Add profile details in cli output
  4. Fixed test case

Screenshot from 2025-02-12 16-33-45

Checklist:

  • Tests passing (make test-community)?
  • Lint passing (make lint this requires golangci-lint)?

@kashifkhan0771 kashifkhan0771 requested a review from a team as a code owner February 12, 2025 11:36
@kashifkhan0771 kashifkhan0771 linked an issue Feb 12, 2025 that may be closed by this pull request
Copy link
Contributor

@abmussani abmussani left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Changes look good. Just a minor request to include Profile in Analyzer Result.


return &profile, nil
}

func secretInfoToAnalyzerResult(info *SecretInfo) *analyzers.AnalyzerResult {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@kashifkhan0771 Profile is being fetch based on a scope. My suggestion would to include it in Analyzer Result associated to that particular permission.

@kashifkhan0771 kashifkhan0771 force-pushed the update/oss-115-sendgrid-analyzer branch from 1dff64d to 3cc348a Compare February 17, 2025 10:08
@zricethezav zricethezav merged commit 6b1be99 into trufflesecurity:main Feb 19, 2025
13 checks passed
@kashifkhan0771 kashifkhan0771 deleted the update/oss-115-sendgrid-analyzer branch February 20, 2025 06:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

Sendgrid Analyzer Update - Add Key Ownership Details
3 participants