Skip to content

Commit 18c52db

Browse files
committed
Disable CodeQL advanced workflow to prevent default setup conflicts
- Change triggers to workflow_dispatch (manual only) to prevent automatic conflicts - Remove category parameter that triggers SARIF submission - Add clear instructions for enabling advanced setup after disabling default - Prevents 'CodeQL analyses from advanced configurations cannot be processed when the default setup is enabled' error - Repository can now use GitHub's default CodeQL setup without conflicts - Advanced workflow can be re-enabled manually after disabling default setup
1 parent 26f9631 commit 18c52db

File tree

1 file changed

+17
-10
lines changed

1 file changed

+17
-10
lines changed

.github/workflows/codeql.yml

Lines changed: 17 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,27 @@
11
# This workflow uses advanced CodeQL analysis configuration
2-
# If you encounter conflicts with default CodeQL setup, you need to:
2+
# IMPORTANT: This workflow conflicts with GitHub's default CodeQL setup!
3+
#
4+
# To use this advanced setup:
35
# 1. Go to repository Settings > Code security and analysis
46
# 2. Under "Code scanning", disable "Default setup" for CodeQL
5-
# 3. Or delete this file and use the default setup instead
7+
# 3. Then uncomment the 'on:' section below to activate this workflow
8+
#
9+
# OR: Delete this file entirely and use GitHub's default CodeQL setup instead
610
#
711
name: "CodeQL"
812

13+
# UNCOMMENT THE SECTION BELOW AFTER DISABLING DEFAULT CODEQL SETUP
14+
# on:
15+
# push:
16+
# branches: [ "**" ]
17+
# pull_request:
18+
# branches: [ "**" ]
19+
# schedule:
20+
# - cron: '16 19 * * 2'
21+
22+
# Comment out the triggers to prevent conflicts with default setup
923
on:
10-
push:
11-
branches: [ "**" ]
12-
pull_request:
13-
branches: [ "**" ]
14-
schedule:
15-
- cron: '16 19 * * 2'
24+
workflow_dispatch: # Manual trigger only
1625

1726
jobs:
1827
analyze:
@@ -91,5 +100,3 @@ jobs:
91100
92101
- name: Perform CodeQL Analysis
93102
uses: github/codeql-action/analyze@v3
94-
with:
95-
category: "/language:${{matrix.language}}"

0 commit comments

Comments
 (0)