Skip to content

Commit 940151a

Browse files
Build cleanup: Replace pwsh shell overrides with bash (#41)
* Initial plan * Replace pwsh shell with bash and simplify build commands Co-authored-by: Malcolmnixon <1863707+Malcolmnixon@users.noreply.github.com> * Add explicit shell: bash to steps using bash syntax on Windows runner Co-authored-by: Malcolmnixon <1863707+Malcolmnixon@users.noreply.github.com> --------- Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com> Co-authored-by: Malcolmnixon <1863707+Malcolmnixon@users.noreply.github.com>
1 parent 0f19d9f commit 940151a

File tree

1 file changed

+16
-18
lines changed

1 file changed

+16
-18
lines changed

.github/workflows/build.yaml

Lines changed: 16 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -289,12 +289,12 @@ jobs:
289289
run: npm install
290290

291291
- name: Install SarifMark from package
292-
shell: pwsh
292+
shell: bash
293293
run: |
294294
echo "Installing SarifMark version ${{ inputs.version }}"
295-
dotnet tool install --global `
296-
--add-source packages `
297-
--version ${{ inputs.version }} `
295+
dotnet tool install --global \
296+
--add-source packages \
297+
--version ${{ inputs.version }} \
298298
DemaConsulting.SarifMark
299299
300300
- name: Restore Tools
@@ -310,39 +310,37 @@ jobs:
310310
--enforce
311311
312312
- name: Generate CodeQL Quality Report with SarifMark
313-
shell: pwsh
314-
run: |
315-
echo "Generating CodeQL quality report..."
316-
sarifmark `
317-
--sarif codeql-results/csharp.sarif `
318-
--report docs/quality/codeql-quality.md `
319-
--heading "SarifMark CodeQL Analysis" `
320-
--report-depth 1
313+
run: >
314+
sarifmark
315+
--sarif codeql-results/csharp.sarif
316+
--report docs/quality/codeql-quality.md
317+
--heading "SarifMark CodeQL Analysis"
318+
--report-depth 1
321319
322320
- name: Display CodeQL Quality Report
323-
shell: pwsh
321+
shell: bash
324322
run: |
325323
echo "=== CodeQL Quality Report ==="
326-
Get-Content docs/quality/codeql-quality.md
324+
cat docs/quality/codeql-quality.md
327325
328326
- name: Generate SonarCloud Quality Report with SonarMark
329-
shell: pwsh
327+
shell: bash
330328
env:
331329
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
332330
run: >
333331
dotnet sonarmark
334332
--server https://sonarcloud.io
335333
--project-key demaconsulting_SarifMark
336334
--branch ${{ github.ref_name }}
337-
--token "$env:SONAR_TOKEN"
335+
--token "$SONAR_TOKEN"
338336
--report docs/quality/sonar-quality.md
339337
--report-depth 1
340338
341339
- name: Display SonarCloud Quality Report
342-
shell: pwsh
340+
shell: bash
343341
run: |
344342
echo "=== SonarCloud Quality Report ==="
345-
Get-Content docs/quality/sonar-quality.md
343+
cat docs/quality/sonar-quality.md
346344
347345
- name: Generate Guide HTML with Pandoc
348346
run: >

0 commit comments

Comments
 (0)