Skip to content

Commit 0c4d124

Browse files
authored
Update CodeQL workflow for security analysis
1 parent e1aed32 commit 0c4d124

1 file changed

Lines changed: 44 additions & 0 deletions

File tree

.github/workflows/codeql.yml

Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
name: "CodeQL Advanced Security"
2+
3+
on:
4+
push:
5+
branches: [ "main" ]
6+
pull_request:
7+
branches: [ "main" ]
8+
schedule:
9+
- cron: '30 2 * * 0' # Her Pazar saat 02:30'da otomatik çalışır
10+
11+
jobs:
12+
analyze:
13+
name: CodeQL Analizi
14+
runs-on: ubuntu-latest
15+
permissions:
16+
actions: read
17+
contents: read
18+
security-events: write
19+
20+
strategy:
21+
fail-fast: false
22+
matrix:
23+
language: [ 'javascript' ]
24+
# Not: CodeQL PHP dilini tam olarak desteklemez.
25+
# Bu nedenle projedeki arayüz (JS/Frontend) kodlarının analizi için javascript seçilmiştir.
26+
27+
steps:
28+
- name: Depoyu Klonla
29+
uses: actions/checkout@v4
30+
31+
- name: CodeQL Başlat
32+
uses: github/codeql-action/init@v3
33+
with:
34+
languages: ${{ matrix.language }}
35+
# Daha kapsamlı tarama için aşağıdaki satırı aktif edebilirsiniz:
36+
# queries: security-extended,security-and-quality
37+
38+
- name: Otomatik Derleme
39+
uses: github/codeql-action/autobuild@v3
40+
41+
- name: CodeQL Analizini Gerçekleştir
42+
uses: github/codeql-action/analyze@v3
43+
with:
44+
category: "/language:${{matrix.language}}"

0 commit comments

Comments
 (0)