Skip to content

Latest commit

 

History

History
 
 

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

README.md

CodeQL Workflows

This directory contains CodeQL security scanning workflows for the organization.

Workflows

codeql-org-security.yml

Main security workflow that scans:

  • JavaScript/TypeScript - No build required
  • Python - No build required
  • Go - Uses autobuild
  • Ruby - No build required

Note: This workflow intentionally excludes C++, Java, C#, and Swift because:

  1. The CodeQL repository has complex build requirements for these languages
  2. The repository already has dedicated workflows for these languages (see codeql-analysis.yml, cpp-swift-analysis.yml, etc.)
  3. For your own organization's simpler projects, you can add these languages back

codeql-monorepo.yml

Specialized workflow for monorepo setups with automatic language detection.

codeql-pr-checks.yml

Optimized workflow for pull requests that only scans changed files.

For Your Organization's Projects

When you copy these workflows to your other repositories, you can enable all languages:

language: [ 'javascript', 'python', 'java', 'csharp', 'cpp', 'go', 'ruby', 'swift' ]

Most projects have simpler build requirements and autobuild will work fine.

Customizing Builds

If autobuild fails in your projects, replace it with manual build steps:

# Example for Java with Maven
- name: Build with Maven
  if: matrix.language == 'java'
  run: mvn clean install -DskipTests

# Example for C++ with make
- name: Build C++
  if: matrix.language == 'cpp'
  run: |
    ./configure
    make

# Example for C# with dotnet
- name: Build C#
  if: matrix.language == 'csharp'
  run: |
    dotnet restore
    dotnet build

See Also