Skip to content

Commit

Permalink
(CAT-1535) Use Tooling Mend Workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
david22swan committed Nov 23, 2023
1 parent e551ef4 commit 4d8cab3
Showing 1 changed file with 12 additions and 31 deletions.
43 changes: 12 additions & 31 deletions .github/workflows/mend.yaml
Original file line number Diff line number Diff line change
@@ -1,34 +1,15 @@
---
name: Mend Monitor
name: "mend"

on:
push:
pull_request:
branches:
- main
- "main"
schedule:
- cron: "0 0 * * *"
workflow_dispatch:

jobs:
mend_monitor:
if: ${{ github.repository_owner == 'puppetlabs' }}
runs-on: ubuntu-latest
name: Mend Monitor
steps:
- name: Checkout current PR
uses: actions/checkout@v4
- name: Setup Ruby
uses: ruby/setup-ruby@v1
with:
ruby-version: 2.7
- name: Create lock
run: bundle lock
- uses: actions/setup-java@v3
with:
distribution: 'temurin'
java-version: '17'
- name: Download Mend
run: curl -o wss-unified-agent.jar https://unified-agent.s3.amazonaws.com/wss-unified-agent.jar
- name: Run Mend
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 Agent
WS_PROJECTNAME: ${{ github.event.repository.name }}

mend:
uses: "puppetlabs/cat-github-actions/.github/workflows/tooling_mend_ruby.yml@main"
secrets: "inherit"

0 comments on commit 4d8cab3

Please sign in to comment.