File tree 4 files changed +20
-102
lines changed
4 files changed +20
-102
lines changed Original file line number Diff line number Diff line change @@ -2,27 +2,27 @@ name: "CodeQL"
2
2
permissions : read-all
3
3
4
4
on :
5
- workflow_call :
5
+ push :
6
+ branches :
7
+ - develop
8
+ - release_v*
6
9
pull_request :
7
- # paths:
8
- # - '**.py '
9
-
10
+ paths :
11
+ - ' .github/workflows/codeql.yml '
12
+ - ' **.py '
10
13
11
14
jobs :
12
15
analyze :
13
16
name : Analyze
14
17
runs-on : ubuntu-22.04
15
- timeout-minutes : 60
18
+ timeout-minutes : 15
16
19
permissions :
17
20
security-events : write
18
-
19
21
steps :
20
22
- name : Checkout repository
21
23
uses : actions/checkout@a5ac7e51b41094c92402da3b24376905380afc29 # v4.1.6
22
24
with :
23
25
lfs : true
24
-
25
- # Initializes the CodeQL tools for scanning.
26
26
- name : Initialize CodeQL
27
27
uses : github/codeql-action/init@47b3d888fe66b639e431abf22ebca059152f1eea # v3.24.5
28
28
with :
@@ -32,13 +32,23 @@ jobs:
32
32
with :
33
33
category : " /language:python"
34
34
35
+ # Pdf reports always empty for PRs
35
36
- name : Generate Security Report
37
+ # if: ${{ github.event_name != 'pull_request' }}
36
38
uses : rsdmike/github-security-report-action@a149b24539044c92786ec39af8ba38c93496495d # v3.0.4
37
39
with :
38
40
template : report
39
41
token : ${{ secrets.GITHUB_TOKEN }}
42
+ - name : Rename Report
43
+ shell : bash
44
+ continue-on-error : true
45
+ run : |
46
+ DATE=$(date +"%Y-%m-%d")
47
+ REF_NAME="${{ github.ref_name }}"
48
+ mv "report.pdf" "codeql_nncf_report_${DATE}_${REF_NAME//\//-}_${{ github.sha }}.pdf"
40
49
- name : Upload CodeQL Artifacts
50
+ # if: ${{ github.event_name != 'pull_request' }}
41
51
uses : actions/upload-artifact@1746f4ab65b179e0ea60a494b83293b640dd5bba # v4.3.2
42
52
with :
43
53
name : codeql-scan-results
44
- path : " ./report .pdf"
54
+ path : " ./codeql* .pdf"
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
52
-
53
- codeql :
54
- uses : ./.github/workflows/codeql.yml
Load Diff This file was deleted.
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments