Skip to content

Commit 2ed9687

Browse files
committed
delete: codeql-analyse in ci.yml file
1 parent 6927793 commit 2ed9687

File tree

2 files changed

+17
-26
lines changed

2 files changed

+17
-26
lines changed

.github/workflows/ci.yml

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -82,15 +82,6 @@ jobs:
8282
# - name: Safety scan
8383
# run: uv run safety scan
8484

85-
# 11️⃣ CodeQL security scanning
86-
- name: Initialize CodeQL
87-
uses: github/codeql-action/init@v3
88-
with:
89-
languages: python
90-
91-
- name: Perform CodeQL Analysis
92-
uses: github/codeql-action/analyze@v3
93-
9485
# 12️⃣ Сохраняем кэш pytest при падении тестов
9586
- name: Upload pytest cache
9687
if: failure()

.github/workflows/codeql-analysis.yml

Lines changed: 17 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -3,34 +3,34 @@ name: "CodeQL"
33
on:
44
push:
55
branches: [ main ]
6-
pull_request:
6+
pull_request_target: # <-- вместо pull_request
77
branches: [ main ]
88
schedule:
9-
- cron: '0 0 * * 0' # опционально, раз в неделю
9+
- cron: '0 0 * * 0' # раз в неделю
10+
11+
permissions:
12+
contents: read
13+
security-events: read # безопасно для форков
1014

1115
jobs:
1216
codeql:
1317
name: Analyze
1418
runs-on: ubuntu-latest
15-
permissions:
16-
actions: read
17-
contents: read
18-
security-events: write
1919
strategy:
2020
fail-fast: false
2121
matrix:
22-
language: [ 'python' ] # укажи нужные языки
22+
language: [ 'python' ]
2323
steps:
24-
- name: Checkout repository
25-
uses: actions/checkout@v3
24+
- name: Checkout repository
25+
uses: actions/checkout@v3
2626

27-
- name: Initialize CodeQL
28-
uses: github/codeql-action/init@v3
29-
with:
30-
languages: ${{ matrix.language }}
27+
- name: Initialize CodeQL
28+
uses: github/codeql-action/init@v3
29+
with:
30+
languages: ${{ matrix.language }}
3131

32-
- name: Autobuild
33-
uses: github/codeql-action/autobuild@v3
32+
- name: Autobuild
33+
uses: github/codeql-action/autobuild@v3
3434

35-
- name: Perform CodeQL Analysis
36-
uses: github/codeql-action/analyze@v3
35+
- name: Perform CodeQL Analysis
36+
uses: github/codeql-action/analyze@v3

0 commit comments

Comments
 (0)