Skip to content

Commit

Permalink
Codeql: Add test
Browse files Browse the repository at this point in the history
Signed-off-by: Marko Lindqvist <cazfi74@gmail.com>
  • Loading branch information
cazfi committed May 12, 2023
1 parent f0131ad commit b6413a0
Showing 1 changed file with 63 additions and 0 deletions.
63 changes: 63 additions & 0 deletions .github/workflows/codeql.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,63 @@
name: "CodeQL"

on:
- push
- pull_request

jobs:
analyze:
name: Analyze
runs-on: ubuntu-22.04
permissions:
actions: read
contents: read
security-events: write

strategy:
fail-fast: false
matrix:
language: [ C, C++, python ]

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: install dependencies
run: |
sudo apt-get update
sudo DEBIAN_FRONTEND=noninteractive apt-get -y install \
gettext \
libgtk-3-dev \
libgtk-4-dev \
libcurl4-openssl-dev \
libtool \
automake \
autoconf \
autotools-dev \
language-pack-en \
python3.10 \
liblzma-dev \
libicu-dev \
libsqlite3-dev \
qt6-base-dev \
libsdl2-mixer-dev \
libsdl2-gfx-dev \
libsdl2-image-dev \
libsdl2-ttf-dev \
libmysqlclient-dev \
unixodbc-dev
- name: build
shell: bash
run: ./scripts/ci-build.sh normal

- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@v2
with:
category: "/language:${{ matrix.language }}"

0 comments on commit b6413a0

Please sign in to comment.