8000 GitHub - advanced-security/gh-codeql-scan at 1541d07ed4001297a10e1be6f84052fb48b7cb1e
[go: up one dir, main page]

Skip to content

advanced-security/gh-codeql-scan

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

gh-codeql-scan

GitHub CLI CodeQL Scan Extension to help abstract CodeQL away from users.

Requirements

Install and Setup

This installs CodeQL and this scan tool:

gh extensions install github/gh-codeql
gh extensions install advanced-security/gh-codeql-scan

gh codeql-scan --help

A couple of tips and tricks:

# Create an alias to make things even easier
alias codeql-scan="gh codeql-scan"

Usage

The main use of the script is to automatically run CodeQL in a number of modes.

# End-to-end analysis and upload results
gh codeql-scan
# `init` mode: Create only the Codeql database
gh codeql-scan init --auto-detect
# or manually set language
gh codeql-scan init -l=java 
# `analyze` mode: Run query-suites on an existing database (auto-detects databases)
gh codeql-scan analyze
# `upload` mode: Upload all SARIF files
gh codeql-scan upload

License

This project is licensed under the terms of the MIT open source license. Please refer to MIT for the full terms.

Maintainers

  • @GeekMasher

Support

Support is via GitHub Issues

Acknowledgement

0