-
Notifications
You must be signed in to change notification settings - Fork 0
46 lines (39 loc) · 1.03 KB
/
codeguardian.yml
File metadata and controls
46 lines (39 loc) · 1.03 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
name: 🤖 CodeGuardian Analysis
on:
pull_request:
branches: [ main, develop ]
push:
branches: [ main ]
jobs:
review:
name: Advanced Agentic Review
runs-on: ubuntu-latest
steps:
- name: Checkout Code
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: '3.12'
cache: 'pip'
- name: Install Dependencies
run: |
pip install -r requirements.txt
- name: Run CodeGuardian
env:
GOOGLE_API_KEY: ${{ secrets.GOOGLE_API_KEY }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
python src/main.py review . \
--scope diff \
--severity medium \
--format all \
--output ./reports
- name: Upload Review Reports
uses: actions/upload-artifact@v4
with:
name: codeguardian-reports
path: ./reports/
retention-days: 7