From 84d7cd6b7066a9144127e7716c43a5dda7b8717a Mon Sep 17 00:00:00 2001 From: Robert Horrox <31014379+RobertHorrox@users.noreply.github.com> Date: Thu, 18 Nov 2021 12:01:37 -0500 Subject: [PATCH] OPS-4624: Adding Github Action Yaml and Sonarqube properties file --- .github/workflows/sonarqube_scan.yml | 24 ++++++++++++++++++++++++ sonar-project.properties | 2 ++ 2 files changed, 26 insertions(+) create mode 100644 .github/workflows/sonarqube_scan.yml create mode 100644 sonar-project.properties diff --git a/.github/workflows/sonarqube_scan.yml b/.github/workflows/sonarqube_scan.yml new file mode 100644 index 0000000..b0cec63 --- /dev/null +++ b/.github/workflows/sonarqube_scan.yml @@ -0,0 +1,24 @@ +name: Sonarqube +on: + push: + branches: + - master + pull_request: + types: [opened, synchronize, reopened] +jobs: + build: + name: Sonarqube Scan + runs-on: self-hosted + steps: + - uses: actions/checkout@v2 + with: + fetch-depth: 0 + - uses: sonarsource/sonarqube-scan-action@master + with: + args: > + -Dsonar.scm.revision=${{ github.event.pull_request.head.sha }} + -Dsonar.verbose=true + env: + SONAR_TOKEN: ${{ secrets.SONARQUBE_API_TOKEN }} + SONAR_HOST_URL: ${{ secrets.SONARQUBE_API_HOST }} + diff --git a/sonar-project.properties b/sonar-project.properties new file mode 100644 index 0000000..60d42ce --- /dev/null +++ b/sonar-project.properties @@ -0,0 +1,2 @@ +sonar.projectKey=getbread_magento-v2-bread +