From 508a5a2af5e076716ce91cbb08217075fe675e98 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Danil=20Shaymurzin=20=E2=9A=A1=EF=B8=8F?= Date: Wed, 1 Mar 2023 05:00:45 +0500 Subject: [PATCH] feat(server): add vulnerability analysis by CodeQL (#1271) --- .../codeql_vulnerability_analysis.yml | 43 +++++++++++++++++++ 1 file changed, 43 insertions(+) create mode 100644 .github/workflows/codeql_vulnerability_analysis.yml diff --git a/.github/workflows/codeql_vulnerability_analysis.yml b/.github/workflows/codeql_vulnerability_analysis.yml new file mode 100644 index 00000000..6c4a50ed --- /dev/null +++ b/.github/workflows/codeql_vulnerability_analysis.yml @@ -0,0 +1,43 @@ +name: "CodeQL" + +on: + pull_request: + types: + - opened + - edited + - synchronize + push: + branches: + - master + schedule: + - cron: '0 0 * * *' + +jobs: + analyze: + name: Analyze + runs-on: ubuntu-latest + + permissions: + actions: read + contents: read + security-events: write + + query-filters: + - exclude: + id: js/disabling-certificate-validation + - exclude: + id: js/missing-rate-limiting + + strategy: + fail-fast: false + steps: + - name: Checkout repository + uses: actions/checkout@v2 + + - name: Initialize CodeQL + uses: github/codeql-action/init@v2 + with: + languages: javascript + + - name: Perform CodeQL Analysis + uses: github/codeql-action/analyze@v2