Skip to content

Privacy-first password manager with built-in email aliasing. Fully encrypted and self-hostable.

Remove sonarcloud analysis as new project settings are too restricted

Leendert de Borst17a7a5713687
diff --git a/.github/workflows/sonarcloud-code-analysis.yml b/.github/workflows/sonarcloud-code-analysis.yml
deleted file mode 100644
index 26681c006..000000000
--- a/.github/workflows/sonarcloud-code-analysis.yml
+++ /dev/null
@@ -1,82 +0,0 @@
-# This workflow will perform a SonarCloud code analysis on every push to the main branch or
-# when a pull request is opened, synchronized, or reopened. The "pull_request_target" event is
-# used to ensure that the analysis is done on the source branch of the pull request which has
-# access to the SonarCloud token secret.
-name: SonarCloud code analysis
-on:
- push:
- branches:
- - main
- pull_request_target:
- types: [opened, synchronize, reopened]
-
-# Cancel in-progress jobs when new commits are pushed
-concurrency:
- group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref_name }}
- cancel-in-progress: true
-
-jobs:
- build:
- name: Build and analyze
- runs-on: windows-latest
- steps:
- - name: Setup .NET
- uses: actions/setup-dotnet@v3
- with:
- dotnet-version: '9.0.x'
-
- - name: Install WASM workload
- run: dotnet workload install wasm-tools
-
- - name: Set up JDK 17
- uses: actions/setup-java@v3
- with:
- java-version: 17
- distribution: 'zulu'
-
- - name: Checkout code of PR branch
- uses: actions/checkout@v3
- with:
- ref: ${{ github.event.pull_request.head.sha }}
- fetch-depth: 0
-
- - name: Cache SonarCloud packages
- uses: actions/cache@v3
- with:
- path: ~\sonar\cache
- key: ${{ runner.os }}-sonar
- restore-keys: ${{ runner.os }}-sonar
-
- - name: Cache SonarCloud scanner
- id: cache-sonar-scanner
- uses: actions/cache@v3
- with:
- path: .\.sonar\scanner
- key: ${{ runner.os }}-sonar-scanner
- restore-keys: ${{ runner.os }}-sonar-scanner
-
- - name: Install SonarCloud scanner
- if: steps.cache-sonar-scanner.outputs.cache-hit != 'true'
- shell: powershell
- run: |
- New-Item -Path .\.sonar\scanner -ItemType Directory
- dotnet tool update dotnet-sonarscanner --tool-path .\.sonar\scanner
-
- - name: Build and analyze
- working-directory: apps/server
- env:
- GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
- shell: powershell
- run: |
- $scanner = "${{ github.workspace }}\.sonar\scanner\dotnet-sonarscanner"
- $duplicationExclusions = "**/AliasVault.Client/wwwroot/js/**,**/AliasVault.Admin/wwwroot/js/**"
- $sonarExclusions = "**/tailwind.css,**/__tests__/test-forms/*.html,**/dist/shared/**,**/*.sql"
- if ('${{ github.event_name }}' -eq 'pull_request_target') {
- & $scanner begin /k:"aliasvault_aliasvault" /o:"aliasvault" /d:sonar.token="$env:SONAR_TOKEN" /d:sonar.pullrequest.key=${{ github.event.pull_request.number }} /d:sonar.host.url="https://sonarcloud.io" /d:sonar.cs.opencover.reportsPaths="**/coverage.opencover.xml" /d:sonar.coverage.exclusions="**Tests*.cs" /d:sonar.exclusions="$sonarExclusions" /d:sonar.cpd.exclusions="$duplicationExclusions"
- } else {
- & $scanner begin /k:"aliasvault_aliasvault" /o:"aliasvault" /d:sonar.token="$env:SONAR_TOKEN" /d:sonar.host.url="https://sonarcloud.io" /d:sonar.cs.opencover.reportsPaths="**/coverage.opencover.xml" /d:sonar.coverage.exclusions="**Tests*.cs" /d:sonar.exclusions="$sonarExclusions" /d:sonar.cpd.exclusions="$duplicationExclusions"
- }
- dotnet build
- dotnet test -c Release /p:CollectCoverage=true /p:CoverletOutput=coverage /p:CoverletOutputFormat=opencover --filter 'FullyQualifiedName!~AliasVault.E2ETests'
- & $scanner end /d:sonar.token="$env:SONAR_TOKEN"
diff --git a/README.md b/README.md
index f41ff2e57..8be1c9dad 100644
--- a/README.md
+++ b/README.md
@@ -3,7 +3,6 @@ AliasVault is a privacy-first password and email alias manager. Create unique id
[<img src="https://img.shields.io/github/v/release/aliasvault/aliasvault?include_prereleases&logo=github&label=Release">](https://github.com/aliasvault/aliasvault/releases)
[![.NET E2E Tests (with Sharding)](https://github.com/aliasvault/aliasvault/actions/workflows/dotnet-e2e-tests.yml/badge.svg)](https://github.com/aliasvault/aliasvault/actions/workflows/dotnet-e2e-tests.yml)
-[<img src="https://img.shields.io/sonar/quality_gate/lanedirt_AliasVault?server=https%3A%2F%2Fsonarcloud.io&label=Sonarcloud&logo=sonarcloud">](https://sonarcloud.io/summary/new_code?id=lanedirt_AliasVault)
[<img src="https://badges.crowdin.net/aliasvault/localized.svg">](https://crowdin.com/project/aliasvault)
[<img alt="Discord" src="https://img.shields.io/discord/1309300619026235422?logo=discord&logoColor=%237289da&label=Discord&color=%237289da">](https://discord.gg/DsaXMTEtpF)