From d8a80f7cbfb3a24aef7e2ae989d9a5a126ca6ab4 Mon Sep 17 00:00:00 2001 From: jordanbreen28 Date: Thu, 15 Feb 2024 13:41:15 +0000 Subject: [PATCH] test mend --- .github/workflows/mend.yml | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) diff --git a/.github/workflows/mend.yml b/.github/workflows/mend.yml index 2ee195997..d83aae144 100644 --- a/.github/workflows/mend.yml +++ b/.github/workflows/mend.yml @@ -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"