Skip to content

Adjusted the authentication method #11

Adjusted the authentication method

Adjusted the authentication method #11

Workflow file for this run

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
env:
SYNK_TOKEN: ${{ secrets.SYNK_TOKEN }}
run: synk auth $SYNK_TOKEN
- name: Run Synk Vulnerability Test
run: synk test