Skip to content

Bump snyk from 1.1296.2 to 1.1300.1 #166

Bump snyk from 1.1296.2 to 1.1300.1

Bump snyk from 1.1296.2 to 1.1300.1 #166

Workflow file for this run

name: SonarQube Analysis
on:
push:
branches:
- main
- release
pull_request:
branches:
- main
types: [opened, synchronize, reopened]
jobs:
sonarqube:
name: SonarQube
# Only run SonarQube on main branch pushes, not on PRs or other branches
if: github.event_name == 'push' && github.ref == 'refs/heads/main'
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0 # Shallow clones should be disabled for a better relevancy of analysis
- name: Setup Node.js
uses: actions/setup-node@v3
with:
node-version: '18'
cache: 'npm'
- name: Install dependencies
run: npm ci
- name: Run tests with coverage
run: npm run test
- name: SonarQube Scan
uses: SonarSource/sonarqube-scan-action@v5
env:
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
SONAR_HOST_URL: ${{ secrets.SONAR_HOST_URL || 'https://sonarcloud.io' }}