diff --git a/.github/workflows/mend copy.yml b/.github/workflows/mend copy.yml new file mode 100644 index 000000000..57c253e9b --- /dev/null +++ b/.github/workflows/mend copy.yml @@ -0,0 +1,35 @@ +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 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 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"