Skip to main content
← Back to list
01Issue
BugShippedSwamp CLIPublic

Relationships

#2491 Foreign CEL like GitHub Actions ${{ github.sha }} in a global argument fails validate and throws when the method reads it

Opened by hammz · 9/24/2026· Shipped 9/24/2026

What happens

A global argument that carries another templating system's ${{ ... }} text, for example GitHub Actions ${{ github.sha }}, cannot be used, even though swamp already decides that such CEL is not its own.

Definition:

globalArguments:
  message: deploy ${{ github.sha }}
  • swamp model validate fails in Expression paths: Invalid expression github.sha ... Missing model. prefix and path structure. The error comes from validateExpressionContent in src/domain/models/validation_service.ts, which does not consult isSwampExpression.
  • swamp model method run fails when the method reads the field: Unresolved expression in globalArguments.message. The definition pass (definition_expression_pass.ts) leaves non-swamp CEL raw on purpose, but the globalArgs Proxy in src/domain/models/method_execution_service.ts (around line 245) throws on any leftover ${{ without asking whether it is swamp's.
  • swamp workflow run fails before the step runs, because WorkflowExecutionService calls validateModel and fails fast.

Expected

Consistent with #2397 (#2598), which added isSwampExpression so that ${{ github.sha }} written for another system passes through as literal text: validate should not flag it, and the method should receive the text unchanged.

Notes

The two halves must move together. Fixing validate alone would turn validate green while the run still throws.

Found during triage of #2424 (scenario I in the repro). Repro: swamp model validate / swamp model method run on a model whose string global argument is deploy ${{ github.sha }}.

02Bog Flow
✓OPEN✓TRIAGED✓IN PROGRESS✓SHIPPED+ 3 MOREASSIGNED+ 5 MOREREVIEW+ 17 MOREPR_MERGED+ 2 MORESESSION_SUMMARIZED

Shipped

9/24/2026, 9:36:40 PM

Click a lifecycle step above to view its details.

03Sludge Pulse
skunk-ape assigned skunk-ape9/24/2026, 6:04:16 PM
hammz assigned hammz9/24/2026, 6:51:43 PM

Sign in to post a ripple.