Skip to content
This repository was archived by the owner on Jun 18, 2026. It is now read-only.

perf(GraphResilienceAnalyzer): single-pass BFS for component count + … #667

perf(GraphResilienceAnalyzer): single-pass BFS for component count + …

perf(GraphResilienceAnalyzer): single-pass BFS for component count + … #667

Workflow file for this run

name: "CodeQL Security Analysis"
on:
push:
branches: [ "master", "main" ]
pull_request:
branches: [ "master", "main" ]
schedule:
# Run weekly on Monday at 06:00 UTC
- cron: "0 6 * * 1"
jobs:
analyze:
name: Analyze (Java)
runs-on: ubuntu-latest
timeout-minutes: 30
permissions:
actions: read
contents: read
security-events: write
strategy:
fail-fast: false
matrix:
language: [ "java-kotlin" ]
steps:
- name: Checkout repository
uses: actions/checkout@v6
- name: Set up JDK 11
uses: actions/setup-java@v5
with:
java-version: "11"
distribution: "temurin"
- name: Initialize CodeQL
uses: github/codeql-action/init@v4
with:
languages: ${{ matrix.language }}
# Use extended security queries for deeper analysis
queries: security-extended
# Build with javac directly since the project uses Ant/NetBeans
# but has all dependencies bundled as JARs in Gvisual/lib/
- name: Build project
run: |
mkdir -p build/classes
# Collect all library JARs into classpath
CLASSPATH=$(find Gvisual/lib -name '*.jar' | tr '\n' ':')
# Compile all Java sources with relaxed source level
# Use -source/-target 8 as minimum for modern JDK compatibility
find Gvisual/src -name '*.java' > sources.txt
javac -source 8 -target 8 \
-cp "$CLASSPATH" \
-d build/classes \
-Xlint:none \
@sources.txt || echo "Build completed with warnings (non-fatal for CodeQL)"
- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@v4
with:
category: "/language:${{ matrix.language }}"