File tree Expand file tree Collapse file tree 1 file changed +8
-8
lines changed
Expand file tree Collapse file tree 1 file changed +8
-8
lines changed Original file line number Diff line number Diff line change 77 required : true
88 type : string
99 description : " The original PR title"
10- # بقیه ورودیها را برای سادگی حذف کردم چون در اکسپلویت نقش ندارند
1110 version_number :
1211 required : false
1312 type : string
@@ -25,17 +24,18 @@ jobs:
2524 - name : Checkout
2625 uses : actions/checkout@v4
2726
28-
29- - name : Create Pull Request (VULNERABLE STEP)
27+ - name : Vulnerable Step Simulation
3028 run : |
31- echo "Simulating the vulnerable step..."
29+ echo "Simulating the vulnerable command..."
30+
3231
32+ function gh() { echo "GH Command Executed with args: $@"; }
33+ export -f gh
3334
35+ # --- VULNERABLE CODE START ---
3436 gh pr create \
3537 --title "${{ inputs.pr_title }} (cherry-pick #${{ inputs.pr_number }} for ${{ inputs.version_number }})" \
3638 --body "This is a test body" \
3739 --base "main" \
38- --head "feature-branch" || true
39-
40- env :
41- GH_TOKEN : ${{ secrets.GITHUB_TOKEN }}
40+ --head "feature-branch"
41+ # --- VULNERABLE CODE END ---
You can’t perform that action at this time.
0 commit comments