Commit 909e79c
fix: release notification secrets context and script injection (#50)
* fix: release notification — secrets context and script injection
- Move secrets check from job-level if to step-level env (secrets
context is not available in jobs.<id>.if — only github, inputs,
needs, and vars are allowed)
- Pass release event data via env variables instead of direct ${{ }}
interpolation in run block to prevent script injection
- Skip Slack post if no message was built
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
* fix: build full JSON payload in shell to prevent JSON injection
Use jq to build the Slack payload JSON in the shell step instead of
interpolating untrusted values into the payload block. This ensures
release names with quotes or backslashes produce valid JSON.
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
---------
Co-authored-by: Claude Opus 4.6 (1M context) <noreply@anthropic.com>1 parent ee40136 commit 909e79c
1 file changed
Lines changed: 8 additions & 7 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
7 | 7 | | |
8 | 8 | | |
9 | 9 | | |
10 | | - | |
11 | 10 | | |
12 | | - | |
| 11 | + | |
13 | 12 | | |
| 13 | + | |
14 | 14 | | |
| 15 | + | |
15 | 16 | | |
16 | 17 | | |
17 | 18 | | |
18 | 19 | | |
19 | | - | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
20 | 23 | | |
21 | 24 | | |
| 25 | + | |
22 | 26 | | |
23 | 27 | | |
24 | 28 | | |
25 | 29 | | |
26 | | - | |
27 | | - | |
28 | | - | |
29 | | - | |
| 30 | + | |
0 commit comments