File tree Expand file tree Collapse file tree 2 files changed +31
-0
lines changed Expand file tree Collapse file tree 2 files changed +31
-0
lines changed Original file line number Diff line number Diff line change
1
+ # Bandit static analysis (for Python code)
2
+ name : Bandit
3
+
4
+ on : [push, pull_request]
5
+
6
+ concurrency :
7
+ group : ${{ github.workflow }}-${{ github.head_ref || github.run_id }}
8
+ cancel-in-progress : true
9
+
10
+ permissions :
11
+ contents : read
12
+
13
+ jobs :
14
+ bandit :
15
+ name : Bandit
16
+ strategy :
17
+ matrix :
18
+ os : [ubuntu-latest, windows-latest]
19
+ runs-on : ${{matrix.os}}
20
+
21
+ steps :
22
+ - name : Checkout repository
23
+ uses : actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
24
+
25
+ - name : Install Bandit
26
+ run : python3 -m pip install bandit
27
+
28
+ # Run Bandit recursively, but omit _deps directory (with 3rd party code)
29
+ - name : Run Bandit
30
+ run : python3 -m bandit -r . -x '/_deps/'
Original file line number Diff line number Diff line change 9
9
[ ![ OpenSSF Scorecard] ( https://api.securityscorecards.dev/projects/github.com/oneapi-src/unified-memory-framework/badge )] ( https://securityscorecards.dev/viewer/?uri=github.com/oneapi-src/unified-memory-framework )
10
10
[ ![ Coverity build] ( https://github.com/oneapi-src/unified-memory-framework/actions/workflows/coverity.yml/badge.svg?branch=main )] ( https://github.com/oneapi-src/unified-memory-framework/actions/workflows/coverity.yml )
11
11
[ ![ Coverity report] ( https://scan.coverity.com/projects/29761/badge.svg?flat=0 )] ( https://scan.coverity.com/projects/oneapi-src-unified-memory-framework )
12
+ [ ![ Bandit] ( https://github.com/oneapi-src/unified-memory-framework/actions/workflows/bandit.yml/badge.svg?branch=main )] ( https://github.com/oneapi-src/unified-memory-framework/actions/workflows/bandit.yml )
12
13
13
14
## Introduction
14
15
You can’t perform that action at this time.
0 commit comments