File tree 2 files changed +50
-4
lines changed
2 files changed +50
-4
lines changed Original file line number Diff line number Diff line change 48
48
run : pytest tests/tensorflow -m 'nightly'
49
49
50
50
weight-compression :
51
+ if : github.repository_owner == 'openvinotoolkit'
51
52
uses : ./.github/workflows/conformance_weight_compression.yml
Original file line number Diff line number Diff line change @@ -2,14 +2,19 @@ name: sdl
2
2
permissions : read-all
3
3
4
4
on :
5
+ workflow_dispatch :
6
+ push :
7
+ branches :
8
+ - develop
9
+ - release_v*
5
10
pull_request :
6
- types :
7
- - opened
8
- - reopened
9
- - synchronize
11
+ paths :
12
+ - ' .github/workflows/sdl.yml'
13
+ - ' **.py'
10
14
11
15
jobs :
12
16
bandit :
17
+ name : Bandit
13
18
runs-on : ubuntu-20.04
14
19
timeout-minutes : 10
15
20
defaults :
25
30
- name : Run bandit
26
31
run : bandit -c pyproject.toml -r .
27
32
33
+ codeql :
34
+ name : CodeQL
35
+ runs-on : ubuntu-22.04
36
+ timeout-minutes : 15
37
+ permissions :
38
+ security-events : write
39
+ steps :
40
+ - name : Checkout repository
41
+ uses : actions/checkout@a5ac7e51b41094c92402da3b24376905380afc29 # v4.1.6
42
+ with :
43
+ lfs : true
44
+ - name : Initialize CodeQL
45
+ uses : github/codeql-action/init@47b3d888fe66b639e431abf22ebca059152f1eea # v3.24.5
46
+ with :
47
+ languages : python
48
+ - name : Perform CodeQL Analysis
49
+ uses : github/codeql-action/analyze@47b3d888fe66b639e431abf22ebca059152f1eea # v3.24.5
50
+ with :
51
+ category : " /language:python"
52
+
53
+ # pdf reports always empty for pull_request
54
+ - name : Generate Security Report
55
+ if : ${{ github.event_name != 'pull_request' }}
56
+ uses : rsdmike/github-security-report-action@a149b24539044c92786ec39af8ba38c93496495d # v3.0.4
57
+ with :
58
+ template : report
59
+ token : ${{ secrets.GITHUB_TOKEN }}
60
+ - name : Rename Report
61
+ shell : bash
62
+ if : ${{ github.event_name != 'pull_request' }}
63
+ run : |
64
+ DATE=$(date +"%Y-%m-%d")
65
+ REF_NAME="${{ github.ref_name }}"
66
+ mv "report.pdf" "codeql_nncf_report_${DATE}_${REF_NAME//\//-}_${{ github.sha }}.pdf"
67
+ - name : Upload CodeQL Artifacts
68
+ if : ${{ github.event_name != 'pull_request' }}
69
+ uses : actions/upload-artifact@6f51ac03b9356f520e9adb1b1b7802705f340c2b # v4.5.0
70
+ with :
71
+ name : codeql-scan-results
72
+ path : " ./codeql*.pdf"
You can’t perform that action at this time.
0 commit comments