Skip to content

Commit 46b16e5

Browse files
dbrattliclaude
andcommitted
ci(repo-assist): trigger downstream workflows on bot-created PRs
PRs created by Repo Assist are authored under GITHUB_TOKEN, which by design does not trigger pull_request / pull_request_target workflows. The result was that Lint PR (conventional-commit check) and build did not run on PRs like #4560 and the bot's malformed title slipped to main. Wire up `github-token-for-extra-empty-commit` so safe-outputs pushes one extra empty commit under a PAT, which restores normal CI triggering. The `GH_AW_CI_TRIGGER_TOKEN` repo secret (fine-grained PAT with `contents:write`) needs to be created in repo settings for this to take effect. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
1 parent 43bf948 commit 46b16e5

3 files changed

Lines changed: 32 additions & 25 deletions

File tree

.github/aw/actions-lock.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,10 @@
55
"version": "v9.0.0",
66
"sha": "d746ffe35508b1917358783b479e04febd2b8f71"
77
},
8-
"github/gh-aw-actions/setup@v0.69.1": {
8+
"github/gh-aw-actions/setup@v0.68.3": {
99
"repo": "github/gh-aw-actions/setup",
10-
"version": "v0.69.1",
11-
"sha": "b2d32ac2825a5c57cb99851c2ca00094d5e131a6"
10+
"version": "v0.68.3",
11+
"sha": "ba90f2186d7ad780ec640f364005fa24e797b360"
1212
},
1313
"github/gh-aw/actions/setup@v0.69.1": {
1414
"repo": "github/gh-aw/actions/setup",

.github/workflows/repo-assist.lock.yml

Lines changed: 22 additions & 22 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.github/workflows/repo-assist.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -68,11 +68,18 @@ safe-outputs:
6868
labels: [automation, repo-assist]
6969
protected-files: fallback-to-issue
7070
max: 4
71+
# Push an extra empty commit under a PAT so that `pull_request` /
72+
# `pull_request_target` workflows (e.g. Lint PR, build) actually fire on
73+
# PRs created here. Commits authored by GITHUB_TOKEN do not trigger
74+
# downstream workflows. Requires the GH_AW_CI_TRIGGER_TOKEN secret to
75+
# be set in repo settings (fine-grained PAT with contents:write).
76+
github-token-for-extra-empty-commit: ${{ secrets.GH_AW_CI_TRIGGER_TOKEN }}
7177
push-to-pull-request-branch:
7278
target: "*"
7379
title-prefix: "[Repo Assist] "
7480
max: 4
7581
protected-files: fallback-to-issue
82+
github-token-for-extra-empty-commit: ${{ secrets.GH_AW_CI_TRIGGER_TOKEN }}
7683
create-issue:
7784
title-prefix: "[Repo Assist] "
7885
labels: [automation, repo-assist]

0 commit comments

Comments
 (0)