Removed line that was used for experimental purposes #10
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: Java CI with Maven | |
on: | |
push: | |
branches: [ "main", "cd" ] | |
pull_request: | |
branches: [ "main" ] | |
jobs: | |
build_and_test: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Set up JDK 21 | |
uses: actions/setup-java@v4 | |
with: | |
java-version: '21' | |
distribution: 'temurin' | |
cache: 'maven' | |
- name: Build, Test and Verify | |
run: mvn -B clean verify | |
- name: Install Synk CLI | |
run: | | |
curl -fsSL https://static.snyk.io/cli/latest/snyk-linux -o /usr/local/bin/snyk | |
chmod +x /usr/local/bin/snyk | |
- name: Authenticate Synk | |
run: synk auth ${{ secrets.SYNK_TOKEN }} | |
- name: Run Synk Vulnerability Test | |
run: SYNK_TOKEN=${{ secrets.SYNK_TOKEN }} synk test |