From 31e368b3a49ae01a8d01649b06590a6da5712993 Mon Sep 17 00:00:00 2001 From: JanneH99 <93656663+JanneH99@users.noreply.github.com> Date: Sun, 17 Nov 2024 19:19:53 +0100 Subject: [PATCH 1/3] Create sonar-project.properties --- sonar-project.properties | 1 + 1 file changed, 1 insertion(+) create mode 100644 sonar-project.properties diff --git a/sonar-project.properties b/sonar-project.properties new file mode 100644 index 000000000..d98e1b724 --- /dev/null +++ b/sonar-project.properties @@ -0,0 +1 @@ +sonar.projectKey=Gitpython From 2d285282263ad6019cd6cde6ec98da666edfa8a1 Mon Sep 17 00:00:00 2001 From: JanneH99 <93656663+JanneH99@users.noreply.github.com> Date: Sun, 17 Nov 2024 19:21:56 +0100 Subject: [PATCH 2/3] Create build.yml --- .github/workflows/build.yml | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 .github/workflows/build.yml diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml new file mode 100644 index 000000000..97d479006 --- /dev/null +++ b/.github/workflows/build.yml @@ -0,0 +1,27 @@ +name: Build + +on: + push: + branches: + - GitPythonBranch + + +jobs: + build: + name: Build and analyze + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v4 + with: + fetch-depth: 0 # Shallow clones should be disabled for a better relevancy of analysis + - uses: sonarsource/sonarqube-scan-action@v3 + env: + SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }} + SONAR_HOST_URL: ${{ secrets.SONAR_HOST_URL }} + # If you wish to fail your job when the Quality Gate is red, uncomment the + # following lines. This would typically be used to fail a deployment. + # - uses: sonarsource/sonarqube-quality-gate-action@master + # timeout-minutes: 5 + # env: + # SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }} From 1b12d1c788b663d723ee107fd20bb5aade450c69 Mon Sep 17 00:00:00 2001 From: JanneH99 <93656663+JanneH99@users.noreply.github.com> Date: Sun, 17 Nov 2024 19:23:20 +0100 Subject: [PATCH 3/3] Create testfile --- testfile | 1 + 1 file changed, 1 insertion(+) create mode 100644 testfile diff --git a/testfile b/testfile new file mode 100644 index 000000000..9daeafb98 --- /dev/null +++ b/testfile @@ -0,0 +1 @@ +test