Skip to content

Commit

Permalink
Merge pull request #280 from puppetlabs/CAT-1659-add_mend_scanning
Browse files Browse the repository at this point in the history
(CAT-1659) - Add mend scanning to repo
  • Loading branch information
david22swan authored Jan 29, 2024
2 parents c9eb743 + 7e7a78e commit e6bd975
Showing 1 changed file with 33 additions and 0 deletions.
33 changes: 33 additions & 0 deletions .github/workflows/mend.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
name: mend

on:
schedule:
- cron: '0 0 * * *'
pull_request_target:
types:
- opened
- synchronize
workflow_dispatch:

jobs:
mend:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4

- 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 }}

0 comments on commit e6bd975

Please sign in to comment.