From bd6c2de15c6c02a4d2ddaff08a2a9158a07bb030 Mon Sep 17 00:00:00 2001 From: Gaurav Jain Date: Wed, 30 Jul 2025 15:12:48 +0530 Subject: [PATCH] chore: add sonar_scan.yaml --- .github/workflows/sonar_scan.yaml | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 .github/workflows/sonar_scan.yaml diff --git a/.github/workflows/sonar_scan.yaml b/.github/workflows/sonar_scan.yaml new file mode 100644 index 0000000..a8c484a --- /dev/null +++ b/.github/workflows/sonar_scan.yaml @@ -0,0 +1,27 @@ +name: 'SonarQube Scan' + +on: + push: + branches: + - '*' + paths: + - '**' + + workflow_dispatch: + inputs: + ENVIRONMENT: + description: 'Environment Name' + type: environment + required: true + default: staging + +jobs: + sonar_scan: + uses: smallcase/sc-infra-configs/.github/workflows/sonarqube_scan.yaml@master + with: + ENVIRONMENT: ${{ inputs.ENVIRONMENT || 'staging' }} + RUNNER_NAME: arc-runner-set-dind + APPLICATION_NAME: 'cdk-eks-cluster-module' + BRANCH_NAME: '${{ github.ref_name }}' + SONAR_SCAN: true + secrets: inherit