feat: we can't use pr scanning on the free tier...
All checks were successful
Node.js CI / Lint and Test (pull_request) Successful in 18s
Code Analysis / SonarQube (pull_request) Successful in 46s

Can't believe we have to pay for that even on a self-hosted instance.
This commit is contained in:
Naomi Carrigan 2025-02-26 12:57:17 -08:00
parent 657f80af5d
commit e1802d7c27
Signed by: naomi
SSH Key Fingerprint: SHA256:rca1iUI2OhAM6n4FIUaFcZcicmri0jgocqKiTTAfrt8
2 changed files with 5 additions and 29 deletions

View File

@ -1,24 +0,0 @@
name: Code Analysis
on:
push:
branches:
- main
jobs:
sonar:
name: SonarQube
steps:
- name: Checkout Source Files
uses: actions/checkout@v4
- name: Sonar
uses: SonarSource/sonarqube-scan-action@v4
timeout-minutes: 10
env:
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
SONAR_HOST_URL: "https://quality.nhcarrigan.com"
with:
args: >
-Dsonar.sources=.
-Dsonar.projectKey=typescript-config

View File

@ -1,5 +1,8 @@
name: Code Analysis
on:
push:
branches:
- main
pull_request:
branches:
- main
@ -11,6 +14,8 @@ jobs:
steps:
- name: Checkout Source Files
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Sonar
uses: SonarSource/sonarqube-scan-action@v4
@ -18,12 +23,7 @@ jobs:
env:
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
SONAR_HOST_URL: "https://quality.nhcarrigan.com"
PR_KEY: ${{ github.event.pull_request.number }}
PR_BRANCH: ${{ github.event.pull_request.head.ref }}
with:
args: >
-Dsonar.sources=.
-Dsonar.projectKey=typescript-config
-Dsonar.pullrequest.key=$PR_KEY
-Dsonar.pullrequest.branch=$PR_BRANCH
-Dsonar.pullrequest.base=main