Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Re-enable CodeQL for TTY Resizer #57

Merged
merged 2 commits into from
Oct 14, 2024
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
68 changes: 35 additions & 33 deletions .github/workflows/codeql-analysis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -61,38 +61,40 @@ jobs:
- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@v3

#

# analyze-tty-resizer should be activated when Linux GH runner has v6.0 kernel or later.
# https://github.com/torvalds/linux/commit/fcb14cb1bdacec5b4374fe161e83fb8208164a85
#
# analyze-tty-resizer:
# runs-on: ubuntu-latest
# permissions:
# actions: read
# contents: read
# security-events: write
#
# strategy:
# fail-fast: false
#
# steps:
# - name: Setup
# run: |
# sudo apt-get update
# sudo apt-get install -y libbpf-dev linux-tools-common
#
# - name: Checkout repository
# uses: actions/[email protected]
#
# # Initializes the CodeQL tools for scanning.
# - name: Initialize CodeQL
# uses: github/codeql-action/init@v3
# with:
# languages: cpp
# queries: security-extended,security-and-quality
#
# - name: Build TTY Resizer
# run: make -C tty-resizer
#
# - name: Perform CodeQL Analysis
# uses: github/codeql-action/analyze@v3
analyze-tty-resizer:
runs-on: ubuntu-latest
permissions:
actions: read
contents: read
security-events: write

strategy:
fail-fast: false

steps:
- name: Setup
run: |
sudo apt-get update
sudo apt-get install -y libbpf-dev linux-tools-common

- name: Checkout repository
uses: actions/[email protected]

# Initializes the CodeQL tools for scanning.
- name: Initialize CodeQL
uses: github/codeql-action/init@v3
with:
languages: cpp
queries: security-extended,security-and-quality

- name: Build TTY Resizer
working-directory: tty-resizer
run: |
bpftool btf dump file /sys/kernel/btf/vmlinux format c > vmlinux.h
make

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