forked from NVIDIA/cuda-python
-
Notifications
You must be signed in to change notification settings - Fork 0
28 lines (25 loc) · 971 Bytes
/
bandit.yml
File metadata and controls
28 lines (25 loc) · 971 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
# SPDX-FileCopyrightText: Copyright (c) 2024-2025 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
#
# SPDX-License-Identifier: Apache-2.0
name: "Static Analysis: Bandit Scan"
on:
push:
branches:
- "pull-request/[0-9]+"
- "main"
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}-${{ github.event_name }}
cancel-in-progress: true
jobs:
analyze:
runs-on: ubuntu-latest
permissions:
security-events: write
steps:
- name: Perform Bandit Analysis
# KEEP IN SYNC WITH bandit rev in .pre-commit-config.yaml
# Current runner uses Python 3.8, so the action installs bandit==1.7.10
# via `pip install bandit[sarif]`. If runner Python moves to >=3.9,
# the action will resolve to 1.8.x and you'll need to bump pre-commit.
# (Bandit >=1.8.0 dropped Python 3.8 via Requires-Python metadata.)
uses: PyCQA/bandit-action@8a1b30610f61f3f792fe7556e888c9d7dffa52de # v1.0.0