Skip to content

Add build-mode: manual to CodeQL init step#55

Merged
Malcolmnixon merged 2 commits intomainfrom
copilot/apply-pull-request-33
Mar 6, 2026
Merged

Add build-mode: manual to CodeQL init step#55
Malcolmnixon merged 2 commits intomainfrom
copilot/apply-pull-request-33

Conversation

Copy link
Contributor

Copilot AI commented Mar 6, 2026

Pull Request

Description

Ports TemplateDotNetLibrary#33 to this repository. The codeql-action/init step was missing an explicit build-mode, leaving CodeQL to infer the strategy despite the workflow already performing a manual dotnet build.

  • .github/workflows/build.yaml: Added build-mode: manual to the github/codeql-action/init@v4 step
- name: Initialize CodeQL
  uses: github/codeql-action/init@v4
  with:
    languages: csharp
    build-mode: manual          # ← added
    queries: security-and-quality
    config-file: ./.github/codeql-config.yml

No functional change — makes existing intent explicit.

Type of Change

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)
  • Documentation update
  • Code quality improvement

Related Issues

Pre-Submission Checklist

Before submitting this pull request, ensure you have completed the following:

Build and Test

  • Code builds successfully: dotnet build --configuration Release
  • All unit tests pass: dotnet test --configuration Release
  • Self-validation tests pass:
    dotnet run --project src/DemaConsulting.TemplateDotNetTool --configuration Release --framework net10.0
    --no-build -- --validate
  • Code produces zero warnings

Code Quality

  • Code formatting is correct: dotnet format --verify-no-changes
  • New code has appropriate XML documentation comments
  • Static analyzer warnings have been addressed

Quality Checks

Please run the following checks before submitting:

  • Spell checker passes: cspell "**/*.{md,cs}"
  • Markdown linter passes: markdownlint "**/*.md"
  • YAML linter passes: yamllint .

Testing

  • Added unit tests for new functionality
  • Updated existing tests if behavior changed
  • All tests follow the AAA (Arrange, Act, Assert) pattern
  • Test coverage is maintained or improved

Documentation

  • Updated README.md (if applicable)
  • Updated ARCHITECTURE.md (if applicable)
  • Added code examples for new features (if applicable)
  • Updated requirements.yaml (if applicable)

Additional Notes

Mirrors change applied to TemplateDotNetLibrary#33.


✨ Let Copilot coding agent set things up for you — coding agent works faster and does higher quality work when set up for your repo.

Co-authored-by: Malcolmnixon <1863707+Malcolmnixon@users.noreply.github.com>
@Malcolmnixon Malcolmnixon marked this pull request as ready for review March 6, 2026 16:46
Copilot AI review requested due to automatic review settings March 6, 2026 16:46
Copilot AI changed the title [WIP] Apply changes from pull request 33 Add build-mode: manual to CodeQL init step Mar 6, 2026
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Updates the CodeQL initialization step in the CI workflow to explicitly use manual build mode, aligning the CodeQL job with the existing explicit dotnet build step in the workflow.

Changes:

  • Add build-mode: manual to the github/codeql-action/init@v4 step in the CodeQL job.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

You can also share your feedback on Copilot code review. Take the survey.

@Malcolmnixon Malcolmnixon merged commit 5eb137f into main Mar 6, 2026
19 checks passed
@Malcolmnixon Malcolmnixon deleted the copilot/apply-pull-request-33 branch March 6, 2026 16:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants