Skip to content

Commit 294ff4a

Browse files
committed
fix: CI pipeline - resolve GitHub Release conflicts and properly configure CodeQL analysis [release]
1 parent cbadac0 commit 294ff4a

File tree

2 files changed

+30
-5
lines changed

2 files changed

+30
-5
lines changed

.github/codeql/codeql-config.yml

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
name: "CodeQL Config"
2+
3+
disable-default-path-filters: false
4+
5+
paths-ignore:
6+
- "**/bin/**"
7+
- "**/obj/**"
8+
- "**/packages/**"
9+
- "**/node_modules/**"
10+
- "**/*.min.js"
11+
- "**/*.Designer.cs"
12+
- "**/*.generated.cs"
13+
14+
queries:
15+
- uses: security-and-quality
16+
17+
packs:
18+
- codeql/csharp-queries

.github/workflows/ci.yml

Lines changed: 12 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -189,8 +189,8 @@ jobs:
189189
env:
190190
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
191191
with:
192-
tag_name: v${{ steps.get_version.outputs.version }}
193-
release_name: SmartRAG v${{ steps.get_version.outputs.version }}
192+
tag_name: v${{ steps.get_version.outputs.version }}-build-${{ github.run_number }}
193+
release_name: SmartRAG v${{ steps.get_version.outputs.version }} Build ${{ github.run_number }}
194194
body: |
195195
## 🚀 What's New in v${{ steps.get_version.outputs.version }}
196196
@@ -281,14 +281,21 @@ jobs:
281281
dotnet tool install --global dotnet-outdated-tool || echo "dotnet-outdated already installed"
282282
dotnet outdated --upgrade || echo "No outdated packages or tool unavailable"
283283
284-
- name: Run CodeQL Analysis
285-
continue-on-error: true
284+
- name: Initialize CodeQL
286285
uses: github/codeql-action/init@v3
287286
with:
288287
languages: csharp
288+
config-file: ./.github/codeql/codeql-config.yml
289+
continue-on-error: true
289290

290-
- name: Perform CodeQL Analysis
291+
- name: Autobuild
292+
uses: github/codeql-action/autobuild@v3
291293
continue-on-error: true
294+
295+
- name: Perform CodeQL Analysis
292296
uses: github/codeql-action/analyze@v3
297+
with:
298+
category: "/language:csharp"
299+
continue-on-error: true
293300

294301

0 commit comments

Comments
 (0)