Skip to content

The cross-harness, self-improving memory layer for AI agents. Join our community: https://discord.com/invite/zdNChS2fBu

Let Claude app pushes be reviewed and skip Dependabot runs

Clauded96d60ac46a3
diff --git a/.github/workflows/claude-code-review.yml b/.github/workflows/claude-code-review.yml
index 5c67fb0b..d07bbf97 100644
--- a/.github/workflows/claude-code-review.yml
+++ b/.github/workflows/claude-code-review.yml
@@ -14,10 +14,11 @@ concurrency:
jobs:
review:
- # Skip drafts, and fork PRs (secrets are not available to them).
+ # Skip drafts, fork PRs, and Dependabot (none of them get this repo's secrets).
if: >-
!github.event.pull_request.draft &&
- github.event.pull_request.head.repo.full_name == github.repository
+ github.event.pull_request.head.repo.full_name == github.repository &&
+ github.actor != 'dependabot[bot]'
runs-on: ubuntu-latest
timeout-minutes: 30
permissions:
@@ -34,6 +35,8 @@ jobs:
# Workflow token: comments come from github-actions[bot] and no GitHub App is needed.
# To post as claude[bot], install the Claude GitHub App, drop this, and add id-token: write.
github_token: ${{ secrets.GITHUB_TOKEN }}
+ # The action refuses bot actors by default; let pushes from the Claude app be reviewed.
+ allowed_bots: "claude[bot]"
prompt: |
REPO: ${{ github.repository }}
PR NUMBER: ${{ github.event.pull_request.number }}
diff --git a/.github/workflows/claude-security-review.yml b/.github/workflows/claude-security-review.yml
index 28b3514b..b2308e4c 100644
--- a/.github/workflows/claude-security-review.yml
+++ b/.github/workflows/claude-security-review.yml
@@ -17,11 +17,12 @@ permissions:
jobs:
security:
- # Skip drafts, and fork PRs (secrets are not available to them; the action is not
- # hardened against prompt injection, so it should only see trusted PRs).
+ # Skip drafts, fork PRs, and Dependabot (none of them get this repo's secrets; the action
+ # is not hardened against prompt injection, so it should only see trusted PRs).
if: >-
!github.event.pull_request.draft &&
- github.event.pull_request.head.repo.full_name == github.repository
+ github.event.pull_request.head.repo.full_name == github.repository &&
+ github.actor != 'dependabot[bot]'
runs-on: ubuntu-latest
timeout-minutes: 30
steps: