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 @@ -24,23 +24,20 @@ jobs:
24
24
steps :
25
25
- name : Checkout repository
26
26
uses : actions/checkout@v3
27
- - name : Set up Java
28
- uses : actions/setup-java@v3
29
- with :
30
- distribution : ' temurin'
31
- java-version : ' 17'
27
+
32
28
- name : Move action
33
29
run : |
34
30
mkdir ../action
35
31
mv * ../action
36
- mv ../action/sample-repo/* .
32
+
37
33
- name : Run action
38
34
id : run-action
39
35
uses : ./../action
40
36
with :
41
37
target : push
42
- sources : ${{ github.workspace }}
43
- debug : true
38
+ sources : sample-repo
39
+ # debug: true
40
+
44
41
- name : Check run succeeded
45
42
env :
46
43
RUN_OUTPUT : ${{ steps.run-action.outputs.push-completed }}
@@ -51,14 +48,17 @@ jobs:
51
48
echo "::error Test run failed!"
52
49
exit 1
53
50
fi
51
+
54
52
- name : Download results
55
53
uses : actions/download-artifact@v3
56
54
with :
57
55
name : results-push
58
56
path : artifact
57
+
59
58
- name : Check results
60
59
working-directory : artifact
61
60
run : |
61
+ cat sca.sarif
62
62
export SCA_RESULTS=`jq '.runs | map (.results | length) | add' sca.sarif`
63
63
expectedScaResults=5
64
64
echo "Got $SCA_RESULTS from SCA"
You can’t perform that action at this time.
0 commit comments