File tree Expand file tree Collapse file tree 2 files changed +17
-26
lines changed
Expand file tree Collapse file tree 2 files changed +17
-26
lines changed Original file line number Diff line number Diff line change 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()
Original file line number Diff line number Diff line change @@ -3,34 +3,34 @@ name: "CodeQL"
33on :
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
1115jobs :
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
You can’t perform that action at this time.
0 commit comments