Skip to content

Commit fd4648a

Browse files
Update cherry-pick-single.yml
1 parent 7a45b50 commit fd4648a

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

.github/workflows/cherry-pick-single.yml

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@ on:
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 ---

0 commit comments

Comments
 (0)