Commit ed3ed8f
Randomize GITHUB_ENV delimiter in commit-message check (#1073)
Derive the GITHUB_ENV heredoc delimiter from a per-run GUID instead of a
fixed marker committed to the repo. gitlint echoes the PR's own commit
messages into that block, so a static marker could be reproduced in a
commit to close the heredoc early and inject environment variables into
later steps. A random delimiter cannot be guessed, so the content stays
inert.
Co-authored-by: Claude Opus 4.8 <noreply@anthropic.com>1 parent 6dc37be commit ed3ed8f
1 file changed
Lines changed: 7 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
36 | 36 | | |
37 | 37 | | |
38 | 38 | | |
39 | | - | |
40 | | - | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
41 | 45 | | |
42 | | - | |
| 46 | + | |
43 | 47 | | |
44 | 48 | | |
45 | 49 | | |
| |||
0 commit comments