I encountered the following issue with a Cloud Agent when trying to run it against dependabot. Is there a solution for this for Cloud Agents without requiring a PAT?
#############
The security-alert pipeline uses GitHub Dependabot/security alert data, which needs a different permission:
I also checked node-shared and got the same REST 403 for Dependabot alerts. So the agent was able to see Dependabot PRs, but not Dependabot vulnerability alerts.
The confusing part is GitHub GraphQL returned:
vulnerabilityAlerts.totalCount: 0
instead of an explicit permission error. That made the run incorrectly conclude there were no alerts.
Hi Tom!
Your diagnosis is spot-on. The Cloud Agent’s GitHub installation token doesn’t include the vulnerability_alerts permission, so Dependabot security advisory data is inaccessible. The GraphQL behavior you flagged (silently returning 0 instead of an error) is a known GitHub API quirk that makes this harder to catch.
Right now, the only workaround is a Personal Access Token:
Create a fine-grained PAT on GitHub with the Security events (or vulnerability_alerts: read) permission for the repos you need