Skip to content

Commit 1712f38

Browse files
t
1 parent 615fe64 commit 1712f38

File tree

4 files changed

+20
-102
lines changed

4 files changed

+20
-102
lines changed

.github/workflows/codeql.yml

+19-9
Original file line numberDiff line numberDiff line change
@@ -2,27 +2,27 @@ name: "CodeQL"
22
permissions: read-all
33

44
on:
5-
workflow_call:
5+
push:
6+
branches:
7+
- develop
8+
- release_v*
69
pull_request:
7-
# paths:
8-
# - '**.py'
9-
10+
paths:
11+
- '.github/workflows/codeql.yml'
12+
- '**.py'
1013

1114
jobs:
1215
analyze:
1316
name: Analyze
1417
runs-on: ubuntu-22.04
15-
timeout-minutes: 60
18+
timeout-minutes: 15
1619
permissions:
1720
security-events: write
18-
1921
steps:
2022
- name: Checkout repository
2123
uses: actions/checkout@a5ac7e51b41094c92402da3b24376905380afc29 # v4.1.6
2224
with:
2325
lfs: true
24-
25-
# Initializes the CodeQL tools for scanning.
2626
- name: Initialize CodeQL
2727
uses: github/codeql-action/init@47b3d888fe66b639e431abf22ebca059152f1eea # v3.24.5
2828
with:
@@ -32,13 +32,23 @@ jobs:
3232
with:
3333
category: "/language:python"
3434

35+
# Pdf reports always empty for PRs
3536
- name: Generate Security Report
37+
# if: ${{ github.event_name != 'pull_request' }}
3638
uses: rsdmike/github-security-report-action@a149b24539044c92786ec39af8ba38c93496495d # v3.0.4
3739
with:
3840
template: report
3941
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"
4049
- name: Upload CodeQL Artifacts
50+
# if: ${{ github.event_name != 'pull_request' }}
4151
uses: actions/upload-artifact@1746f4ab65b179e0ea60a494b83293b640dd5bba # v4.3.2
4252
with:
4353
name: codeql-scan-results
44-
path: "./report.pdf"
54+
path: "./codeql*.pdf"

.github/workflows/nightly.yml

+1-3
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,5 @@ jobs:
4848
run: pytest tests/tensorflow -m 'nightly'
4949

5050
weight-compression:
51+
if: github.repository_owner == 'openvinotoolkit'
5152
uses: ./.github/workflows/conformance_weight_compression.yml
52-
53-
codeql:
54-
uses: ./.github/workflows/codeql.yml

nncf/vulnerability.py

-45
This file was deleted.

vulnerability.py

-45
This file was deleted.

0 commit comments

Comments
 (0)