This repository was archived by the owner on May 9, 2025. It is now read-only.
File tree Expand file tree Collapse file tree 2 files changed +89
-0
lines changed Expand file tree Collapse file tree 2 files changed +89
-0
lines changed Original file line number Diff line number Diff line change 1+ name : Blackduck Scan PR
2+ on :
3+ pull_request_target :
4+ branches : [main]
5+ # push:
6+ # branches: [main]
7+
8+ permissions :
9+ checks : write
10+ pull-requests : write
11+
12+ # invoke forked detect-action as the one from synopsys is deprecated: https://github.com/mercedesbenzio/detect-action
13+ jobs :
14+ blackduck :
15+ runs-on : [ubuntu-latest]
16+ steps :
17+ - name : Checkout code
18+ uses : actions/checkout@v4
19+ - name : Set up Java 17
20+ uses : actions/setup-java@v3
21+ with :
22+ java-version : ' 17'
23+ distribution : ' temurin'
24+
25+ - name : Blackduck Full Scan
26+ if : ${{ github.event_name != 'pull_request_target' }}
27+ uses : mercedesbenzio/detect-action@v1
28+ env :
29+ DETECT_PROJECT_USER_GROUPS : opencomponentmodel
30+ DETECT_PROJECT_VERSION_DISTRIBUTION : SAAS
31+ DETECT_SOURCE_PATH : ./
32+ NODE_TLS_REJECT_UNAUTHORIZED : true
33+ with :
34+ scan-mode : INTELLIGENT
35+ github-token : ${{ secrets.GITHUB_TOKEN }}
36+ blackduck-url : ${{ secrets.BLACKDUCK_URL }}
37+ blackduck-api-token : ${{ secrets.BLACKDUCK_API_TOKEN }}
38+
39+ - name : Blackduck PR Scan
40+ if : ${{ github.event_name == 'pull_request_target' }}
41+ uses : mercedesbenzio/detect-action@v1
42+ env :
43+ DETECT_PROJECT_USER_GROUPS : opencomponentmodel
44+ DETECT_PROJECT_VERSION_DISTRIBUTION : SAAS
45+ DETECT_SOURCE_PATH : ./
46+ NODE_TLS_REJECT_UNAUTHORIZED : true
47+ BLACKDUCK_SKIP_PHONE_HOME : true
48+ # LOGGING_LEVEL_COM_SYNOPSYS_INTEGRATION: DEBUG
49+ with :
50+ scan-mode : RAPID
51+ github-token : ${{ secrets.GITHUB_TOKEN }}
52+ blackduck-url : ${{ secrets.BLACKDUCK_URL }}
53+ blackduck-api-token : ${{ secrets.BLACKDUCK_API_TOKEN }}
54+ detect-version : 8.8.0
55+
Original file line number Diff line number Diff line change 1+ name : Blackduck Scan Cronjob
2+ on :
3+ schedule :
4+ - cron : ' 15 1 * * 0'
5+
6+ permissions :
7+ checks : write
8+
9+ jobs :
10+ build :
11+ runs-on : [ ubuntu-latest ]
12+ steps :
13+ - name : Checkout code
14+ uses : actions/checkout@v4
15+
16+ - name : Set up Java 17
17+ uses : actions/setup-java@v3
18+ with :
19+ java-version : ' 17'
20+ distribution : ' temurin'
21+
22+ - name : Blackduck Full Scan
23+ uses : mercedesbenzio/detect-action@v1
24+ env :
25+ DETECT_PROJECT_USER_GROUPS : opencomponentmodel
26+ DETECT_PROJECT_VERSION_DISTRIBUTION : SAAS
27+ DETECT_SOURCE_PATH : ./
28+ NODE_TLS_REJECT_UNAUTHORIZED : true
29+ with :
30+ scan-mode : INTELLIGENT
31+ github-token : ${{ secrets.GITHUB_TOKEN }}
32+ blackduck-url : ${{ secrets.BLACKDUCK_URL }}
33+ blackduck-api-token : ${{ secrets.BLACKDUCK_API_TOKEN }}
34+ detect-version : 8.8.0
You can’t perform that action at this time.
0 commit comments