Skip to content

Commit 0c30d6c

Browse files
(PA-4857) Remove snyk, add mend github action
1 parent 5b746d5 commit 0c30d6c

File tree

2 files changed

+35
-31
lines changed

2 files changed

+35
-31
lines changed

.github/workflows/mend.yaml

+35
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
---
2+
name: Mend Monitor
3+
on:
4+
push:
5+
branches:
6+
- 7.x
7+
- main
8+
jobs:
9+
mend_monitor:
10+
if: ${{ github.repository_owner == 'puppetlabs' }}
11+
runs-on: ubuntu-latest
12+
name: Mend Monitor
13+
steps:
14+
- name: Checkout current PR
15+
uses: actions/checkout@v3
16+
- name: Setup Ruby
17+
uses: ruby/setup-ruby@v1
18+
with:
19+
ruby-version: 2.7
20+
- name: Create lock
21+
run: bundle lock
22+
- uses: actions/setup-java@v3
23+
with:
24+
distribution: 'temurin'
25+
java-version: '17'
26+
- name: Download Mend
27+
run: curl -o wss-unified-agent.jar https://unified-agent.s3.amazonaws.com/wss-unified-agent.jar
28+
- name: Run Mend
29+
run: java -jar wss-unified-agent.jar
30+
env:
31+
WS_APIKEY: ${{ secrets.MEND_API_KEY }}
32+
WS_WSS_URL: https://saas-eu.whitesourcesoftware.com/agent
33+
WS_USERKEY: ${{ secrets.MEND_TOKEN }}
34+
WS_PRODUCTNAME: Puppet Agent
35+
WS_PROJECTNAME: ${{ github.event.repository.name }}-${{ github.ref_name }}

.github/workflows/snyk_monitor.yaml

-31
This file was deleted.

0 commit comments

Comments
 (0)