Skip to content

Commit bbb7f91

Browse files
committed
feat: add Gemini CLI gh actions examples
1 parent b9d3ba9 commit bbb7f91

7 files changed

Lines changed: 515 additions & 26 deletions

File tree

README.md

Lines changed: 15 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ curl -L https://raw.githubusercontent.com/slvDev/weasel/main/weaselup/install |
2727
/plugin marketplace add slvDev/weasel
2828
/plugin install weasel
2929

30-
# MCP only for Claude Code (if you don't want skills), Cursor, Windsurf
30+
# MCP only for Claude Code, Cursor, Windsurf, Codex, Gemini
3131
weasel mcp add
3232
```
3333

@@ -49,7 +49,7 @@ Weasel skills activate. Your AI runs analysis, writes PoCs, formats reports, and
4949

5050
- **AI-Native Skills** — 9 specialized skills for Claude Code (PoC writing, report formatting, gas optimization, and more)
5151
- **Blazing Fast** — Parallel Rust analysis, instant MCP responses
52-
- **MCP Server** — Works with Claude Code, Cursor, Windsurf, and any MCP-compatible tool
52+
- **MCP Server** — Works with Claude Code, Cursor, Windsurf, OpenAI Codex, Gemini CLI, and any MCP-compatible tool
5353
- **Extensive Detectors** — Vulnerabilities, gas optimizations, and code quality checks
5454
- **Auto-Detection** — Automatically configures for Foundry, Hardhat, and Truffle projects
5555

@@ -125,20 +125,24 @@ Use `weasel` prefix to activate skills:
125125

126126
## IDE Integration (MCP)
127127

128-
For **Cursor**, **Windsurf**, or Claude Code without skills:
128+
For **Cursor**, **Windsurf**, **Codex**, **Gemini**, or Claude Code without skills:
129129

130130
```bash
131131
weasel mcp add # auto-detect all installed IDEs
132132
weasel mcp add --target cursor # Cursor only
133133
weasel mcp add --target windsurf # Windsurf only
134134
weasel mcp add --target claude # Claude Code only
135+
weasel mcp add --target codex # OpenAI Codex only
136+
weasel mcp add --target gemini # Gemini CLI only
135137
```
136138

137-
| IDE | MCP Tools | Skills |
138-
| ----------- | --------- | -------------------------- |
139-
| Claude Code || ✅ (via `/plugin install`) |
140-
| Cursor |||
141-
| Windsurf |||
139+
| IDE | MCP Tools | Skills |
140+
| ------------ | --------- | -------------------------- |
141+
| Claude Code | yes | yes (via `/plugin install`) |
142+
| Cursor | yes | no |
143+
| Windsurf | yes | no |
144+
| OpenAI Codex | yes | no |
145+
| Gemini CLI | yes | no |
142146

143147
MCP tools (`weasel_analyze`, `weasel_finding_details`, `weasel_detectors`) work in all IDEs. Skills (PoC writing, report formatting, etc.) are Claude Code exclusive.
144148

@@ -276,7 +280,7 @@ Requires `security-events: write` permission.
276280

277281
### AI-Powered Review (Experimental)
278282

279-
Combine Weasel with Claude or OpenAI for intelligent security review:
283+
Combine Weasel with Claude, OpenAI, or Gemini for intelligent security review:
280284

281285
```yaml
282286
- uses: anthropics/claude-code-action@v1
@@ -295,8 +299,10 @@ AI can analyze findings, filter false positives, and suggest fixes.
295299
| `weasel-basic.yml` | Basic Weasel analysis with SARIF upload |
296300
| `weasel-claude.yml` | Claude filters false positives, outputs clean SARIF |
297301
| `weasel-openai.yml` | OpenAI Codex filters false positives, outputs clean SARIF |
302+
| `weasel-gemini.yml` | Gemini filters false positives, outputs clean SARIF |
298303
| `weasel-claude-diff.yml` | Claude reviews PR diff for logic bugs |
299304
| `weasel-openai-diff.yml` | OpenAI reviews PR diff for logic bugs |
305+
| `weasel-gemini-diff.yml` | Gemini reviews PR diff for logic bugs |
300306

301307

302308
### Verify Downloads

gh-actions-examples/weasel-claude-diff.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,11 @@
44
# This workflow:
55
# 1. Extracts the Solidity diff from the PR
66
# 2. Claude reviews changed lines for security issues
7-
# 3. Outputs simple JSON (validated) converts to SARIF
8-
# 4. SARIF uploaded findings appear INLINE on PR code
7+
# 3. Outputs simple JSON (validated) -> converts to SARIF
8+
# 4. SARIF uploaded -> findings appear INLINE on PR code
99
#
1010
# Architecture (reliable):
11-
# Claude Simple JSON (--json-schema validated) jq Valid SARIF
11+
# Claude -> Simple JSON (--json-schema validated) -> jq -> Valid SARIF
1212
#
1313
# Results show in:
1414
# - "Files changed" tab: Inline annotations on exact lines

gh-actions-examples/weasel-claude.yml

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@
1111
#
1212
# Requirements:
1313
# - ANTHROPIC_API_KEY secret in your repository
14-
# - See docs/AI_ACTIONS_INTEGRATION.md for full setup guide
1514

1615
name: Weasel + Claude (Filtered SARIF)
1716

@@ -149,11 +148,11 @@ jobs:
149148
150149
# SELF-CHECK BEFORE COMPLETING
151150
Before returning your response, verify:
152-
Did I read README.md for project context and known issues?
153-
Did I run `weasel_analyze` to get findings?
154-
Did I READ the actual code for each High/Medium finding?
155-
Did I execute `weasel run ... -o weasel-filtered.sarif`?
156-
Does the file `weasel-filtered.sarif` exist?
151+
- Did I read README.md for project context and known issues?
152+
- Did I run `weasel_analyze` to get findings?
153+
- Did I READ the actual code for each High/Medium finding?
154+
- Did I execute `weasel run ... -o weasel-filtered.sarif`?
155+
- Does the file `weasel-filtered.sarif` exist?
157156
158157
# Upload the filtered SARIF to GitHub Code Scanning
159158
- name: Upload SARIF

0 commit comments

Comments
 (0)