feat: Update security-audit aspect and add shiny-secure example (gt-8tmz.5)
- Fix security-audit.formula.json to match Go schema (advice as array) - Update pointcuts and targets for exact matching - Add shiny-secure.formula.json demonstrating aspect composition 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
@@ -4,39 +4,47 @@
|
|||||||
"description": "Cross-cutting security concern. Applies security scanning before and after implementation steps.",
|
"description": "Cross-cutting security concern. Applies security scanning before and after implementation steps.",
|
||||||
"version": 1,
|
"version": 1,
|
||||||
"pointcuts": [
|
"pointcuts": [
|
||||||
{"glob": "*.implement"},
|
{"glob": "implement"},
|
||||||
{"glob": "*.submit"}
|
{"glob": "submit"}
|
||||||
],
|
],
|
||||||
"advice": {
|
"advice": [
|
||||||
"around": {
|
{
|
||||||
"before": [
|
"target": "implement",
|
||||||
{
|
"around": {
|
||||||
"id": "security-prescan",
|
"before": [
|
||||||
"description": "Pre-implementation security check. Review for secrets/credentials in scope. Check dependencies for known vulnerabilities.",
|
{
|
||||||
"args": {
|
"id": "{step.id}-security-prescan",
|
||||||
"target": "{step.id}"
|
"title": "Security prescan for {step.id}",
|
||||||
|
"description": "Pre-implementation security check. Review for secrets/credentials in scope. Check dependencies for known vulnerabilities."
|
||||||
}
|
}
|
||||||
}
|
],
|
||||||
],
|
"after": [
|
||||||
"after": [
|
{
|
||||||
{
|
"id": "{step.id}-security-postscan",
|
||||||
"id": "security-postscan",
|
"title": "Security postscan for {step.id}",
|
||||||
"description": "Post-implementation security scan. Scan new code for vulnerabilities (SAST). Check for hardcoded secrets. Review for OWASP Top 10 issues.",
|
"description": "Post-implementation security scan. Scan new code for vulnerabilities (SAST). Check for hardcoded secrets. Review for OWASP Top 10 issues."
|
||||||
"args": {
|
|
||||||
"target": "{step.id}"
|
|
||||||
},
|
|
||||||
"output": {
|
|
||||||
"approved": "boolean",
|
|
||||||
"findings": "list"
|
|
||||||
}
|
}
|
||||||
},
|
]
|
||||||
{
|
}
|
||||||
"gate": {
|
},
|
||||||
"condition": "security-postscan.output.approved == true",
|
{
|
||||||
"message": "Security approval required before proceeding"
|
"target": "submit",
|
||||||
|
"around": {
|
||||||
|
"before": [
|
||||||
|
{
|
||||||
|
"id": "{step.id}-security-prescan",
|
||||||
|
"title": "Security prescan for {step.id}",
|
||||||
|
"description": "Pre-submission security check. Final vulnerability scan before merge."
|
||||||
}
|
}
|
||||||
}
|
],
|
||||||
]
|
"after": [
|
||||||
|
{
|
||||||
|
"id": "{step.id}-security-postscan",
|
||||||
|
"title": "Security postscan for {step.id}",
|
||||||
|
"description": "Post-submission security verification. Confirm no new vulnerabilities introduced."
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
]
|
||||||
}
|
}
|
||||||
|
|||||||
10
.beads/formulas/shiny-secure.formula.json
Normal file
10
.beads/formulas/shiny-secure.formula.json
Normal file
@@ -0,0 +1,10 @@
|
|||||||
|
{
|
||||||
|
"formula": "shiny-secure",
|
||||||
|
"type": "workflow",
|
||||||
|
"description": "Shiny workflow with security audit aspect applied.",
|
||||||
|
"version": 1,
|
||||||
|
"extends": ["shiny"],
|
||||||
|
"compose": {
|
||||||
|
"aspects": ["security-audit"]
|
||||||
|
}
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user