From 5d146da94937e3f1baa7a37aecf116cc8649a96d Mon Sep 17 00:00:00 2001 From: "Juan M. Tirado" Date: Fri, 10 May 2024 15:36:26 +0200 Subject: [PATCH] [DoNotMerge][PAN-1881] Sonar analysis for forked repos (#11) * feature: use sonar cloud in separated workflow --- .github/workflows/ci.yaml | 2 +- .github/workflows/sonar.yaml | 16 ++++++++++++++++ 2 files changed, 17 insertions(+), 1 deletion(-) create mode 100644 .github/workflows/sonar.yaml diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index 701f45d..44c82de 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -8,5 +8,5 @@ on: jobs: shared: - uses: pantos-io/ci-workflows/.github/workflows/python-ci.yml@v1 + uses: pantos-io/ci-workflows/.github/workflows/python-ci.yml@968394c490cea66b0073b65d9ac76bf098c1da1a secrets: inherit diff --git a/.github/workflows/sonar.yaml b/.github/workflows/sonar.yaml new file mode 100644 index 0000000..882c2c3 --- /dev/null +++ b/.github/workflows/sonar.yaml @@ -0,0 +1,16 @@ +name: Sonar + +on: + workflow_run: + workflows: [CI] + types: [completed] + +# on: +# push: +# branches: +# - main +# pull_request: + +jobs: + shared: + uses: pantos-io/ci-workflows/.github/workflows/sonar.yml@968394c490cea66b0073b65d9ac76bf098c1da1a