Skip to content

Commit c365b23

Browse files
authored
Create warden.yml (#175)
1 parent 9394775 commit c365b23

File tree

1 file changed

+30
-0
lines changed

1 file changed

+30
-0
lines changed

.github/workflows/warden.yml

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
name: Warden
2+
3+
on:
4+
pull_request:
5+
types: [opened, synchronize, reopened]
6+
7+
jobs:
8+
warden:
9+
runs-on: ubuntu-latest
10+
permissions:
11+
contents: read
12+
env:
13+
WARDEN_ANTHROPIC_API_KEY: ${{ secrets.WARDEN_ANTHROPIC_API_KEY }}
14+
WARDEN_MODEL: ${{ secrets.WARDEN_MODEL }}
15+
WARDEN_SENTRY_DSN: ${{ secrets.WARDEN_SENTRY_DSN }}
16+
steps:
17+
- name: Checkout Code
18+
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
19+
20+
- uses: actions/create-github-app-token@29824e69f54612133e76f7eaac726eef6c875baf # v2.2.1
21+
id: app-token
22+
with:
23+
app-id: ${{ secrets.WARDEN_APP_ID }}
24+
private-key: ${{ secrets.WARDEN_PRIVATE_KEY }}
25+
owner: ${{ github.repository_owner }} # access to all repos, cause this is triggered on org level
26+
27+
- uses: getsentry/warden@v0
28+
continue-on-error: true # throw no error for now
29+
with:
30+
github-token: ${{ steps.app-token.outputs.token }}

0 commit comments

Comments
 (0)