Skip to content

(fix) validation to ensure only one of --org or --repo is provided for Github source #4141

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

abmussani
Copy link
Contributor

Description:

This PR fixes the input validation logic to ensure that for github source, either --org or --repo provided, but not both at the same time. This helps prevent ambiguous behavior and enforces clarity in how the GitHub data is being targeted.

Checklist:

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

@abmussani abmussani requested a review from a team May 15, 2025 12:08
@abmussani abmussani requested a review from a team as a code owner May 15, 2025 12:08
@zricethezav zricethezav merged commit f649faa 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.

5 participants