Skip to content

Commit 5e4ac89

Browse files
Create black-duck-security-scan-ci.yml
1 parent 75abbb3 commit 5e4ac89

File tree

1 file changed

+54
-0
lines changed

1 file changed

+54
-0
lines changed
Lines changed: 54 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,54 @@
1+
# This workflow uses actions that are not certified by GitHub.
2+
# They are provided by a third-party and are governed by
3+
# separate terms of service, privacy policy, and support
4+
# documentation.
5+
6+
# Black Duck Security Action allows you to integrate Static Analysis Security Testing (SAST) and Software Composition Analysis (SCA) into your CI/CD pipelines.
7+
# For more information about configuring your workflow,
8+
# read our documentation at https://github.com/blackduck-inc/black-duck-security-scan
9+
10+
name: CI Black Duck security scan
11+
12+
on:
13+
push:
14+
branches: [ "main" ]
15+
pull_request:
16+
# The branches below must be a subset of the branches above
17+
branches: [ "main" ]
18+
schedule:
19+
- cron: '30 19 * * 3'
20+
21+
jobs:
22+
build:
23+
runs-on: ubuntu-latest
24+
permissions:
25+
contents: read
26+
pull-requests: write
27+
security-events: write
28+
actions: read
29+
30+
steps:
31+
- name: Checkout source
32+
uses: actions/checkout@v4
33+
- name: Black Duck SCA scan
34+
uses: blackduck-inc/black-duck-security-scan@805cbd09e806b01907bbea0f990723c2bb85abe9
35+
with:
36+
### ---------- BLACKDUCK SCA SCANNING: REQUIRED FIELDS ----------
37+
blackducksca_url: ${{ vars.BLACKDUCKSCA_URL }}
38+
blackducksca_token: ${{ secrets.BLACKDUCKSCA_TOKEN }}
39+
40+
### ---------- COVERITY SCANNING: REQUIRED FIELDS ----------
41+
coverity_url: ${{ vars.COVERITY_URL }}
42+
coverity_user: ${{ secrets.COVERITY_USER }}
43+
coverity_passphrase: ${{ secrets.COVERITY_PASSPHRASE }}
44+
45+
### ---------- POLARIS SCANNING: REQUIRED FIELDS ----------
46+
polaris_server_url: ${{ vars.POLARIS_SERVER_URL }}
47+
polaris_access_token: ${{ secrets.POLARIS_ACCESS_TOKEN }}
48+
polaris_assessment_types: "SCA,SAST"
49+
50+
### ---------- SRM SCANNING: REQUIRED FIELDS ----------
51+
srm_url: ${{ vars.SRM_URL }}
52+
srm_apikey: ${{ secrets.SRM_API_KEY }}
53+
srm_assessment_types: "SCA,SAST"
54+

0 commit comments

Comments
 (0)