Commit 359e998
Trigger release notes via workflow_run not release event (#5490)
* Trigger release notes via workflow_run not release event
The Generate Release Notes workflow ran anthropics/claude-code-action
on the `release: published` event, but that action only accepts a fixed
set of event types and rejects `release` with "Unsupported event type:
release", failing the step before the skill could run.
Switch the trigger to workflow_run on "Create Release Tag" (the workflow
that creates the tag and GitHub Release). workflow_run is a supported
event and is not subject to the GITHUB_TOKEN downstream-trigger limit.
Resolve the tag from the VERSION file at the run's head commit and keep
workflow_dispatch for manual runs.
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
* Pass github_token to claude-code-action to skip OIDC
Without a github_token input, the action mints its own token via OIDC
(the Claude GitHub App flow), which fails with "Could not fetch an OIDC
token" unless the workflow has id-token: write and the app installed.
We only need the API key for Anthropic auth and GH_TOKEN for the skill's
read-only gh calls, so pass github.token directly to bypass OIDC.
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
* Check out default branch, not workflow_run head ref
Checking out github.event.workflow_run.head_sha in a workflow that has
access to secrets is the untrusted-checkout anti-pattern (flagged by
CodeQL actions/untrusted-checkout, high). The head ref was only used to
read VERSION; since "Create Release Tag" only runs on a VERSION push to
main, main HEAD already is the release commit, so checking out the
default branch yields the same VERSION without trusting an event ref.
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
---------
Co-authored-by: Claude Opus 4.8 (1M context) <noreply@anthropic.com>1 parent 629b9b4 commit 359e998
1 file changed
Lines changed: 48 additions & 16 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | | - | |
4 | | - | |
5 | | - | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
6 | 6 | | |
7 | 7 | | |
8 | 8 | | |
9 | 9 | | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
10 | 17 | | |
11 | 18 | | |
12 | 19 | | |
| |||
17 | 24 | | |
18 | 25 | | |
19 | 26 | | |
20 | | - | |
21 | | - | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
22 | 30 | | |
23 | 31 | | |
24 | 32 | | |
| |||
36 | 44 | | |
37 | 45 | | |
38 | 46 | | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
39 | 52 | | |
40 | 53 | | |
41 | 54 | | |
42 | 55 | | |
43 | 56 | | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
44 | 71 | | |
45 | 72 | | |
46 | 73 | | |
47 | | - | |
48 | 74 | | |
49 | 75 | | |
50 | | - | |
51 | | - | |
52 | | - | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
53 | 87 | | |
54 | 88 | | |
55 | 89 | | |
56 | 90 | | |
57 | 91 | | |
58 | | - | |
59 | | - | |
60 | | - | |
61 | | - | |
62 | | - | |
63 | | - | |
64 | | - | |
65 | 92 | | |
66 | 93 | | |
67 | 94 | | |
| |||
79 | 106 | | |
80 | 107 | | |
81 | 108 | | |
| 109 | + | |
| 110 | + | |
| 111 | + | |
| 112 | + | |
| 113 | + | |
82 | 114 | | |
83 | 115 | | |
84 | 116 | | |
| |||
0 commit comments