secure-code-review
Secure Code Review (Static Site)
Purpose
Perform security-focused code reviews for static HTML/CSS websites.
Review Checklist
HTML Security
- ✅ No inline JavaScript (CSP compliance)
- ✅ Semantic HTML5 elements
- ✅ ARIA labels for accessibility
- ✅ Proper
<meta>tags (CSP, referrer, viewport) - ✅ External links use
rel="noopener noreferrer" - ✅ Forms use
method="POST"and HTTPS action
CSS Security
- ✅ No
@importfrom external domains - ✅ No
url()to untrusted sources - ✅ Inline styles minimized
- ✅ No user-controlled CSS injection
Link Security
- ✅ All links use HTTPS
- ✅ No broken links (linkinator check)
- ✅ External links reviewed for legitimacy
Configuration Security
- ✅ No secrets in repository
- ✅
.gitignoreconfigured correctly - ✅ Workflow permissions minimal
- ✅ Branch protection enabled
Automated Checks
# PR review workflow
- HTMLHint validation
- CSSLint validation
- Link checking
- Secret scanning
- Accessibility audit
References
- SECURITY.md: Security policy
- CONTRIBUTING.md: Contribution guidelines
More from hack23/riksdagsmonitor
electoral-analysis
Election forecasting models, campaign analysis, coalition prediction, voter behavior analysis for Swedish elections
25global-government-analysis
Comparative government systems, international relations, cross-country governance analysis, and global political context
21github agentic workflows tools ecosystem
Comprehensive guide for all available tools including GitHub, file operations, web, bash, playwright, tool capabilities and limitations, integration patterns, custom tool development, security considerations, and usage examples
19github-agentic-workflows
Comprehensive expertise in GitHub Agentic Workflows - agentic automation, MCP tools, safe outputs, security architecture, and operational patterns
16gh-aw-firewall
Network egress control for AI agents with domain whitelisting, Squid proxy, iptables enforcement, and secure credential management
15code-quality-checks
Quality gates for static HTML/CSS websites (validation, linting, accessibility, link checking)
15