@@ -8,15 +8,15 @@ name: "CodeQL"
88
99on :
1010 push :
11- branches : [ "main" ]
11+ branches : [ "main", "dev" ]
1212 paths-ignore :
1313 - ' **/*.md'
1414 - ' **/*.txt'
1515 - ' .github/**'
1616 - ' **/.gitignore'
1717 pull_request :
1818 # The branches below must be a subset of the branches above
19- branches : [ "main" ]
19+ branches : [ "main", "dev" ]
2020 paths-ignore :
2121 - ' **/*.md'
2222 - ' **/*.txt'
@@ -50,19 +50,21 @@ jobs:
5050 - name : Summary - CodeQL analysis started
5151 shell : pwsh
5252 run : |
53- @"
54- ## 🔒 CodeQL Security Analysis - Workflow Summary
55-
56- ### Analysis Configuration
57-
58- | Property | Value |
59- | --- | --- |
60- | Repository | ``${{ github.repository }}`` |
61- | Branch | ``${{ github.ref_name }}`` |
62- | Language | ``${{ matrix.language }}`` |
63- | Commit | ``${{ github.sha }}`` |
64-
65- "@ | Add-Content -Path $env:GITHUB_STEP_SUMMARY -Encoding utf8
53+ $summary = @"
54+ ## 🔒 CodeQL Security Analysis - Workflow Summary
55+
56+ ### Analysis Configuration
57+
58+ | Property | Value |
59+ | --- | --- |
60+ | Repository | ``${{ github.repository }}`` |
61+ | Branch | ``${{ github.ref_name }}`` |
62+ | Language | ``${{ matrix.language }}`` |
63+ | Commit | ``${{ github.sha }}`` |
64+
65+ "@
66+
67+ $summary | Add-Content -Path $env:GITHUB_STEP_SUMMARY -Encoding utf8
6668
6769 # Initializes the CodeQL tools for scanning.
6870 - name : Initialize CodeQL
@@ -88,12 +90,14 @@ jobs:
8890 if : success()
8991 shell : pwsh
9092 run : |
91- @"
92- ### ✅ Build Completed
93-
94- Cmder launcher built successfully for CodeQL analysis.
95-
96- "@ | Add-Content -Path $env:GITHUB_STEP_SUMMARY -Encoding utf8
93+ $summary = @"
94+ ### ✅ Build Completed
95+
96+ Cmder launcher built successfully for CodeQL analysis.
97+
98+ "@
99+
100+ $summary | Add-Content -Path $env:GITHUB_STEP_SUMMARY -Encoding utf8
97101
98102 - name : Perform CodeQL Analysis
99103 uses : github/codeql-action/analyze@v4
@@ -104,12 +108,14 @@ jobs:
104108 if : success()
105109 shell : pwsh
106110 run : |
107- @"
108- ### 🔍 CodeQL Analysis Results
109-
110- ✅ CodeQL security analysis completed successfully.
111-
112- **Language analyzed:** ``${{ matrix.language }}``
113-
114- > Check the Security tab for detailed findings and recommendations.
115- "@ | Add-Content -Path $env:GITHUB_STEP_SUMMARY -Encoding utf8
111+ $summary = @"
112+ ### 🔍 CodeQL Analysis Results
113+
114+ ✅ CodeQL security analysis completed successfully.
115+
116+ **Language analyzed:** ``${{ matrix.language }}``
117+
118+ > Check the Security tab for detailed findings and recommendations.
119+ "@
120+
121+ $summary | Add-Content -Path $env:GITHUB_STEP_SUMMARY -Encoding utf8
0 commit comments