From 28be8212620f58207faa0fb0accc495d9df2a3a4 Mon Sep 17 00:00:00 2001 From: Mathew Payne Date: Thu, 15 Jul 2021 09:21:43 +0100 Subject: [PATCH 1/2] Add GitHub Advance Security and CodeQL - Config to ignore tests --- .github/codeql/codeql-config.yml | 4 +++ .github/workflows/codeql-analysis.yml | 40 +++++++++++++++++++++++++++ 2 files changed, 44 insertions(+) create mode 100644 .github/codeql/codeql-config.yml create mode 100644 .github/workflows/codeql-analysis.yml diff --git a/.github/codeql/codeql-config.yml b/.github/codeql/codeql-config.yml new file mode 100644 index 0000000000000..32d52e5949c71 --- /dev/null +++ b/.github/codeql/codeql-config.yml @@ -0,0 +1,4 @@ +name: "CodeQL Configuration" + +paths-ignore: + - 'test/**' diff --git a/.github/workflows/codeql-analysis.yml b/.github/workflows/codeql-analysis.yml new file mode 100644 index 0000000000000..4625071a8a9cc --- /dev/null +++ b/.github/workflows/codeql-analysis.yml @@ -0,0 +1,40 @@ +name: "CodeQL" + +on: + push: + branches: [ master ] + pull_request: + branches: [ master ] + schedule: + - cron: '26 1 * * 2' + +jobs: + analyze: + name: Analyze + runs-on: ubuntu-latest + permissions: + actions: read + contents: read + security-events: write + + strategy: + fail-fast: false + matrix: + language: [ 'javascript' ] + + steps: + - name: Checkout repository + uses: actions/checkout@v2 + + - name: Initialize CodeQL + uses: github/codeql-action/init@v1 + with: + languages: ${{ matrix.language }} + queries: security-extended + config-file: ./.github/codeql/codeql-config.yml + + - name: Autobuild + uses: github/codeql-action/autobuild@v1 + + - name: Perform CodeQL Analysis + uses: github/codeql-action/analyze@v1 From 40d1a85334f316d24cd966eb843d2ab96e38ba18 Mon Sep 17 00:00:00 2001 From: Mathew Payne Date: Fri, 16 Jul 2021 16:00:33 +0100 Subject: [PATCH 2/2] Remove scheduled jobs and path ignores --- .github/codeql/codeql-config.yml | 3 --- .github/workflows/codeql-analysis.yml | 2 -- 2 files changed, 5 deletions(-) diff --git a/.github/codeql/codeql-config.yml b/.github/codeql/codeql-config.yml index 32d52e5949c71..f86986d4cc9bd 100644 --- a/.github/codeql/codeql-config.yml +++ b/.github/codeql/codeql-config.yml @@ -1,4 +1 @@ name: "CodeQL Configuration" - -paths-ignore: - - 'test/**' diff --git a/.github/workflows/codeql-analysis.yml b/.github/workflows/codeql-analysis.yml index 4625071a8a9cc..fc40f2327100c 100644 --- a/.github/workflows/codeql-analysis.yml +++ b/.github/workflows/codeql-analysis.yml @@ -5,8 +5,6 @@ on: branches: [ master ] pull_request: branches: [ master ] - schedule: - - cron: '26 1 * * 2' jobs: analyze: