Skip to content

Commit abfb33e

Browse files
Merge pull request #46 from puppetlabs/mend_update
Replace snyk action with mend
2 parents 304e3a6 + 296fe75 commit abfb33e

File tree

2 files changed

+55
-31
lines changed

2 files changed

+55
-31
lines changed

.github/workflows/mend.yml

+55
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,55 @@
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: connect_twingate
12+
uses: twingate/github-action@v1
13+
with:
14+
service-key: ${{ secrets.TWINGATE_PUBLIC_REPO_KEY }}
15+
- name: checkout repo content
16+
uses: actions/checkout@v2 # checkout the repository content to github runner.
17+
with:
18+
fetch-depth: 1
19+
# install java which is required for mend and clojure
20+
- name: setup java
21+
uses: actions/setup-java@v3
22+
with:
23+
distribution: temurin
24+
java-version: 17
25+
# install clojure tools
26+
- name: Install Clojure tools
27+
uses: DeLaGuardo/[email protected]
28+
with:
29+
# Install just one or all simultaneously
30+
# The value must indicate a particular version of the tool, or use 'latest'
31+
# to always provision the latest version
32+
cli: latest # Clojure CLI based on tools.deps
33+
lein: latest # Leiningen
34+
boot: latest # Boot.clj
35+
bb: latest # Babashka
36+
clj-kondo: latest # Clj-kondo
37+
cljstyle: latest # cljstyle
38+
zprint: latest # zprint
39+
# run lein gen
40+
- name: create pom.xml
41+
run: lein pom
42+
# download mend
43+
- name: download_mend
44+
run: curl -o wss-unified-agent.jar https://unified-agent.s3.amazonaws.com/wss-unified-agent.jar
45+
- name: run mend
46+
run: env WS_INCLUDES=pom.xml java -jar wss-unified-agent.jar
47+
env:
48+
WS_APIKEY: ${{ secrets.MEND_API_KEY }}
49+
WS_WSS_URL: https://saas-eu.whitesourcesoftware.com/agent
50+
WS_USERKEY: ${{ secrets.MEND_TOKEN }}
51+
WS_PRODUCTNAME: ‘Puppet Enterprise’
52+
WS_PROJECTNAME: ${{ github.event.repository.name }}
53+
WS_FILESYSTEMSCAN: true
54+
WS_CHECKPOLICIES: true
55+
WS_FORCEUPDATE: true

.github/workflows/snyk.yml

-31
This file was deleted.

0 commit comments

Comments
 (0)