Skip to content

Commit 0581c80

Browse files
committed
(maint) Update to Mend on the 7.x branch
Snyk is being replaced by Mend, and based upon our current code each branch gets it's own version of the workflow file.
1 parent 8bc3289 commit 0581c80

File tree

2 files changed

+34
-34
lines changed

2 files changed

+34
-34
lines changed

.github/workflows/mend.yaml

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

.github/workflows/snyk_monitor.yaml

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

0 commit comments

Comments
 (0)