From 7634a4784b757556ebc905bc19374b4e27f907f4 Mon Sep 17 00:00:00 2001 From: WaqarAhmedVC <122815219+WaqarAhmedVC@users.noreply.github.com> Date: Thu, 29 Aug 2024 15:35:17 +0100 Subject: [PATCH] Create sast.yml --- .github/workflows/sast.yml | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 .github/workflows/sast.yml diff --git a/.github/workflows/sast.yml b/.github/workflows/sast.yml new file mode 100644 index 0000000..4ddebf9 --- /dev/null +++ b/.github/workflows/sast.yml @@ -0,0 +1,20 @@ +name: Sonar +on: + pull_request: + push: + branches: + - master + +jobs: + sonarcloud: + name: SonarCloud + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v3 + with: + fetch-depth: 0 # Shallow clones should be disabled for a better relevancy of analysis + - name: SonarCloud Scan + uses: SonarSource/sonarcloud-github-action@master + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # Needed to get PR information, if any + SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}