Skip to content

Commit 7322a83

Browse files
tclemCopilot
andcommitted
Add security advisory links to update-deps skill
PR bodies should now include GHSA IDs, advisory URLs, and a link to the repo's dependabot security dashboard. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
1 parent 03f98eb commit 7322a83

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

.github/skills/update-deps/SKILL.md

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -85,10 +85,16 @@ For ecosystems without dependabot coverage or when running ad-hoc, use native to
8585
- **cargo:** `cargo update --dry-run`
8686
- **npm:** `cd crates/string-offsets/js && npm outdated --json`
8787

88+
Also fetch the advisory URLs for any security-related updates. The dependabot security dashboard is at `https://github.com/{owner}/{repo}/security/dependabot`. Individual alert details (including GHSA links) are available via:
89+
90+
```bash
91+
gh api /repos/{owner}/{repo}/dependabot/alerts --jq '[.[] | select(.state=="open") | {number: .number, package: .security_vulnerability.package.name, severity: .security_advisory.severity, ghsa_id: .security_advisory.ghsa_id, url: .html_url}]'
92+
```
93+
8894
Cross-reference and group all updates by ecosystem. Present a summary to the user:
8995

9096
- How many updates per ecosystem
91-
- Which have security alerts (and severity)
97+
- Which have security alerts (with severity, GHSA IDs, and advisory links)
9298
- Which dependabot PRs already exist
9399

94100
**Flag high-risk upgrades.** Before proceeding, explicitly call out upgrades that carry elevated risk:
@@ -194,7 +200,7 @@ git push -u origin HEAD
194200
**Body should include:**
195201

196202
- List of updated dependencies with version changes (old → new)
197-
- Any security alerts resolved (with severity)
203+
- Any security alerts resolved — include severity, GHSA ID, advisory summary, and a link to the advisory (e.g., `https://github.com/advisories/GHSA-xxxx-xxxx-xxxx`). Also link to the repo's dependabot security dashboard: `https://github.com/{owner}/{repo}/security/dependabot`
198204
- **High-risk changes flagged for reviewer attention** (major version bumps, wide-blast-radius packages)
199205
- Code changes made to fix breakage (if any)
200206
- References to superseded dependabot PRs

0 commit comments

Comments
 (0)