Originally created by @falnos24865 on GitHub (Jul 5, 2025).
The primary issue I have using actions is that you cannot pass in different values at run time. This limits the scope of what they can do. For example I would like to have an action that allows a user to deploy a chosen branch to a test site. Right now this cannot be done (without version clunky workarounds using variables, and that does not scale well).
Originally created by @falnos24865 on GitHub (Jul 5, 2025).
The primary issue I have using actions is that you cannot pass in different values at run time. This limits the scope of what they can do. For example I would like to have an action that allows a user to deploy a chosen branch to a test site. Right now this cannot be done (without version clunky workarounds using variables, and that does not scale well).
Since 1.19.0, Actions can take args, available to use in the script as ARGS. I still need to document this, so here is an example:
const{REPO}=ARGSas{REPO: string};if(!REPO){throw"Must pass REPO arg with repo name";}constrepo=awaitkomodo.read("GetRepo",{repo: REPO});console.log(repo);
Then in Procedures, you are able to configure the args to pass.
You can also pass them when calling the Action with km CLI: km run action <name> "REPO=<repo-name>"
Let me know if you have any thoughts
@mbecker20 commented on GitHub (Aug 30, 2025):
Since 1.19.0, Actions can take args, available to use in the script as `ARGS`. I still need to document this, so here is an example:
```ts
const { REPO } = ARGS as { REPO: string };
if (!REPO) {
throw "Must pass REPO arg with repo name";
}
const repo = await komodo.read("GetRepo", { repo: REPO});
console.log(repo);
```
Then in Procedures, you are able to configure the args to pass.
You can also pass them when calling the Action with `km` CLI:
`km run action <name> "REPO=<repo-name>"`
Let me know if you have any thoughts
I have a similar request: the ability to pass a parameter in the body of a procedure webhook (e.g., via the GitLab Listener) and have that value injected into the args or body object of the script actions. Currently, using global variables as a workaround creates significant race conditions in a monorepo setup where multiple stacks are triggered simultaneously.
@Manuki-San commented on GitHub (Feb 13, 2026):
I have a similar request: the ability to pass a parameter in the body of a procedure webhook (e.g., via the GitLab Listener) and have that value injected into the args or body object of the script actions. Currently, using global variables as a workaround creates significant race conditions in a monorepo setup where multiple stacks are triggered simultaneously.
Example
```bash
curl -f -k -v -X POST "https://komodo.home.lan/listener/gitlab/procedure/698ec60b37f550a49e54d783/master" \
-H "X-Gitlab-Token: $KOMODO_GLOBAL_SECRET" \
-H "X-Gitlab-Event: Push Hook" \
-H "Content-Type: application/json" \
-d '{
"ref": "refs/heads/master",
"stack_name": "nodered",
"repository": { "name": "homelab-docker" }
}
```
```typescript
const stack = args.stack_name;
await komodo.stacks.deploy(stack);
```
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
Originally created by @falnos24865 on GitHub (Jul 5, 2025).
The primary issue I have using actions is that you cannot pass in different values at run time. This limits the scope of what they can do. For example I would like to have an action that allows a user to deploy a chosen branch to a test site. Right now this cannot be done (without version clunky workarounds using variables, and that does not scale well).
@mbecker20 commented on GitHub (Aug 30, 2025):
Since 1.19.0, Actions can take args, available to use in the script as
ARGS. I still need to document this, so here is an example:Then in Procedures, you are able to configure the args to pass.
You can also pass them when calling the Action with
kmCLI:km run action <name> "REPO=<repo-name>"Let me know if you have any thoughts
@Manuki-San commented on GitHub (Feb 13, 2026):
I have a similar request: the ability to pass a parameter in the body of a procedure webhook (e.g., via the GitLab Listener) and have that value injected into the args or body object of the script actions. Currently, using global variables as a workaround creates significant race conditions in a monorepo setup where multiple stacks are triggered simultaneously.
Example