@@ -12,6 +12,8 @@ jobs:
|
|||||||
steps:
|
steps:
|
||||||
- name: Checkout code
|
- name: Checkout code
|
||||||
uses: actions/checkout@v4
|
uses: actions/checkout@v4
|
||||||
|
with:
|
||||||
|
fetch-depth: 0
|
||||||
|
|
||||||
# ---------------- NODE ----------------
|
# ---------------- NODE ----------------
|
||||||
- name: Setup Node
|
- name: Setup Node
|
||||||
@@ -24,11 +26,12 @@ jobs:
|
|||||||
run: npm ci
|
run: npm ci
|
||||||
|
|
||||||
# ---------------- SONARQUBE ----------------
|
# ---------------- SONARQUBE ----------------
|
||||||
# Set repository secret SONAR_TOKEN (User token from SonarQube). Do not commit tokens to git.
|
# In Gitea: Repository → Settings → Secrets and variables → add secret SONAR_TOKEN
|
||||||
|
# (SonarQube user token). Name must be exactly SONAR_TOKEN — not the token value as the name.
|
||||||
- name: SonarQube Scan
|
- name: SonarQube Scan
|
||||||
uses: SonarSource/sonarqube-scan-action@v4
|
uses: SonarSource/sonarqube-scan-action@v6
|
||||||
env:
|
env:
|
||||||
SONAR_TOKEN: ${{ secrets.sqp_b87b0e90564ffc64e9059611d458d777d5148b8b }}
|
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
|
||||||
SONAR_HOST_URL: http://98.70.31.53:9000
|
SONAR_HOST_URL: http://98.70.31.53:9000
|
||||||
|
|
||||||
# ---------------- JAVA ----------------
|
# ---------------- JAVA ----------------
|
||||||
|
|||||||
@@ -1,3 +1,4 @@
|
|||||||
|
|
||||||
console.log("trest")
|
console.log("trest")
|
||||||
console.log("test2")
|
console.log("test2")
|
||||||
|
console.log("test3")
|
||||||
@@ -1,3 +1,6 @@
|
|||||||
|
# Auth: use SONAR_TOKEN (env) or -Dsonar.token=... — never commit tokens or sonar.login here.
|
||||||
sonar.projectKey=novaCodeTest
|
sonar.projectKey=novaCodeTest
|
||||||
sonar.sources=.
|
sonar.sources=.
|
||||||
sonar.exclusions=**/node_modules/**,**/android/build/**,**/ios/Pods/**,**/ios/build/**
|
sonar.host.url=http://98.70.31.53:9000
|
||||||
|
# From CLI intent: skip Java/Kotlin and the Android tree; **/ forms cover the repo (not only repo root).
|
||||||
|
sonar.exclusions=**/*.java,**/*.kt,**/android/**,**/node_modules/**,**/ios/Pods/**,**/ios/build/**
|
||||||
|
|||||||
Reference in New Issue
Block a user