build(deps): bump golang.org/x/sys from 0.13.0 to 0.16.0 #496
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: SonarCloud analysis | |
on: | |
push: | |
branches: | |
- "main" | |
pull_request: | |
branches: ["main"] | |
workflow_dispatch: | |
permissions: | |
pull-requests: read # allows SonarCloud to decorate PRs with analysis results | |
jobs: | |
sonarcloud: | |
name: SonarCloud | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4.1.0 | |
with: | |
fetch-depth: 0 # Shallow clones should be disabled for a better relevancy of analysis | |
# fetch latest tag for SonarCloud | |
- uses: "WyriHaximus/github-action-get-previous-tag@v1.3.0" | |
id: get-latest-tag | |
with: | |
fallback: 0.0.1 | |
prefix: v | |
- uses: actions/setup-node@v3 | |
with: | |
node-version: 18 | |
- run: npm install | |
working-directory: frontend | |
- name: SonarCloud Scan | |
uses: SonarSource/sonarcloud-github-action@master | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # Needed to get PR information | |
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }} # Generate a token on Sonarcloud.io, add it to the secrets of this repo with the name SONAR_TOKEN (Settings > Secrets > Actions > add new repository secret) | |
with: | |
# Additional arguments for the sonarcloud scanner | |
args: | |
# Unique keys of your project and organization. You can find them in SonarCloud > Information (bottom-left menu) | |
# mandatory | |
-Dsonar.projectKey=stnokott_r6-dissect-influx | |
-Dsonar.organization=stnokott-github | |
-Dsonar.projectVersion=${{ steps.get-latest-tag.outputs.tag }} | |
-Dsonar.typescript.tsconfigPaths=frontend/tsconfig.json | |
-Dsonar.exclusions=frontend/public/**/*,frontend/wailsjs/**,frontend/cypress/support/**,**/*.cy.ts | |
-Dsonar.test.inclusions=**/*.cy.ts | |
-Dsonar.coverage.exclusions=frontend/**/* |