forked from blackducksca-workflow-samples/automatic-fixpr
-
Notifications
You must be signed in to change notification settings - Fork 0
32 lines (26 loc) · 2.09 KB
/
nodejs-npm.yml
File metadata and controls
32 lines (26 loc) · 2.09 KB
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
name: Black Duck Automatic FixPR
on:
push:
branches: [ main ]
jobs:
blackduck-fixpr:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Use Node.js
uses: actions/setup-node@v3
with:
node-version: '18'
- name: Install dependencies
run: |
cd nodejs-npm
npm install
- name: Black Duck Scan and FixPR
uses: blackduck-inc/black-duck-security-scan@v2
with:
blackducksca_url: ${{ vars.BLACKDUCKSCA_URL }}
blackducksca_token: ${{ secrets.BLACKDUCKSCA_TOKEN }}
blackducksca_fixpr_enabled: true
github_token: ${{ secrets.GH_TOKEN }}
env:
DETECT_PROJECT_NAME: ${{ github.event.repository.name }}