@@ -15,23 +15,23 @@ name: CodeQL Advanced
15
15
16
16
on :
17
17
push :
18
- branches : [ "main" ]
18
+ branches : ["main"]
19
19
paths-ignore :
20
- - ' **/tests/**'
21
- - ' **/docs/**'
20
+ - " **/tests/**"
21
+ - " **/docs/**"
22
22
pull_request :
23
- branches : [ "main" ]
23
+ branches : ["main"]
24
24
paths-ignore :
25
- - ' **/tests/**'
26
- - ' **/docs/**'
25
+ - " **/tests/**"
26
+ - " **/docs/**"
27
27
# schedule:
28
28
# - cron: '15 21 * * 3' # Weekly on Wednesday at 21:15 UTC
29
29
30
30
permissions :
31
- contents : read # For checking out the code
32
- security-events : write # Required to upload SARIF results
33
- actions : read # Required in private repositories
34
- packages : read # Required to download CodeQL packs
31
+ contents : read # For checking out the code
32
+ security-events : write # Required to upload SARIF results
33
+ actions : read # Required in private repositories
34
+ packages : read # Required to download CodeQL packs
35
35
36
36
jobs :
37
37
analyze :
@@ -50,52 +50,52 @@ jobs:
50
50
build : none
51
51
52
52
steps :
53
- # -------------------------------------------------------------
54
- # 0️⃣ Checkout source
55
- # -------------------------------------------------------------
56
- - name : ⬇️ Checkout code
57
- uses : actions/checkout@v4
53
+ # -------------------------------------------------------------
54
+ # 0️⃣ Checkout source
55
+ # -------------------------------------------------------------
56
+ - name : ⬇️ Checkout code
57
+ uses : actions/checkout@v4
58
58
59
- # -------------------------------------------------------------
60
- # 1️⃣ Optional setup – runtimes for specific languages
61
- # -------------------------------------------------------------
62
- - name : 🐍 Setup Python
63
- if : matrix.language == 'python'
64
- uses : actions/setup-python@v5
65
- with :
66
- python-version : ' 3.x'
59
+ # -------------------------------------------------------------
60
+ # 1️⃣ Optional setup – runtimes for specific languages
61
+ # -------------------------------------------------------------
62
+ - name : 🐍 Setup Python
63
+ if : matrix.language == 'python'
64
+ uses : actions/setup-python@v5
65
+ with :
66
+ python-version : " 3.x"
67
67
68
- - name : 🟢 Setup Node.js
69
- if : matrix.language == 'javascript-typescript'
70
- uses : actions/setup-node@v4
71
- with :
72
- node-version : ' 20 '
68
+ - name : 🟢 Setup Node.js
69
+ if : matrix.language == 'javascript-typescript'
70
+ uses : actions/setup-node@v4
71
+ with :
72
+ node-version : " 20 "
73
73
74
- # -------------------------------------------------------------
75
- # 2️⃣ Initialize CodeQL
76
- # -------------------------------------------------------------
77
- - name : 🛠️ Initialize CodeQL
78
- uses : github/codeql-action/init@v3
79
- with :
80
- languages : ${{ matrix.language }}
81
- dependency-caching : true
82
- config-file : ./.github/codeql-config.yml
74
+ # -------------------------------------------------------------
75
+ # 2️⃣ Initialize CodeQL
76
+ # -------------------------------------------------------------
77
+ - name : 🛠️ Initialize CodeQL
78
+ uses : github/codeql-action/init@v3
79
+ with :
80
+ languages : ${{ matrix.language }}
81
+ dependency-caching : true
82
+ config-file : ./.github/codeql-config.yml
83
83
84
- # -------------------------------------------------------------
85
- # 3️⃣ Manual build step (not needed for JS/Python/Actions)
86
- # -------------------------------------------------------------
87
- - if : matrix.build == 'manual'
88
- name : ⚙️ Manual build (placeholder)
89
- shell : bash
90
- run : |
91
- echo "Add manual build commands here if needed."
92
- exit 1
84
+ # -------------------------------------------------------------
85
+ # 3️⃣ Manual build step (not needed for JS/Python/Actions)
86
+ # -------------------------------------------------------------
87
+ - if : matrix.build == 'manual'
88
+ name : ⚙️ Manual build (placeholder)
89
+ shell : bash
90
+ run : |
91
+ echo "Add manual build commands here if needed."
92
+ exit 1
93
93
94
- # -------------------------------------------------------------
95
- # 4️⃣ Perform CodeQL analysis
96
- # -------------------------------------------------------------
97
- - name : 🔬 Perform CodeQL analysis
98
- uses : github/codeql-action/analyze@v3
99
- with :
100
- category : " /language:${{ matrix.language }}"
101
- upload : false
94
+ # -------------------------------------------------------------
95
+ # 4️⃣ Perform CodeQL analysis
96
+ # -------------------------------------------------------------
97
+ - name : 🔬 Perform CodeQL analysis
98
+ uses : github/codeql-action/analyze@v3
99
+ with :
100
+ category : " /language:${{ matrix.language }}"
101
+ upload : false
0 commit comments