You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* fix(github): improve dependabot status check and handling
* fix(github): update dependabot status handling to include paused state
---------
Co-authored-by: Tofik Hasanov <annexcies@gmail.com>
title: `Dependabot enabled on ${repo.name} (paused)`,
240
+
description: `Dependabot security updates are enabled but currently paused due to inactivity. Dependabot will resume automatically when new alerts are detected.${alertSummary}`,
241
+
resourceType: 'repository',
242
+
resourceId: repo.full_name,
243
+
evidence: {
244
+
[repo.full_name]: repoEvidence,
245
+
},
246
+
});
247
+
}elseif(dependabotStatus==='disabled'){
215
248
ctx.fail({
216
249
title: `Dependabot not enabled on ${repo.name}`,
217
250
description: `Dependabot security updates are not enabled, leaving the repository vulnerable to known dependency exploits.${alertSummary}`,
// Could not determine status (e.g., insufficient permissions)
261
+
ctx.fail({
262
+
title: `Unable to check Dependabot status on ${repo.name}`,
263
+
description: `Could not determine whether Dependabot security updates are enabled. The GitHub integration may lack admin access to this repository.${alertSummary}`,
264
+
resourceType: 'repository',
265
+
resourceId: repo.full_name,
266
+
severity: 'medium',
267
+
remediation: `1. Ensure the GitHub integration has admin access to ${repo.full_name}\n2. Or manually verify at ${repo.html_url}/settings/security_analysis`,
0 commit comments