-
Notifications
You must be signed in to change notification settings - Fork 0
/
blackduck-intelligent-scheduled.yml
39 lines (33 loc) · 1.19 KB
/
blackduck-intelligent-scheduled.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
name: Black Duck Intelligent Scan
on:
# Run intelligent scans on schedule at 11:05 pm every night
schedule:
- cron: '5 23 * * *'
# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:
jobs:
build:
# The type of runner that the job will run on
runs-on: ubuntu-latest
# Steps represent a sequence of tasks that will be executed as part of the job
steps:
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
- uses: actions/checkout@v2
# Set up JDK 11 in runtime environment
- name: Set up JDK 11
uses: actions/setup-java@v2
with:
java-version: '11'
distribution: 'adopt'
# Run Synopsys Detect
- name: Run Synopsys Detect
uses: synopsys-sig/detect-action@main
# This server does not require a local CA Cert
#env:
# NODE_EXTRA_CA_CERTS: ${{ secrets.LOCAL_CA_CERT_PATH }}
with:
scan-mode: INTELLIGENT
github-token: ${{ secrets.GITHUB_TOKEN }}
detect-version: 7.12.0
blackduck-url: ${{ secrets.BLACKDUCK_URL }}
blackduck-api-token: ${{ secrets.BLACKDUCK_API_TOKEN }}