Skip to content

Conversation

@amanfcp
Copy link
Contributor

@amanfcp amanfcp commented May 9, 2025

Description:

This PR adds analyzer for DataDog
DataDog API docs: Link

Checklist:

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

@amanfcp amanfcp marked this pull request as ready for review May 15, 2025 15:56
@amanfcp amanfcp requested review from a team as code owners May 15, 2025 15:56
@amanfcp amanfcp changed the title [Draft] - Analyzer/datadog Analyzer/datadog May 15, 2025
amanfcp added 3 commits May 18, 2025 20:53
- Simplified API key retrieval logic by removing redundant checks for "key".
- Enhanced permission binding extraction by introducing a new function for permissions.
- Cleaned up resource binding logic for better clarity and maintainability.
- Removed unnecessary ID fields from scopes.json to reduce clutter.
}

permissionBindings := secretInfoPermissionsToAnalyzerPermission(info.Permissions)
result.Bindings = analyzers.BindAllPermissions(*userResource, *permissionBindings...)
Copy link
Contributor

Choose a reason for hiding this comment

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

what if userId is nil? nil check on L124, though already deref here.

@zricethezav zricethezav merged commit bb506f6 into trufflesecurity:main Jun 10, 2025
13 checks passed
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.

6 participants