Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .agents/scripts/tests/test-reusable-workflow-caller.sh
Original file line number Diff line number Diff line change
Expand Up @@ -382,12 +382,12 @@ def evaluate(event_name, actor, is_pr, reply_id):
"github.event.issue.pull_request": repr(is_pr),
"github.event_name": repr(event_name),
"github.actor": repr(actor),
"null": "None",
"&&": "and",
"||": "or",
}
for source, target in replacements.items():
candidate = candidate.replace(source, target)
candidate = re.sub(r"\bnull\b", "None", candidate)
Comment thread
marcusquinn marked this conversation as resolved.
Outdated
if re.search(r"[^A-Za-z0-9_\s\[\]'\"().=-]", candidate):
raise ValueError(f"unsupported eligibility token: {candidate}")
return bool(eval(candidate, {"__builtins__": {}}, {}))
Expand Down
Loading