mirror of
https://github.com/getsentry/sentry-for-ai.git
synced 2026-09-14 14:28:22 +08:00
841692ac84
Extract validate-skill-tree from the warden workflow into a dedicated .github/workflows/validate-skill-tree.yml. Keeps concerns separate — warden handles AI code review, skill tree validation handles structural integrity. Both trigger on the same PR events but run independently.
30 lines
754 B
YAML
30 lines
754 B
YAML
name: Warden
|
|
|
|
# contents: write required for resolving review threads via GraphQL
|
|
# See: https://github.com/orgs/community/discussions/44650
|
|
permissions:
|
|
contents: write
|
|
|
|
on:
|
|
pull_request:
|
|
types: [opened, synchronize, reopened]
|
|
|
|
jobs:
|
|
review:
|
|
runs-on: ubuntu-latest
|
|
env:
|
|
WARDEN_ANTHROPIC_API_KEY: ${{ secrets.WARDEN_ANTHROPIC_API_KEY }}
|
|
WARDEN_MODEL: ${{ secrets.WARDEN_MODEL }}
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
|
|
- uses: actions/create-github-app-token@v1
|
|
id: app-token
|
|
with:
|
|
app-id: ${{ secrets.WARDEN_APP_ID }}
|
|
private-key: ${{ secrets.WARDEN_PRIVATE_KEY }}
|
|
|
|
- uses: getsentry/warden@v0
|
|
with:
|
|
github-token: ${{ steps.app-token.outputs.token }}
|