Skip to content

Sync missing template configs and scripts#75

Merged
Chris-Wolfgang merged 2 commits into
mainfrom
chore/sync-template-configs
Apr 18, 2026
Merged

Sync missing template configs and scripts#75
Chris-Wolfgang merged 2 commits into
mainfrom
chore/sync-template-configs

Conversation

@Chris-Wolfgang
Copy link
Copy Markdown
Owner

Summary

Sync with repo-template — adds missing files:
.gitattributes .globalconfig BannedSymbols.txt Directory.Build.props codeql.yaml

🤖 Generated with Claude Code

Added: .gitattributes .globalconfig BannedSymbols.txt Directory.Build.props codeql.yaml

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Copilot AI review requested due to automatic review settings April 16, 2026 02:32
Copy link
Copy Markdown
Contributor

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

This PR syncs this repository with the repo template by adding missing repository configuration files (build/analyzers, git attributes, analyzer config) and introducing a CodeQL workflow for security scanning.

Changes:

  • Add repo-wide MSBuild/analyzer configuration via Directory.Build.props (including banned API enforcement via BannedSymbols.txt).
  • Add global analyzer configuration in .globalconfig and repository line-ending rules in .gitattributes.
  • Add a new GitHub Actions workflow to run CodeQL analysis on C# code.

Reviewed changes

Copilot reviewed 5 out of 5 changed files in this pull request and generated 8 comments.

Show a summary per file
File Description
Directory.Build.props Enables .NET analyzers/code style in builds and adds analyzer package references plus BannedSymbols.txt as an additional file.
BannedSymbols.txt Defines banned APIs intended to enforce async-first patterns and avoid unsafe/deprecated APIs.
.globalconfig Sets global analyzer configuration defaults and Roslynator options.
.github/workflows/codeql.yaml Adds a CodeQL security analysis workflow (push/PR/scheduled).
.gitattributes Standardizes line endings and marks binary files appropriately.

Comment thread BannedSymbols.txt Outdated
Comment thread BannedSymbols.txt Outdated
Comment thread BannedSymbols.txt Outdated
Comment thread .github/workflows/codeql.yaml Outdated
Comment thread .gitattributes Outdated
Comment thread BannedSymbols.txt
Comment thread BannedSymbols.txt Outdated
Comment thread BannedSymbols.txt Outdated
…rigger

BannedSymbols.txt:
- Remove () from parameterless method IDs (Task.Wait, GetResult,
  Thread.Suspend/Resume, Stream.Flush, Console.Read/ReadLine/ReadKey)
  so BannedApiAnalyzers actually matches them
- Replace {{PROJECT_NAME}} placeholder with Try-Pattern

.gitattributes:
- Simplify PowerShell comment (referenced nonexistent .editorconfig section)

codeql.yaml:
- Remove pull_request trigger (security-events: write fails on fork PRs)

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@Chris-Wolfgang Chris-Wolfgang merged commit adc5b05 into main Apr 18, 2026
@Chris-Wolfgang Chris-Wolfgang deleted the chore/sync-template-configs branch April 18, 2026 00:08
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.

2 participants