Skip to content

Commit 97ec11b

Browse files
authored
PE-36460 Mend Workflow Added
1 parent 592169b commit 97ec11b

File tree

1 file changed

+47
-0
lines changed

1 file changed

+47
-0
lines changed

Diff for: .github/workflows/mend.yml

+47
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,47 @@
1+
name: "mend"
2+
3+
on:
4+
pull_request:
5+
branches:
6+
- "main"
7+
schedule:
8+
- cron: "0 0 * * *"
9+
workflow_dispatch:
10+
11+
jobs:
12+
13+
mend:
14+
if: github.event.pull_request.head.repo.full_name == github.repository
15+
runs-on: "ubuntu-latest"
16+
17+
steps:
18+
19+
- name: "checkout"
20+
uses: "actions/checkout@v3"
21+
with:
22+
fetch-depth: 1
23+
24+
- name: "setup ruby"
25+
uses: "ruby/setup-ruby@v1"
26+
with:
27+
ruby-version: 2.7
28+
29+
- name: "bundle lock"
30+
run: bundle lock
31+
32+
- uses: "actions/setup-java@v3"
33+
with:
34+
distribution: "temurin"
35+
java-version: "17"
36+
37+
- name: "download"
38+
run: curl -o wss-unified-agent.jar https://unified-agent.s3.amazonaws.com/wss-unified-agent.jar
39+
40+
- name: "scan"
41+
run: java -jar wss-unified-agent.jar
42+
env:
43+
WS_APIKEY: ${{ secrets.MEND_API_KEY }}
44+
WS_WSS_URL: https://saas-eu.whitesourcesoftware.com/agent
45+
WS_USERKEY: ${{ secrets.MEND_TOKEN }}
46+
WS_PRODUCTNAME: "Puppet Enterprise"
47+
WS_PROJECTNAME: ${{ github.event.repository.name }}

0 commit comments

Comments
 (0)