File tree 1 file changed +11
-4
lines changed
1 file changed +11
-4
lines changed Original file line number Diff line number Diff line change 4
4
pull_request :
5
5
6
6
jobs :
7
- trigger :
8
- name : Upload artifact
7
+ get-artifacts :
8
+ name : Get required artifacts
9
9
runs-on : ubuntu-latest
10
10
steps :
11
11
- run : |
12
- mkdir -p artifacts/parent-artifacts/
13
12
printf "${{ github.sha }}" > artifacts/parent-artifacts/sha.txt
14
13
printf "pull_request" > artifacts/parent-artifacts/event.txt
15
14
printf "success" > artifacts/parent-artifacts/conclusion.txt
16
15
printf "" > artifacts/parent-artifacts/action.txt
17
16
# PAYLOAD
18
- printf "foo'; console.log('shouldnt print'); //" > artifacts/parent-artifacts/ref.txt
17
+ printf "pull_request\nBASH_ENV=$(echo 'ENV-VAR INJECTION')" > artifacts/parent-artifacts/ref.txt
18
+
19
+
20
+ - name : Upload parent artifacts
21
+ uses : actions/upload-artifact@v4
22
+ with :
23
+ name : parent-artifacts
24
+ path : artifacts
25
+ if-no-files-found : error
You can’t perform that action at this time.
0 commit comments