Skip to content

Commit 16a33c0

Browse files
authored
Replace snyk action with mend
Deleting snyk.yml and creating basic mend.yml. Update as needed.
1 parent c07eee6 commit 16a33c0

File tree

2 files changed

+40
-20
lines changed

2 files changed

+40
-20
lines changed

.github/workflows/mend.yaml

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
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

.github/workflows/snyk.yaml

Lines changed: 0 additions & 20 deletions
This file was deleted.

0 commit comments

Comments
 (0)