From 1a72a2234ed4a58fa165ce88416d10d48c786e91 Mon Sep 17 00:00:00 2001 From: LGTM Migrator Date: Mon, 28 Nov 2022 09:23:06 +0000 Subject: [PATCH 1/2] Add CodeQL workflow for GitHub code scanning --- .github/workflows/codeql.yml | 41 ++++++++++++++++++++++++++++++++++++ 1 file changed, 41 insertions(+) create mode 100644 .github/workflows/codeql.yml diff --git a/.github/workflows/codeql.yml b/.github/workflows/codeql.yml new file mode 100644 index 00000000000..ad0ebcf2539 --- /dev/null +++ b/.github/workflows/codeql.yml @@ -0,0 +1,41 @@ +name: "CodeQL" + +on: + push: + branches: [ "main" ] + pull_request: + branches: [ "main" ] + schedule: + - cron: "53 0 * * 1" + +jobs: + analyze: + name: Analyze + runs-on: ubuntu-latest + permissions: + actions: read + contents: read + security-events: write + + strategy: + fail-fast: false + matrix: + language: [ python ] + + steps: + - name: Checkout + uses: actions/checkout@v3 + + - name: Initialize CodeQL + uses: github/codeql-action/init@v2 + with: + languages: ${{ matrix.language }} + queries: +security-and-quality + + - name: Autobuild + uses: github/codeql-action/autobuild@v2 + + - name: Perform CodeQL Analysis + uses: github/codeql-action/analyze@v2 + with: + category: "/language:${{ matrix.language }}" From 2d479b3a9fdfbfde4565b26dc6db7e2d96755085 Mon Sep 17 00:00:00 2001 From: Elliott Sales de Andrade Date: Tue, 29 Nov 2022 02:08:09 -0500 Subject: [PATCH 2/2] Check javaScript as well --- .github/workflows/codeql.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/codeql.yml b/.github/workflows/codeql.yml index ad0ebcf2539..e04b4269c23 100644 --- a/.github/workflows/codeql.yml +++ b/.github/workflows/codeql.yml @@ -20,7 +20,7 @@ jobs: strategy: fail-fast: false matrix: - language: [ python ] + language: [ "javascript", "python" ] steps: - name: Checkout