From 34d55fba0fb6446a1de2b5abcd1397397da5b139 Mon Sep 17 00:00:00 2001 From: Vidyadevi Salunkhe <84471226+Vidyaaa24@users.noreply.github.com> Date: Wed, 20 Sep 2023 16:09:50 +0530 Subject: [PATCH] Create sast.yml --- .github/workflows/sast.yml | 53 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 53 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..ff5be6f --- /dev/null +++ b/.github/workflows/sast.yml @@ -0,0 +1,53 @@ +name: "CodeQL" + +on: + push: + branches: [ "develop" ] + paths-ignore: + - target/** + - dist/** + pull_request: + # The branches below must be a subset of the branches above + branches: [ "develop" ] + paths-ignore: + - target/** + - dist/** +jobs: + analyze: + name: Analyze + + runs-on: ${{ (matrix.language == 'swift' && 'macos-latest') || 'ubuntu-latest' }} + timeout-minutes: ${{ (matrix.language == 'swift' && 120) || 360 }} + permissions: + actions: read + contents: read + security-events: write + + + + strategy: + fail-fast: false + matrix: + language: [ 'javascript' ] + + + steps: + - name: Checkout repository + uses: actions/checkout@v3 + + + # Initializes the CodeQL tools for scanning. + - name: Initialize CodeQL + uses: github/codeql-action/init@v2 + with: + languages: ${{ matrix.language }} + + # Autobuild attempts to build any compiled languages (C/C++, C#, Go, Java, or Swift). + # If this step fails, then you should remove it and run the build manually (see below) + - name: Autobuild + uses: github/codeql-action/autobuild@v2 + + - name: Perform CodeQL Analysis + uses: github/codeql-action/analyze@v2 + with: + category: "/language:${{matrix.language}}"