From 780143fe8614ade58cf7000b019ed2e295e4426a Mon Sep 17 00:00:00 2001 From: LGTM Migrator Date: Fri, 25 Nov 2022 17:42:21 +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 0000000000..ccb69534c6 --- /dev/null +++ b/.github/workflows/codeql.yml @@ -0,0 +1,41 @@ +name: "CodeQL" + +on: + push: + branches: [ "main", "charm-6.10.0", "charm-6.10.1", "charm-6.10.2", "charm-7.0.0", "jchoi/espm2-2020" ] + pull_request: + branches: [ "main" ] + schedule: + - cron: "3 21 * * 3" + +jobs: + analyze: + name: Analyze + runs-on: ubuntu-latest + permissions: + actions: read + contents: read + security-events: write + + strategy: + fail-fast: false + matrix: + language: [ python, cpp ] + + 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 0476b85b09113808aa0b757aad5fac3ef4d1af30 Mon Sep 17 00:00:00 2001 From: Ronak Buch Date: Mon, 28 Nov 2022 18:50:48 -0500 Subject: [PATCH 2/2] Remove extraneous triggers for CodeQL --- .github/workflows/codeql.yml | 4 ---- 1 file changed, 4 deletions(-) diff --git a/.github/workflows/codeql.yml b/.github/workflows/codeql.yml index ccb69534c6..cb7d5b8c6d 100644 --- a/.github/workflows/codeql.yml +++ b/.github/workflows/codeql.yml @@ -1,12 +1,8 @@ name: "CodeQL" on: - push: - branches: [ "main", "charm-6.10.0", "charm-6.10.1", "charm-6.10.2", "charm-7.0.0", "jchoi/espm2-2020" ] pull_request: branches: [ "main" ] - schedule: - - cron: "3 21 * * 3" jobs: analyze: