Skip to content

Commit d68b20b

Browse files
authored
merge-Refactor analyze job to reusable workflow
Refactor the analyze job to use a reusable workflow for better maintainability and enable it on Windows CI.
1 parent 809a2f1 commit d68b20b

File tree

1 file changed

+0
-52
lines changed

1 file changed

+0
-52
lines changed

.github/workflows/linux-ci.yml

Lines changed: 0 additions & 52 deletions
Original file line numberDiff line numberDiff line change
@@ -163,65 +163,13 @@ jobs:
163163
name: CodeQL Analysis
164164
needs: changes
165165
if: ${{ needs.changes.outputs.source == 'true' }}
166-
<<<<<<< HEAD
167-
168-
strategy:
169-
fail-fast: false
170-
matrix:
171-
# Override automatic language detection by changing the below list
172-
# Supported options are ['csharp', 'cpp', 'go', 'java', 'javascript', 'python']
173-
language: ['csharp']
174-
# Learn more...
175-
# https://docs.github.com/en/github/finding-security-vulnerabilities-and-errors-in-your-code/configuring-code-scanning#overriding-automatic-language-detection
176-
177-
steps:
178-
- name: Checkout repository
179-
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
180-
with:
181-
fetch-depth: '0'
182-
183-
- uses: actions/setup-dotnet@v4
184-
with:
185-
global-json-file: ./global.json
186-
187-
# Initializes the CodeQL tools for scanning.
188-
- name: Initialize CodeQL
189-
uses: github/codeql-action/init@df409f7d9260372bd5f19e5b04e83cb3c43714ae # v3.27.9
190-
with:
191-
languages: ${{ matrix.language }}
192-
# If you wish to specify custom queries, you can do so here or in a config file.
193-
# By default, queries listed here will override any specified in a config file.
194-
# Prefix the list here with "+" to use these queries and those in the config file.
195-
# queries: ./path/to/local/query, your-org/your-repo/queries@main
196-
197-
- run: |
198-
Get-ChildItem -Path env: | Out-String -width 9999 -Stream | write-Verbose -Verbose
199-
name: Capture Environment
200-
shell: pwsh
201-
202-
- run: |
203-
Import-Module .\tools\ci.psm1
204-
Invoke-CIInstall -SkipUser
205-
name: Bootstrap
206-
shell: pwsh
207-
208-
- run: |
209-
Import-Module .\tools\ci.psm1
210-
Invoke-CIBuild
211-
name: Build
212-
shell: pwsh
213-
214-
- name: Perform CodeQL Analysis
215-
uses: github/codeql-action/analyze@df409f7d9260372bd5f19e5b04e83cb3c43714ae # v3.27.9
216-
=======
217166
uses: ./.github/workflows/analyze-reusable.yml
218167
permissions:
219168
actions: read
220169
contents: read
221170
security-events: write
222171
with:
223172
runner_os: ubuntu-latest
224-
>>>>>>> 5e5e17766 (Refactor analyze job to reusable workflow and enable on Windows CI (#26322))
225173

226174
ready_to_merge:
227175
name: Linux ready to merge

0 commit comments

Comments
 (0)