security-advisory-compat-enforcer
Review a GitHub security advisory and safely update .github/aw/compat.json with evidence-backed version enforcement.
- License 许可
- MIT
- 所属仓库
- github/gh-aw
- 最近更新
- 2026-11-12
- Stars
- ★ 5.6k
- Forks
- 625
01 前言 Front Matter
- name
- security-advisory-compat-enforcer
- description
- Review a GitHub security advisory and safely update .github/aw/compat.json with evidence-backed version enforcement.
03 SKILL.md 正文
Security Advisory Compatibility Enforcer
Use this skill to translate a GitHub repository security advisory into the
smallest safe update to .github/aw/compat.json.
Required inputs
Record the repository, GHSA identifier, requested enforcement policy, and any patched version supplied by the user. Treat a user-supplied version as a target to verify, not as evidence for advisory details.
Evidence retrieval
- Attempt authenticated retrieval first:
gh api repos/OWNER/REPO/security-advisories/GHSA-ID. - If authentication is unavailable or access fails, try the public global
advisory endpoint:
gh api advisories/GHSA-ID(or its equivalent REST URL). - Record the endpoint and outcome of each attempt. If both sources are inaccessible, state that explicitly. Never infer or invent the affected package, vulnerable range, severity, CVE, publication state, or patched version.
- Verify the proposed patched version independently. Prefer a published repository release or tag, then package-registry metadata when applicable. Cite the exact URL or command result. Do not update compatibility policy if the target cannot be verified, unless the user explicitly directs use of a supplied target despite inaccessible advisory metadata; document that limitation without converting it into fabricated advisory evidence.
Choose the correct policy field
minimumVersionis a hard floor: activation fails for every compiler version below it. Change it only when the requested remediation is a universal minimum-version enforcement.blockedVersionsrejects listed versions exactly. Change it only when evidence or explicit instructions identify exact versions to deny and a continuous minimum floor would be inaccurate.minRecommendedVersiononly warns below the value. Change it only for an explicitly requested recommendation, never as a substitute for enforcement.- Agent rows under
agent-compat-v1select compatible agent versions; they are unrelated to compiler security enforcement unless separate evidence requires an agent compatibility change.
Write remediation guidance
Provide concise, actionable remediation in .github/aw/compat.md and the final
report. Follow established security-advisory terminology:
- Identify the affected product or component, GHSA identifier, CVE identifier when assigned, affected versions, and first fixed or unaffected version. Use exact bounded ranges and do not broaden the advisory's claims.
- State the permanent remediation in imperative language. Give exact, copyable upgrade and regeneration commands verified against official documentation. For compiler advisories, explain whether existing generated workflows must be recompiled and redeployed; blocking a vulnerable version prevents execution but does not repair generated artifacts.
- Separate remediation from mitigations and workarounds. Include a temporary measure only when the advisory documents it. If the retrieved advisory does not identify one, say so without claiming that no workaround exists.
- Include a verification step that checks the installed version and any regenerated artifacts. Do not treat a successful install alone as proof that deployed workflows were remediated.
- Link the advisory, fixed release, and authoritative upgrade documentation. Mention severity, CVSS, known exploitation, CISA KEV status, deadlines, or urgency only when verified from authoritative evidence.
Do not invent commands, CVE identifiers, affected configurations, mitigations, or timelines. If remediation details cannot be verified, identify the missing evidence and leave the instructions explicitly incomplete.
Safe edit procedure
- Parse the current JSON and record all four policy areas above.
- Compare semantic versions numerically. A minimum is monotonic: never lower a
non-empty
minimumVersionorminRecommendedVersion. Stop and report a requested downgrade rather than applying it. - Make the narrowest evidence-backed edit. Preserve
blockedVersions,minRecommendedVersion, everyagent-compat-v1row, key ordering, and formatting unless the selected policy specifically requires changing them. - When changing
blockedVersions, update.github/aw/compat.mdin the same change. Account for every blocked version, state why each version or contiguous range is blocked, link to the corresponding advisory, and provide the remediation and verification steps defined above. - Review the final diff and reject unrelated changes.
Required validation
Before reporting completion:
- Run the repository's
Validate compat.json structure and version formatstask from.github/workflows/cgo.yml. - Validate
.github/aw/compat.jsonagainst.github/aw/compat.schema.jsonwith a JSON Schema Draft 7 validator. JSON parsing or ad hoc field checks are not substitutes for schema validation. - Confirm
.github/aw/compat.mdaccounts for everyblockedVersionsentry and that each documented range links to its advisory. - Exercise the runtime policy semantics with versions immediately below, at, and above the changed boundary; confirm only the intended hard-fail, warning, or exact-block behavior changed.
- Confirm semantic-version monotonicity and byte-for-byte preservation of unrelated policy fields and agent rows.
Do not claim validation that was not run. If repository constraints prohibit a required check, report it as outstanding.
Report
Cite advisory retrieval attempts and patched-version verification. State which field changed, old and new values, why that policy is correct, which fields were preserved, and the compatibility task, schema, documentation, and runtime validation results. Include the remediation, any advisory-supported temporary mitigation, and verification steps. Clearly separate verified facts, user-provided inputs, and unavailable advisory details.
04 同仓库更多 Skills
GitHub Agentic Workflows
GitHub Agentic Workflows (`gh-aw`) is a GitHub CLI extension for writing Agentic Workflows in markdown and compiling them to GitHub Actions.
windows-compatibility
Cross-platform path handling and command patterns
versioning-policy
Semver versioning rules for Squad SDK and CLI — prevents prerelease version incidents
tiered-memory
Three-tier agent memory model (hot/cold/wiki) for context reduction per spawn
test-discipline
Update tests when changing APIs — no exceptions
squad
Squad's command catalog and interactive menu. Invoke via /squad (slash command) or natural language ("squad commands", "what can squad do", "show me squad options"). Presents categorized operations (Install & Upgrade, Team Management, Issues & PRs, Plugins & Skills, Model & Cost, Sessions & State) as an interactive picker. Routes to the right squad CLI command or the Squad coordinator agent.