From 9276143684bfc92beffaebbb1805f3d72e302bb6 Mon Sep 17 00:00:00 2001 From: Muhammad Hunain <141824020+M-Hunain5037@users.noreply.github.com> Date: Fri, 7 Jun 2024 23:11:48 +0500 Subject: [PATCH 1/3] Update sonarcloud-github-action --- SonarSource/sonarcloud-github-action | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/SonarSource/sonarcloud-github-action b/SonarSource/sonarcloud-github-action index a610c02..a7493e5 100644 --- a/SonarSource/sonarcloud-github-action +++ b/SonarSource/sonarcloud-github-action @@ -9,7 +9,7 @@ on: jobs: build: - runs-on: ubuntu-latest + runs-on: windows-latest strategy: fail-fast: false matrix: @@ -24,7 +24,7 @@ jobs: - name: Install dependencies run: | python -m pip install --upgrade pip - if [ -f requirements.txt ]; then pip install -r requirements.txt; fi + if exist requirements.txt pip install -r requirements.txt - name: Lint with flake8 run: | pip install flake8 @@ -36,7 +36,7 @@ jobs: - name: SonarCloud Scan uses: SonarSource/sonarcloud-github-action@master env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + TOKEN: ${{ secrets.TOKEN }} SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }} with: projectBaseDir: . From e529c9263ca1e31cead658ccdfefedf83338435a Mon Sep 17 00:00:00 2001 From: Muhammad Hunain <141824020+M-Hunain5037@users.noreply.github.com> Date: Fri, 7 Jun 2024 23:26:02 +0500 Subject: [PATCH 2/3] Update sonarcloud-github-action --- SonarSource/sonarcloud-github-action | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/SonarSource/sonarcloud-github-action b/SonarSource/sonarcloud-github-action index a7493e5..35ec001 100644 --- a/SonarSource/sonarcloud-github-action +++ b/SonarSource/sonarcloud-github-action @@ -8,7 +8,6 @@ on: jobs: build: - runs-on: windows-latest strategy: fail-fast: false @@ -24,7 +23,7 @@ jobs: - name: Install dependencies run: | python -m pip install --upgrade pip - if exist requirements.txt pip install -r requirements.txt + if [ -f requirements.txt ]; then pip install -r requirements.txt; fi - name: Lint with flake8 run: | pip install flake8 @@ -34,9 +33,8 @@ jobs: run: | python -m unittest test_main.py - name: SonarCloud Scan - uses: SonarSource/sonarcloud-github-action@master + uses: SonarSource/sonarcloud-github-action@v1.6 env: - TOKEN: ${{ secrets.TOKEN }} SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }} with: projectBaseDir: . From cb93aac45b0dfcde7ae92e996b7e244f6f55ec2c Mon Sep 17 00:00:00 2001 From: Muhammad Hunain <141824020+M-Hunain5037@users.noreply.github.com> Date: Fri, 7 Jun 2024 23:33:39 +0500 Subject: [PATCH 3/3] Update README.md --- README.md | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 346ffda..0295af7 100644 --- a/README.md +++ b/README.md @@ -1 +1,4 @@ -# Assignment \ No newline at end of file +# Assignment +Code Analysis using SonarCloud + +![image](https://github.com/M-Hunain5037/Assignment/assets/141824020/80ca5587-b2a3-44e3-b261-ec9882f27f01)