Skip to content

Commit 912c7c2

Browse files
authored
Merge pull request #4 from m1el/guardspine/codeguard-install
Install GuardSpine CodeGuard
2 parents 9a2b86d + 57d7dcf commit 912c7c2

2 files changed

Lines changed: 26 additions & 20 deletions

File tree

.github/workflows/codeguard.yml

Lines changed: 9 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -1,38 +1,27 @@
1-
name: CodeGuard
2-
1+
name: CodeGuard Governance
32
on:
4-
push:
5-
branches: [master]
63
pull_request:
7-
branches: [master]
4+
types: [opened, synchronize, reopened]
85

96
permissions:
107
contents: read
118
pull-requests: write
129

1310
jobs:
1411
codeguard:
12+
name: GuardSpine CodeGuard
1513
runs-on: ubuntu-latest
16-
environment: codeguard-check
1714
steps:
1815
- uses: actions/checkout@v4
16+
with:
17+
fetch-depth: 0
1918

20-
- name: Run CodeGuard analysis
21-
uses: DNYoussef/codeguard-action@main
19+
- uses: DNYoussef/codeguard-action@v1
2220
with:
23-
github_token: ${{ secrets.GITHUB_TOKEN }}
2421
risk_threshold: L3
2522
rubric: default
23+
github_token: ${{ github.token }}
24+
guardspine_api_key: ${{ secrets.GUARDSPINE_API_KEY }}
25+
guardspine_api_url: https://backend-production-0f5d.up.railway.app/api/v1
2626
post_comment: "true"
2727
generate_bundle: "true"
28-
fail_on_high_risk: "true"
29-
ai_review: "true"
30-
openrouter_api_key: ${{ secrets.OPENROUTER_API_KEY }}
31-
32-
- name: Upload evidence bundle
33-
if: always()
34-
uses: actions/upload-artifact@v4
35-
with:
36-
name: codeguard-evidence-bundle
37-
path: .guardspine/
38-
retention-days: 90

.guardspine/config.yml

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
# GuardSpine CodeGuard Configuration
2+
# Generated during onboarding
3+
4+
api_url: https://backend-production-0f5d.up.railway.app/api/v1
5+
project_id: proj-6f3ab4e6183d
6+
7+
rubric_packs:
8+
- security-baseline
9+
- pii-shield
10+
11+
evidence:
12+
upload: true
13+
format: json
14+
sign: true
15+
16+
notifications:
17+
slack_channel:

0 commit comments

Comments
 (0)