Skip to content

Conversation

@gusfcarvalho
Copy link
Contributor

No description provided.

Signed-off-by: Gustavo Carvalho <gustavo.carvalho@container-solutions.com>
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

This PR fixes SBOM gathering to gracefully handle permission errors instead of failing the entire evaluation. When the GitHub API returns 401/403/404 errors for SBOM requests, the function now returns nil rather than propagating the error, allowing the policy evaluation to continue.

Key changes:

  • Modified GatherSBOM to check for permission errors and return nil instead of failing
  • Added isPermissionError helper function to detect GitHub API permission-related errors (401/403/404)

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@gusfcarvalho gusfcarvalho merged commit 4a44088 into master Dec 12, 2025
8 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.

2 participants