Skip to content

Commit

Permalink
test mend
Browse files Browse the repository at this point in the history
  • Loading branch information
jordanbreen28 committed Feb 15, 2024
1 parent ff3fac4 commit 9804ff5
Show file tree
Hide file tree
Showing 2 changed files with 66 additions and 0 deletions.
37 changes: 37 additions & 0 deletions .github/workflows/mend copy.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
name: "mend"

on:
pull_request:
branches:
- main
jobs:
mend_package:
runs-on: ubuntu-latest
steps:
- name: Install PDK
run: |
wget https://apt.puppetlabs.com/puppet8-release-jammy.deb;
sudo dpkg -i puppet8-release-jammy.deb;
sudo apt-get update -y;
sudo apt-get install pdk -y;
pdk --version;
cd /opt/puppetlabs/pdk/
- uses: "actions/setup-java@v4"
with:
distribution: "temurin"
java-version: "17"

- name: "download"
run: curl -o wss-unified-agent.jar https://unified-agent.s3.amazonaws.com/wss-unified-agent.jar

- run: $pwd

- name: "scan"
run: java -jar wss-unified-agent.jar
env:
WS_APIKEY: ${{ secrets.MEND_API_KEY }}
WS_WSS_URL: https://saas-eu.whitesourcesoftware.com/agent
WS_USERKEY: ${{ secrets.MEND_TOKEN }}
WS_PRODUCTNAME: "DevX"
WS_PROJECTNAME: "${{ github.event.repository.name }}-package"
29 changes: 29 additions & 0 deletions .github/workflows/mend.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,3 +14,32 @@ jobs:
mend:
uses: "puppetlabs/cat-github-actions/.github/workflows/tooling_mend_ruby.yml@main"
secrets: "inherit"

mend_package:
runs-on: ubuntu-latest
steps:
- name: Install PDK
run: |
wget https://apt.puppetlabs.com/puppet8-release-jammy.deb;
sudo dpkg -i puppet8-release-jammy.deb;
sudo apt-get update -y;
sudo apt-get install pdk -y;
pdk --version;
cd /opt/puppetlabs/pdk/
- uses: "actions/setup-java@v4"
with:
distribution: "temurin"
java-version: "17"

- name: "download"
run: curl -o wss-unified-agent.jar https://unified-agent.s3.amazonaws.com/wss-unified-agent.jar

- name: "scan"
run: java -jar wss-unified-agent.jar
env:
WS_APIKEY: ${{ secrets.MEND_API_KEY }}
WS_WSS_URL: https://saas-eu.whitesourcesoftware.com/agent
WS_USERKEY: ${{ secrets.MEND_TOKEN }}
WS_PRODUCTNAME: "DevX"
WS_PROJECTNAME: "${{ github.event.repository.name }}-package"

0 comments on commit 9804ff5

Please sign in to comment.