From b3edb657c2221f7d292931c8df04388c552737dd Mon Sep 17 00:00:00 2001 From: Ruben ten Hove Date: Tue, 28 Jun 2022 01:50:39 +0000 Subject: check python too --- .github/workflows/codeql-analysis.yaml | 30 ++++++++++++++++++++++++++++++ .github/workflows/codeql.yaml | 30 ------------------------------ .github/workflows/container.yaml | 4 ++-- 3 files changed, 32 insertions(+), 32 deletions(-) create mode 100644 .github/workflows/codeql-analysis.yaml delete mode 100644 .github/workflows/codeql.yaml diff --git a/.github/workflows/codeql-analysis.yaml b/.github/workflows/codeql-analysis.yaml new file mode 100644 index 00000000..c9efb296 --- /dev/null +++ b/.github/workflows/codeql-analysis.yaml @@ -0,0 +1,30 @@ +name: "CodeQL" + +on: + push: + branches: [stable, dev] + pull_request: + branches: [stable, dev] + +jobs: + codeql: + name: Analyze + runs-on: ubuntu-latest + container: # We use a previous image as it's expected to have all the dependencies + image: docker.io/aflplusplus/aflplusplus:dev + steps: + - name: Fix for using external repo in container build # https://github.com/actions/checkout/issues/760 + run: git config --global --add safe.directory /__w/AFLplusplus/AFLplusplus + - name: Checkout + uses: actions/checkout@v3 + - name: Initialize CodeQL + uses: github/codeql-action/init@v2 + with: + languages: cpp, python + - name: Build AFLplusplus # Rebuild because CodeQL needs to monitor the build process + env: + CC: gcc # These are symlinked to the version used in the container build + CXX: g++ + run: make -i distrib # Best effort using -i + - name: Perform CodeQL Analysis + uses: github/codeql-action/analyze@v2 diff --git a/.github/workflows/codeql.yaml b/.github/workflows/codeql.yaml deleted file mode 100644 index 9398df75..00000000 --- a/.github/workflows/codeql.yaml +++ /dev/null @@ -1,30 +0,0 @@ -name: "CodeQL" - -on: - push: - branches: [stable, dev] - pull_request: - branches: [stable, dev] - -jobs: - codeql: - name: Analyze - runs-on: ubuntu-latest - container: # We use a previous image as it's expected to have all the dependencies - image: docker.io/aflplusplus/aflplusplus:dev - steps: - - name: Fix for using external repo in container build # https://github.com/actions/checkout/issues/760 - run: git config --global --add safe.directory /__w/AFLplusplus/AFLplusplus - - name: Checkout - uses: actions/checkout@v3 - - name: Initialize CodeQL - uses: github/codeql-action/init@v2 - with: - languages: cpp - - name: Build AFLplusplus # Rebuild because CodeQL needs to monitor the build process - env: - CC: gcc # These are symlinked to the version used in the container build - CXX: g++ - run: make -i distrib # Best effort using -i - - name: Perform CodeQL Analysis - uses: github/codeql-action/analyze@v2 diff --git a/.github/workflows/container.yaml b/.github/workflows/container.yaml index 0fd20dd7..81e2a3f8 100644 --- a/.github/workflows/container.yaml +++ b/.github/workflows/container.yaml @@ -12,7 +12,7 @@ on: jobs: build-and-test-amd64: - name: Build and test amd64 image + name: Test amd64 image runs-on: ubuntu-latest steps: - name: Checkout @@ -30,7 +30,7 @@ jobs: run: docker run --rm aflplusplus:amd64 bash -c "apt-get update && apt-get install -y libcmocka-dev && make -i tests" push: - name: Build and push amd64 and arm64 image + name: Push amd64 and arm64 images runs-on: ubuntu-latest needs: - build-and-test-amd64 -- cgit 1.4.1