Skip to content

Commit

Permalink
Activate codeql analysis (#2182)
Browse files Browse the repository at this point in the history
* Activate codeql analysis

* Update codeql version

* Update checkout version

* Rename workflow file

* Update name of workflow

* Setup Python deps manually

* Install packages

* Fix packages
  • Loading branch information
s-martin committed Dec 28, 2023
1 parent c9b6cd7 commit 3a904b5
Showing 1 changed file with 22 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -9,14 +9,14 @@
# the `language` matrix defined below to confirm you have the correct set of
# supported CodeQL languages.
#
name: "CodeQL"
name: "CodeQL v3"

on:
push:
branches: [ develop ]
branches: [ future3/develop ]
pull_request:
# The branches below must be a subset of the branches above
branches: [ develop ]
branches: [ future3/develop ]
schedule:
- cron: '16 18 * * 0'

Expand All @@ -35,22 +35,37 @@ jobs:

steps:
- name: Checkout repository
uses: actions/checkout@v2
uses: actions/checkout@v4

- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: '3.x'
- name: Install dependencies
run: |
# Install necessary packages
sudo apt-get install libasound2-dev pulseaudio
python -m pip install --upgrade pip
pip install -r requirements.txt
# Set the `CODEQL-PYTHON` environment variable to the Python executable
# that includes the dependencies
echo "CODEQL_PYTHON=$(which python)" >> $GITHUB_ENV
# Initializes the CodeQL tools for scanning.
- name: Initialize CodeQL
uses: github/codeql-action/init@v1
uses: github/codeql-action/init@v2
with:
languages: ${{ matrix.language }}
# If you wish to specify custom queries, you can do so here or in a config file.
# By default, queries listed here will override any specified in a config file.
# Prefix the list here with "+" to use these queries and those in the config file.
# queries: ./path/to/local/query, your-org/your-repo/queries@main
setup-python-dependencies: false

# Autobuild attempts to build any compiled languages (C/C++, C#, or Java).
# If this step fails, then you should remove it and run the build manually (see below)
- name: Autobuild
uses: github/codeql-action/autobuild@v1
uses: github/codeql-action/autobuild@v2

# ℹ️ Command-line programs to run using the OS shell.
# 📚 https://git.io/JvXDl
Expand All @@ -64,4 +79,4 @@ jobs:
# make release

- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@v1
uses: github/codeql-action/analyze@v2

0 comments on commit 3a904b5

Please sign in to comment.