From 1c3a89d073155f29de28ac4d5e3742e561c3d3c8 Mon Sep 17 00:00:00 2001 From: Bryan Havenstein Date: Tue, 3 Dec 2024 16:33:25 -0700 Subject: [PATCH] Fix sonar, add name for dvcs, remove debug --- .github/workflows/dvcs_check.yml | 1 + .github/workflows/snar.yml | 21 --------------------- sonar-project.properties | 5 ++++- 3 files changed, 5 insertions(+), 22 deletions(-) delete mode 100644 .github/workflows/snar.yml diff --git a/.github/workflows/dvcs_check.yml b/.github/workflows/dvcs_check.yml index 11ae211..4bcaa2d 100644 --- a/.github/workflows/dvcs_check.yml +++ b/.github/workflows/dvcs_check.yml @@ -1,3 +1,4 @@ +name: PR Check on: pull_request_target: types: diff --git a/.github/workflows/snar.yml b/.github/workflows/snar.yml deleted file mode 100644 index f370f25..0000000 --- a/.github/workflows/snar.yml +++ /dev/null @@ -1,21 +0,0 @@ -name: SonarClouddebug -on: - workflow_run: - workflows: - - Unit Tests - types: - - completed -jobs: - sonardebug: - name: Run SonarCloud Analysis - runs-on: ubuntu-latest - #if: ${{ github.event.workflow_run.conclusion == 'success' && github.event.workflow_run.event == 'pull_request' }} - steps: - - name: debug - run: | - echo "github.event.workflow_run" - echo ${{ github.event.workflow_run }} - echo "github.event.workflow_run.conclusion" - echo ${{ github.event.workflow_run.conclusion }} - echo "github.event.workflow_run.event" - echo ${{ github.event.workflow_run.event }} diff --git a/sonar-project.properties b/sonar-project.properties index 82e4503..6f26052 100644 --- a/sonar-project.properties +++ b/sonar-project.properties @@ -5,7 +5,10 @@ sonar.sources=action.yml,check_dvcs.py sonar.tests=test_check_dvcs.py # Verbose name of project displayed in WUI. Default is set to the projectKey. This field is optional. -sonar.projectName=dvcs-action +sonar.projectName=DVCS-Action + +sonar.projectKey=ansible_dvcs-action +sonar.organization=ansible # Tell sonar scanner where coverage files exist sonar.python.coverage.reportPaths=coverage.xml