File tree Expand file tree Collapse file tree 2 files changed +40
-20
lines changed Expand file tree Collapse file tree 2 files changed +40
-20
lines changed Original file line number Diff line number Diff line change 1+ name : mend_scan
2+ on :
3+ workflow_dispatch :
4+ push :
5+ branches :
6+ - main
7+ jobs :
8+ build :
9+ runs-on : ubuntu-latest
10+ steps :
11+ - name : checkout repo content
12+ uses : actions/checkout@v2 # checkout the repository content to github runner.
13+ with :
14+ fetch-depth : 1
15+ - name : setup javascript
16+ uses : actions/setup-node@v3
17+ with :
18+ node-version : 16
19+ # setup a package lock if one doesn't exist, otherwise do nothing
20+ - name : check package lock
21+ run : ' [ -f "package-lock.json" ] && echo "package lock file exists, skipping" || npm i --package-lock-only'
22+ # install java
23+ - uses : actions/setup-java@v3
24+ with :
25+ distribution : ' temurin' # See 'Supported distributions' for available options
26+ java-version : ' 17'
27+ # download mend
28+ - name : download_mend
29+ run : curl -o wss-unified-agent.jar https://unified-agent.s3.amazonaws.com/wss-unified-agent.jar
30+ - name : run mend
31+ run : java -jar wss-unified-agent.jar
32+ env :
33+ WS_APIKEY : ${{ secrets.MEND_API_KEY }}
34+ WS_WSS_URL : https://saas-eu.whitesourcesoftware.com/agent
35+ WS_USERKEY : ${{ secrets.MEND_TOKEN }}
36+ WS_PRODUCTNAME : Puppet General
37+ WS_PROJECTNAME : ${{ github.event.repository.name }}
38+ WS_FILESYSTEMSCAN : true
39+ WS_CHECKPOLICIES : true
40+ WS_FORCEUPDATE : true
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments