Skip to content

Workflow file for this run

name: Run Snyk monitor on releases
on:
release:
types: [ published ]
jobs:
run-snyk-monitor:
runs-on: ubuntu-latest
environment: snyk-monitor-releases
steps:
- name: Setup Java
uses: actions/setup-java@v3
with:
distribution: 'temurin'
java-version: |
8
11
- uses: actions/checkout@v3
with:
path: mqtt-cli
- name: Setup Snyk
uses: snyk/actions/setup@master
- name: Run Snyk monitor
shell: bash
run: snyk monitor --configuration-matching=^runtimeClasspath$ --target-reference=${{ github.ref_name }} mqtt-cli
env:
SNYK_TOKEN: ${{ secrets.SNYK_TOKEN }}