File tree Expand file tree Collapse file tree 1 file changed +12
-12
lines changed
Expand file tree Collapse file tree 1 file changed +12
-12
lines changed Original file line number Diff line number Diff line change @@ -24,23 +24,20 @@ jobs:
2424 steps :
2525 - name : Checkout repository
2626 uses : actions/checkout@v3
27- - name : Set up Java
28- uses : actions/setup-java@v3
29- with :
30- distribution : ' temurin'
31- java-version : ' 17'
32- - name : Move action
27+
28+ - name : Check local directory
3329 run : |
34- mkdir ../action
35- mv * ../action
36- mv ../action/sample-repo/* .
30+ ls -la
31+ ls -la sample-repo
32+
3733 - name : Run action
3834 id : run-action
39- uses : ./../ action
35+ uses : ./action
4036 with :
4137 target : push
42- sources : ${{ github.workspace }}
43- debug : true
38+ sources : ${{ github.workspace }}/sample-repo
39+ # debug: true
40+
4441 - name : Check run succeeded
4542 env :
4643 RUN_OUTPUT : ${{ steps.run-action.outputs.push-completed }}
@@ -51,14 +48,17 @@ jobs:
5148 echo "::error Test run failed!"
5249 exit 1
5350 fi
51+
5452 - name : Download results
5553 uses : actions/download-artifact@v3
5654 with :
5755 name : results-push
5856 path : artifact
57+
5958 - name : Check results
6059 working-directory : artifact
6160 run : |
61+ cat sca.sarif
6262 export SCA_RESULTS=`jq '.runs | map (.results | length) | add' sca.sarif`
6363 expectedScaResults=5
6464 echo "Got $SCA_RESULTS from SCA"
You can’t perform that action at this time.
0 commit comments