-
Notifications
You must be signed in to change notification settings - Fork 105
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
ff3fac4
commit 8b923ee
Showing
2 changed files
with
66 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters