浏览代码

docs: GHSA-gjm6-x9mg-qxpj upgrade note for webhook trigger chains

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
jamesread 2 天之前
父节点
当前提交
65e90e0001

+ 1 - 1
docs/modules/ROOT/pages/action_execution/onwebhook.adoc

@@ -7,7 +7,7 @@ OliveTin provides a dedicated webhook endpoint at `/webhooks` that can receive w
 
 == Basic Configuration
 
-To configure an action to run on a webhook, add the `execOnWebhook` property to your action. Webhook-triggered actions **must** use `exec:` (not `shell:` or `shellAfterCompleted`). This also applies to any action started through `triggers` from a webhook-triggered action, at any depth of the trigger chain.
+To configure an action to run on a webhook, add the `execOnWebhook` property to your action. Webhook-triggered actions **must** use `exec:` (not `shell:` or `shellAfterCompleted`). This also applies to any action started through `triggers` from a webhook-triggered action, at any depth of the trigger chain (see xref:upgrade/upgrade_notes.adoc#webhook-trigger-chains-exec-only[Upgrade Notes]).
 
 [source,yaml]
 .`config.yaml`

+ 9 - 0
docs/modules/ROOT/pages/upgrade/upgrade_notes.adoc

@@ -3,6 +3,15 @@
 
 OliveTin releases are published to GitHub, and the release notes are contained there. This page includes a summary of "Upgrade Notes" for breaking changes between releases.
 
+== Next release (unreleased)
+
+[#webhook-trigger-chains-exec-only]
+=== Actions triggered from webhooks can no longer use `shell:`
+
+Webhook-triggered actions were already required to use `exec:`. This rule now also applies to every action started through `triggers` from a webhook-triggered action, at any depth, including `shellAfterCompleted`. Previously these triggered actions could still run `shell:` commands.
+
+If a webhook action in your config triggers an action that uses `shell:` or `shellAfterCompleted`, that action will now fail with "webhooks cannot use Shell execution". Change it to use `exec:` instead. See xref:action_execution/shellvsexec.adoc[Shell vs Exec].
+
 == 2024.08.14
 
 === Navigation change - Subpaths no longer supported