Files
osmedeus/test/testdata/workflows/test-sudo.yaml
T
j3ssie bd1434739e feat: add sudo authentication support with keepalive and variable renames
- Add sudo_auth() function for TTY prompts and credential management with optional 4-minute keepalive loop
- Add --sudo-aware CLI flag to detect workflows with sudo commands and offer authentication guidance
- Add sudo step scanner to detect sudo usage across all step types (bash, parallel, foreach) and nested structures
- Add parse_url_file() function to batch-process URLs with format directives, supporting bare IPs and CIDR notation
- Add portscan test data with realistic nmap JSONL samples
- Rename {{Workspace}} to {{TargetSpace}} in function examples for clarity
- Add sudo E2E tests covering tip message, flag acceptance, and non-sudo workflows
2026-02-16 23:46:33 +07:00

14 lines
260 B
YAML

name: test-sudo
kind: module
description: Test workflow with sudo commands for sudo-aware detection
tags: test,sudo
params:
- name: target
required: true
steps:
- name: sudo-step
type: bash
command: sudo echo "running as root for {{target}}"