Skip to content

Update dependency org.junit:junit-bom to v6.1.1 (#813) #51

Update dependency org.junit:junit-bom to v6.1.1 (#813)

Update dependency org.junit:junit-bom to v6.1.1 (#813) #51

Workflow file for this run

name: Run Snyk monitor on push
on:
push:
branches:
- master
workflow_call:
inputs:
github_ref:
required: true
type: string
secrets:
SNYK_TOKEN:
required: true
jobs:
run-snyk-monitor:
runs-on: ubuntu-latest
environment: snyk-monitor-development
steps:
- name: Select GitHub ref
id: select_github_ref
run: |
workflow_call_github_ref=${{ inputs.github_ref }}
echo "selected_github_ref=${workflow_call_github_ref:-${{ github.ref_name }}}" >> "$GITHUB_OUTPUT"
- name: Checkout
uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7
with:
path: hivemq-mqtt-client
ref: ${{ steps.select_github_ref.outputs.selected_github_ref }}
- name: Setup Java
uses: actions/setup-java@1bcf9fb12cf4aa7d266a90ae39939e61372fe520 # v5
with:
distribution: temurin
java-version: |
8
11
21
- name: Setup Snyk
uses: snyk/actions/setup@9adf32b1121593767fc3c057af55b55db032dc04 # v1
- name: Run Snyk monitor
run: >
snyk monitor --configuration-matching=^runtimeClasspath$ --target-reference=${{ steps.select_github_ref.outputs.selected_github_ref }}
--org=hivemq-mqtt-client --project-name=hivemq-mqtt-client --remote-repo-url=hivemq-mqtt-client
--project-lifecycle=development -d hivemq-mqtt-client
env:
SNYK_TOKEN: ${{ secrets.SNYK_TOKEN }}