Skip to content

fix: dependabot report CI auth and silent failure handling#31

Merged
arein merged 1 commit into
mainfrom
fix/dependabot-report-ci-auth
Feb 23, 2026
Merged

fix: dependabot report CI auth and silent failure handling#31
arein merged 1 commit into
mainfrom
fix/dependabot-report-ci-auth

Conversation

@arein
Copy link
Copy Markdown
Contributor

@arein arein commented Feb 23, 2026

Summary

  • Use dedicated DEPENDABOT_REPORT_GH_PAT secret (with security_events scope) instead of generic GH_PAT
  • Exit non-zero when all org API calls fail, so CI surfaces permission errors instead of silently reporting 0 alerts
  • Clear error message pointing at token permissions when all orgs fail

Test plan

  • Trigger workflow manually and verify it fetches alerts (non-zero count)
  • Verify script exits 1 when given an invalid token (e.g. GH_TOKEN=invalid python3 scripts/dependabot_report.py --output /tmp/test.md)

🤖 Generated with Claude Code

Use dedicated DEPENDABOT_REPORT_GH_PAT secret with security_events
scope instead of generic GH_PAT. Exit non-zero when all org API calls
fail so CI surfaces permission errors instead of reporting 0 alerts.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@arein arein merged commit 793378c into main Feb 23, 2026
5 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