From 8b923ee935f9c6211c1916c5c8c50274fac5e7ff 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 copy.yml | 36 +++++++++++++++++++++++++++++++++ .github/workflows/mend.yml | 30 +++++++++++++++++++++++++++ 2 files changed, 66 insertions(+) create mode 100644 .github/workflows/mend copy.yml diff --git a/.github/workflows/mend copy.yml b/.github/workflows/mend copy.yml new file mode 100644 index 000000000..c761c016e --- /dev/null +++ b/.github/workflows/mend copy.yml @@ -0,0 +1,36 @@ +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; + + - 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: | + sudo -E java -jar wss-unified-agent.jar -d /opt/puppetlabs/pdk + 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" \ No newline at end of file diff --git a/.github/workflows/mend.yml b/.github/workflows/mend.yml index 2ee195997..9eb8c0f6f 100644 --- a/.github/workflows/mend.yml +++ b/.github/workflows/mend.yml @@ -14,3 +14,33 @@ 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; + + - 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: | + sudo -E java -jar wss-unified-agent.jar -f /opt/puppetlabs/pdk/; + 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" \ No newline at end of file