I don't think directly that is possible, i can think another way to configure sudo to allow only the specific commands your workflow needs without a password. For example, add a rule like automation ALL=(ALL) NOPASSWD: /path/to/install-agent.sh in /etc/sudoers.d/automation-user. This lets the workflow run those commands as root without a password prompt, while other sudo commands still require a password. This is more secure than full NOPASSWD because it limits which commands can run without authentication.