mirror of
https://github.com/SHOGGOTH-SECTOR/sica-fondt.git
synced 2026-08-01 08:30:20 +00:00
Place useful parts of the surrounding repos into sica-fondt by layer, per the
body model (Ada = membrane; brain/endocrine/capabilities/knowledge non-Ada):
- brain/ LLM reasoning + providers (dapr, hermes, MoMoA)
- capabilities/ REPRAG sidecars: hermes tools/skills, dapr tools, parallel
dispatch, A51 channels, and the OSINT cluster
- knowledge/ LORAG corpus: 754 cyber-skills, agency personas, secure-coding,
MITRE ATT&CK data
- reference/ defensive threat-reference (C3, shhbruh doc) + AdaYaml parser
License handling: AGPL sources (worldosint, advanced_evolution, mercury,
Reticulum) and GPL DeTTECT are SPEC-only clean-room/port descriptions — no
copyleft code copied. MIT/Apache/data parts copied as working trees.
Safety: shhbruh escape/persistence material and C3 covert-C2 kept as reference
only, not wired into the running organism. See CONSOLIDATION.md.
https://claude.ai/code/session_01UehUqEXXJJCsHoA4voCU5c
61 lines
1.4 KiB
Markdown
61 lines
1.4 KiB
Markdown
# API Reference: SAST in GitHub Actions Pipeline
|
|
|
|
## Semgrep CLI
|
|
|
|
### Installation
|
|
```bash
|
|
pip install semgrep
|
|
```
|
|
|
|
### Scan Commands
|
|
```bash
|
|
semgrep scan --config auto --json . # Auto-detect rules
|
|
semgrep scan --config p/owasp-top-ten --json . # OWASP rules
|
|
semgrep scan --config p/ci --sarif . # CI-optimized rules
|
|
```
|
|
|
|
### JSON Output Structure
|
|
```json
|
|
{"results": [{"check_id": "rule-id", "path": "file.py",
|
|
"start": {"line": 10}, "extra": {"severity": "ERROR",
|
|
"message": "...", "metadata": {"cwe": ["CWE-89"], "owasp": ["A03"]}}}]}
|
|
```
|
|
|
|
### Severity Levels
|
|
| Level | Action |
|
|
|-------|--------|
|
|
| ERROR | Block merge |
|
|
| WARNING | Require review |
|
|
| INFO | Advisory only |
|
|
|
|
## GitHub Actions Integration
|
|
|
|
### Semgrep Action
|
|
```yaml
|
|
- uses: returntocorp/semgrep-action@v1
|
|
with:
|
|
config: auto
|
|
generateSarif: "1"
|
|
```
|
|
|
|
### SARIF Upload
|
|
```yaml
|
|
- uses: github/codeql-action/upload-sarif@v3
|
|
with:
|
|
sarif_file: semgrep.sarif
|
|
```
|
|
|
|
### SARIF 2.1.0 Schema
|
|
| Field | Description |
|
|
|-------|-------------|
|
|
| `runs[].tool.driver.name` | Scanner name |
|
|
| `runs[].tool.driver.rules` | Rule definitions |
|
|
| `runs[].results` | Finding instances |
|
|
| `results[].ruleId` | Matching rule ID |
|
|
| `results[].level` | `error`, `warning`, `note` |
|
|
|
|
## References
|
|
- Semgrep: https://semgrep.dev/docs/
|
|
- GitHub Code Scanning: https://docs.github.com/en/code-security/code-scanning
|
|
- SARIF spec: https://docs.oasis-open.org/sarif/sarif/v2.1.0/
|