From 8f6f7dd2fedbb1da9b6cf9fb63cc9e3f6bef9306 Mon Sep 17 00:00:00 2001 From: LGTM Migrator Date: Thu, 8 Dec 2022 17:19:13 +0000 Subject: [PATCH] Add CodeQL workflow for GitHub code scanning --- .github/workflows/codeql.yml | 55 ++++++++++++++++++++++++++++++++++++ 1 file changed, 55 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..549633b41c --- /dev/null +++ b/.github/workflows/codeql.yml @@ -0,0 +1,55 @@ +name: "CodeQL" + +on: + push: + branches: [ "main" ] + pull_request: + branches: [ "main" ] + schedule: + - cron: "35 20 * * 4" + +jobs: + analyze: + name: Analyze + runs-on: ubuntu-latest + permissions: + actions: read + contents: read + security-events: write + + strategy: + fail-fast: false + matrix: + language: [ cpp ] + + steps: + - name: Checkout + uses: actions/checkout@v3 + + - name: Install Packages + run: | + sudo apt-get update + sudo apt-get install --yes g++ cvs shtool zlib1g-dev bzr python-bzrlib python-configobj libfftw3-double3 libdbi1 liblua5.1-0 libmunge2 libnuma1 munge mysql-common libcurl3-nss libcurl4-nss-dev doxygen graphviz libcdt5 libcgraph6 libgd3 libgvc6 libgvpr2 libpathplan4 + + - name: Before Index + run: | + libtoolize --force + aclocal + autoheader + automake --force-missing --add-missing + autoconf + ./configure --disable-netcdf-4 + + - name: Initialize CodeQL + uses: github/codeql-action/init@v2 + with: + languages: ${{ matrix.language }} + queries: +security-and-quality + + - name: Build cpp + run: make + + - name: Perform CodeQL Analysis + uses: github/codeql-action/analyze@v2 + with: + category: "/language:${{ matrix.language }}"