File tree 2 files changed +27
-13
lines changed
2 files changed +27
-13
lines changed Original file line number Diff line number Diff line change @@ -19,11 +19,11 @@ jobs:
19
19
- name : Build Project
20
20
run : make build
21
21
22
- - name : Run Synopsys Detect
23
- uses : synopsys-sig/detect -action@v0.3.4
22
+ - name : Black Duck Full Scan
23
+ uses : synopsys-sig/synopsys -action@v1.13.1
24
24
with :
25
- scan-mode : INTELLIGENT
26
- github-token : ${{ secrets.GITHUB_TOKEN }}
27
- detect-version : 8.10.0
28
- blackduck-url : ${{ secrets.BLACKDUCK_URL }}
29
- blackduck-api-token : ${{ secrets.BLACKDUCK_API_TOKEN }}
25
+ blackduck_url : ${{ secrets.BLACKDUCK_URL }}
26
+ blackduck_token : ${{ secrets.BLACKDUCK_API_TOKEN }}
27
+ github_token : ${{ secrets.GITHUB_TOKEN }}
28
+ blackduck_scan_full : true
29
+ blackduck_scan_failure_severities : ' BLOCKER,CRITICAL
Original file line number Diff line number Diff line change @@ -21,10 +21,24 @@ jobs:
21
21
- name : Build Project
22
22
run : make build
23
23
24
- - name : Run Synopsys Detect
25
- uses : synopsys-sig/detect-action@v0.3.4
24
+ - name : Black Duck Full Scan
25
+ if : ${{ github.event_name != 'pull_request' }}
26
+ uses : synopsys-sig/synopsys-action@v1.13.1
26
27
with :
27
- github-token : ${{ secrets.GITHUB_TOKEN }}
28
- detect-version : 8.10.0
29
- blackduck-url : ${{ secrets.BLACKDUCK_URL }}
30
- blackduck-api-token : ${{ secrets.BLACKDUCK_API_TOKEN }}
28
+ blackduck_url : ${{ secrets.BLACKDUCK_URL }}
29
+ blackduck_token : ${{ secrets.BLACKDUCK_API_TOKEN }}
30
+ github_token : ${{ secrets.GITHUB_TOKEN }}
31
+ blackduck_scan_full : true
32
+ blackduck_scan_failure_severities : ' BLOCKER,CRITICAL'
33
+
34
+ - name : Black Duck PR Scan
35
+ if : ${{ github.event_name == 'pull_request' }}
36
+ uses : synopsys-sig/synopsys-action@v1.13.1
37
+ env :
38
+ DETECT_PROJECT_VERSION_NAME : ${{ github.base_ref }}
39
+ with :
40
+ blackduck_url : ${{ secrets.BLACKDUCK_URL }}
41
+ blackduck_token : ${{ secrets.BLACKDUCK_API_TOKEN }}
42
+ github_token : ${{ secrets.GITHUB_TOKEN }}
43
+ blackduck_scan_full : false
44
+ blackduck_prComment_enabled : true
You can’t perform that action at this time.
0 commit comments