Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 11 additions & 6 deletions .github/workflows/codeql.yml
Original file line number Diff line number Diff line change
Expand Up @@ -59,12 +59,17 @@ jobs:
# 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.

# 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@cdefb33c0f6224e58673d9004f47f7cb3e328b89 # v3.29.5
with:
working-directory: harness
- name: Install build dependencies
run: |
sudo apt-get -y update
sudo apt-get -y install \
clang gcc g++ make \
gcc-multilib libc6-dev-i386

- name: Build harness (manual for CodeQL)
run: |
Copy link

Copilot AI Feb 2, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The build step lacks error handling and doesn't validate the build script exists. Consider adding a check for build.sh existence or making the script executable if needed.

Suggested change
run: |
run: |
set -euo pipefail
if [ ! -f build.sh ]; then
echo "Error: build.sh not found in $(pwd)" >&2
exit 1
fi
if [ ! -x build.sh ]; then
if ! chmod +x build.sh; then
echo "Error: failed to make build.sh executable" >&2
exit 1
fi
fi

Copilot uses AI. Check for mistakes.
./build.sh
working-directory: harness

# ℹ️ Command-line programs to run using the OS shell.

Expand Down
Loading