From 2f6e2f662c34fbf8a69e5fe187bf5948411e91ec Mon Sep 17 00:00:00 2001 From: Shivam Mathur Date: Thu, 10 Feb 2022 06:34:48 +0530 Subject: [PATCH] Add CodeQL workflow --- .github/codeql/codeql-configuration.yml | 4 ++++ .github/workflows/codeql.yml | 25 +++++++++++++++++++++++++ 2 files changed, 29 insertions(+) create mode 100644 .github/codeql/codeql-configuration.yml create mode 100644 .github/workflows/codeql.yml diff --git a/.github/codeql/codeql-configuration.yml b/.github/codeql/codeql-configuration.yml new file mode 100644 index 0000000..c70a218 --- /dev/null +++ b/.github/codeql/codeql-configuration.yml @@ -0,0 +1,4 @@ +name : CodeQL Configuration + +paths: + - './src' diff --git a/.github/workflows/codeql.yml b/.github/workflows/codeql.yml new file mode 100644 index 0000000..3223601 --- /dev/null +++ b/.github/workflows/codeql.yml @@ -0,0 +1,25 @@ +name: CodeQL Workflow +on: + workflow_dispatch: + schedule: + - cron: '0 15 * * 6' +jobs: + codeql: + runs-on: ubuntu-latest + steps: + - name: Checkout + uses: actions/checkout@v2 + with: + fetch-depth: 2 + + - name: Initialize CodeQL + uses: github/codeql-action/init@v1 + with: + config-file: ./.github/codeql/codeql-configuration.yml + languages: javascript + + - name: Autobuild + uses: github/codeql-action/autobuild@v1 + + - name: Perform CodeQL Analysis + uses: github/codeql-action/analyze@v1