File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11# SPDX-FileCopyrightText: Copyright (c) 2024-2026 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
22#
33# SPDX-License-Identifier: Apache-2.0
4+ #
5+ # CI SAST via NVIDIA/security-workflows (CodeQL).
6+ # Replaces the repo-local CodeQL steps with the centrally maintained reusable workflow so action pins and query suites are updated in one place.
7+ # Pinned to a reviewed commit SHA.
48
59name : " Static Analysis: CodeQL Scan"
610
1014 - " pull-request/[0-9]+"
1115 - " ctk-next"
1216 - " main"
17+
1318concurrency :
1419 group : ${{ github.workflow }}-${{ github.ref }}-${{ github.event_name }}
1520 cancel-in-progress : true
1621
22+ # Caller must grant every permission the reusable workflow declares.
23+ permissions :
24+ actions : read
25+ contents : read
26+ security-events : write
27+
1728jobs :
1829 analyze :
19- name : Analyze (${{ matrix.language }})
20- runs-on : ubuntu-latest
21- permissions :
22- actions : read
23- contents : read
24- security-events : write
25-
26- strategy :
27- fail-fast : false
28- matrix :
29- include :
30- - language : python
31- build-mode : none
32- steps :
33- - name : Checkout repository
34- uses : actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0
35-
36- - name : Initialize CodeQL
37- uses : github/codeql-action/init@8aad20d150bbac5944a9f9d289da16a4b0d87c1e # v4.36.2
38- with :
39- languages : ${{ matrix.language }}
40- build-mode : ${{ matrix.build-mode }}
41- queries : security-extended
42-
43- - name : Perform CodeQL Analysis
44- uses : github/codeql-action/analyze@8aad20d150bbac5944a9f9d289da16a4b0d87c1e # v4.36.2
45- with :
46- category : " /language:${{matrix.language}}"
30+ name : Analyze
31+ uses : NVIDIA/security-workflows/.github/workflows/sast-scan-codeql.yml@f733d5ed3a8a6fcbefc2690306b983839e9e1502
32+ with :
33+ languages : ' ["python"]'
34+ runs-on : ubuntu-latest
35+ queries : security-extended
You can’t perform that action at this time.
0 commit comments