Skip to content

Workflow file for this run

name: Sudo Flow
on:
workflow_dispatch:
permissions:
contents: read
# env:
# SSL_CERT_DIR: "/home/mitmproxyuser/.mitmproxy/"
jobs:
sudo-flow:
name: Sudo Flow
runs-on: ubuntu-latest
steps:
- run: ps aux
- run: sudo useradd agent
- run: sudo mkdir /home/agent
- run: sudo chown -R agent /home/agent
- run: sudo usermod -aG sudo agent
- run: sudo cat /etc/sudoers
- run: sudo cp /etc/sudoers /tmp/sudoers.bak
- run: 'sudo echo "agent ALL=(ALL) NOPASSWD:ALL" | (EDITOR="tee -a" visudo)

Check failure on line 26 in .github/workflows/sudo-flow.yml

View workflow run for this annotation

GitHub Actions / .github/workflows/sudo-flow.yml

Invalid workflow file

You have an error in your yaml syntax on line 26