Skip to content

Update snyk.yml

Update snyk.yml #26

Workflow file for this run

name: SonarCloud analysis
on: [push, workflow_dispatch]
jobs:
sonarcloud:
name: SonarCloud analysis
runs-on: ubuntu-latest
strategy:
matrix:
java: [ '17' ]
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Set up JDK
uses: actions/setup-java@v3
with:
java-version: ${{ matrix.java }}
distribution: 'temurin'
cache: maven
- name: Sonarcloud code analysis
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
run: |
mvn -B verify sonar:sonar \
-Dsonar.host.url=https://sonarcloud.io \
-Dsonar.organization=infobip \
-Dsonar.projectKey=infobip_infobip-api-java-client