Skip to content

CodeQL

CodeQL #419

##
## SPDX-FileCopyrightText: Copyright (c) 2021-2026 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
## SPDX-License-Identifier: Apache-2.0
##
# For most projects, this workflow file will not need changing; you simply need
# to commit it to your repository.
#
# You may wish to alter this file to override the set of languages analyzed,
# or to provide custom queries or build logic.
#
# ******** NOTE ********
# We have attempted to detect the languages in your repository. Please check
# the `language` matrix defined below to confirm you have the correct set of
# supported CodeQL languages.
#
name: "CodeQL"
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
schedule:
- cron: '34 9 * * 5'
jobs:
analyze:
name: Analyze
runs-on: ubuntu-latest
permissions:
actions: read
contents: read
security-events: write
strategy:
fail-fast: false
matrix:
language: [ 'python' ]
# CodeQL supports: cpp, csharp, go, java, javascript, kotlin, python, ruby, rust, swift, typescript, actions
# See https://docs.github.com/en/code-security/code-scanning/introduction-to-code-scanning/about-code-scanning-with-codeql
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Initialize CodeQL
uses: github/codeql-action/init@v4
with:
languages: ${{ matrix.language }}
# To use custom queries, specify them here or in a config file.
# Prefix with "+" to use these queries alongside those in any config file.
# queries: ./path/to/local/query, your-org/your-repo/queries@main
# Python is an interpreted language; no build step is required.
# For compiled languages (C/C++, C#, Go, Java), add an autobuild or manual build step here.
- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@v4