Skip to content

mend

mend #51

Workflow file for this run

name: "mend"
on:
pull_request:
branches:
- "main"
schedule:
- cron: "0 0 * * *"
workflow_dispatch:
jobs:
mend:
if: github.event.pull_request.head.repo.full_name == github.repository
runs-on: "ubuntu-latest"
steps:
- name: "checkout"
uses: "actions/checkout@v3"
with:
fetch-depth: 1
- name: "setup ruby"
uses: "ruby/setup-ruby@v1"
with:
ruby-version: 2.7
- name: "bundle lock"
run: bundle lock
- uses: "actions/setup-java@v3"
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: "Puppet Enterprise"
WS_PROJECTNAME: ${{ github.event.repository.name }}