From 10330872e1a00121612859f183c2aad91d1cfecb Mon Sep 17 00:00:00 2001 From: Adithya Krishna Date: Mon, 21 Aug 2023 19:08:47 +0530 Subject: [PATCH] feat: add codeql-analysis Signed-off-by: Adithya Krishna --- .github/workflows/codeql-analysis.yml | 45 +++++++++++++++++++++++++++ 1 file changed, 45 insertions(+) create mode 100644 .github/workflows/codeql-analysis.yml diff --git a/.github/workflows/codeql-analysis.yml b/.github/workflows/codeql-analysis.yml new file mode 100644 index 000000000..3cc5cd118 --- /dev/null +++ b/.github/workflows/codeql-analysis.yml @@ -0,0 +1,45 @@ +name: "CodeQL" + +on: + workflow_dispatch: + push: + branches: [ feat/refresh ] + pull_request: + branches: [ feat/refresh ] + +jobs: + analyze: + name: Analyze + runs-on: ubuntu-latest + permissions: + actions: read + contents: read + security-events: write + + strategy: + fail-fast: true + matrix: + language: [ 'javascript', 'typescript' ] + + steps: + - name: Checkout repository + uses: actions/checkout@v3 + + - uses: actions/setup-node@v3 + with: + node-version: 18 + cache: npm + + - name: Install Dependencies + run: npm ci + + - name: Build Documenso + run: npm build + + - name: Initialize CodeQL + uses: github/codeql-action/init@v2 + with: + languages: ${{ matrix.language }} + + - name: Perform CodeQL Analysis + uses: github/codeql-action/analyze@v2 \ No newline at end of file