Skip to content

Commit

Permalink
chore: bring back sonnar scanner file
Browse files Browse the repository at this point in the history
  • Loading branch information
Sepehr-Sobhani committed Sep 19, 2023
1 parent eef0d22 commit 51a90b0
Showing 1 changed file with 33 additions and 33 deletions.
66 changes: 33 additions & 33 deletions .github/workflows/sonar-scanner.yaml
Original file line number Diff line number Diff line change
@@ -1,34 +1,34 @@
# name: sonar-repo-scan
name: sonar-repo-scan

# on:
# workflow_call:
# inputs:
# ORG:
# required: true
# type: string
# PROJECT_KEY:
# required: true
# type: string
# URL:
# required: true
# type: string
# secrets:
# SONAR_TOKEN:
# required: true
# jobs:
# sonar-repo-scan:
# name: sonar-repo-scan
# runs-on: ubuntu-latest
# steps:
# - name: Setup
# uses: warchant/setup-sonar-scanner@v3
# - name: Run Sonar Scanner
# env:
# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
# run: sonar-scanner
# -Dsonar.login=${{ secrets.SONAR_TOKEN }}
# -Dsonar.organization=${{ inputs.ORG }}
# -Dsonar.host.url=${{ inputs.URL }}
# -Dsonar.projectKey=${{ inputs.PROJECT_KEY }}
# -Dsonar.exclusions=**/*.java
# -Dsonar.sourceEncoding=UTF-8
on:
workflow_call:
inputs:
ORG:
required: true
type: string
PROJECT_KEY:
required: true
type: string
URL:
required: true
type: string
secrets:
SONAR_TOKEN:
required: true
jobs:
sonar-repo-scan:
name: sonar-repo-scan
runs-on: ubuntu-latest
steps:
- name: Setup
uses: warchant/setup-sonar-scanner@v3
- name: Run Sonar Scanner
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: sonar-scanner
-Dsonar.login=${{ secrets.SONAR_TOKEN }}
-Dsonar.organization=${{ inputs.ORG }}
-Dsonar.host.url=${{ inputs.URL }}
-Dsonar.projectKey=${{ inputs.PROJECT_KEY }}
-Dsonar.exclusions=**/*.java
-Dsonar.sourceEncoding=UTF-8

0 comments on commit 51a90b0

Please sign in to comment.