Skip to content

Commit c512f83

Browse files
authored
pipeline config
1 parent 5330e77 commit c512f83

1 file changed

Lines changed: 53 additions & 1 deletion

File tree

Lines changed: 53 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1,53 @@
1-
//TB
1+
name: Claude Security Review
2+
3+
on:
4+
pull_request:
5+
types: [opened, synchronize, ready_for_review, reopened]
6+
# Optional: only run when security-sensitive areas change
7+
# paths:
8+
# - "src/auth/**"
9+
# - "src/api/**"
10+
# - "infra/**"
11+
# - "config/**"
12+
13+
jobs:
14+
security:
15+
runs-on: ubuntu-latest
16+
17+
# Least privilege for PR review + required OIDC for the Claude GitHub App
18+
permissions:
19+
contents: read
20+
pull-requests: write
21+
id-token: write
22+
23+
steps:
24+
- name: Checkout PR
25+
uses: actions/checkout@v6
26+
with:
27+
fetch-depth: 1
28+
29+
- name: Claude security review
30+
uses: anthropics/claude-code-action@v1
31+
with:
32+
anthropic_api_key: ${{ secrets.ANTHROPIC_API_KEY }}
33+
prompt: |
34+
REPO: ${{ github.repository }}
35+
PR NUMBER: ${{ github.event.pull_request.number }}
36+
37+
Perform a security-focused review. Prioritize:
38+
- AuthN/AuthZ issues (BOLA/BFLA/BOPLA)
39+
- Injection (SQLi/NoSQLi/Command)
40+
- SSRF, deserialization, crypto misuse
41+
- Sensitive data exposure, logging issues
42+
- Security misconfig in code/config
43+
44+
For each finding, include:
45+
Severity: CRITICAL/HIGH/MEDIUM/LOW
46+
What/Where
47+
Impact
48+
Recommendation
49+
50+
Use inline comments for line-level issues and one top-level summary comment.
51+
52+
claude_args: |
53+
--allowedTools "mcp__github_inline_comment__create_inline_comment,Bash(gh pr comment:*),Bash(gh pr diff:*),Bash(gh pr view:*)"

0 commit comments

Comments
 (0)