Sync missing template configs and scripts#19
Merged
Conversation
Added: .gitattributes .globalconfig BannedSymbols.txt SECURITY.md .gitleaks.toml Directory.Build.props build-pr.ps1 setup.ps1 Setup-GitHubPages.ps1 Setup-Labels.ps1 codeql.yaml build-all-versions.yaml version-picker Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Contributor
There was a problem hiding this comment.
Pull request overview
This PR syncs additional configuration, security, CI workflow, and helper-script files from the upstream repo-template so downstream repos have the same baseline tooling and automation.
Changes:
- Add repo setup / maintenance PowerShell scripts (initial repo configuration, PR checks, GitHub Pages + labels setup).
- Introduce security and quality tooling configuration (gitleaks config, CodeQL workflow, analyzers/banned APIs via
Directory.Build.props+BannedSymbols.txt). - Add DocFX versioned-docs deployment workflow support (build-all-versions workflow + shared version-picker HTML template).
Reviewed changes
Copilot reviewed 13 out of 13 changed files in this pull request and generated 5 comments.
Show a summary per file
| File | Description |
|---|---|
| scripts/setup.ps1 | Interactive “configure-from-template” script that replaces placeholders, sets license, optionally creates a solution, and can create a PR with the results. |
| scripts/build-pr.ps1 | Local runner intended to mirror PR CI checks (build/test/coverage/security/secrets scan). |
| scripts/Setup-Labels.ps1 | Creates standard GitHub labels via gh. |
| scripts/Setup-GitHubPages.ps1 | Automates GitHub Pages + DocFX configuration and gh-pages branch setup via gh/git. |
| SECURITY.md | Adds a security policy and vulnerability reporting instructions. |
| Directory.Build.props | Enables analyzers and adds analyzer package references + banned API additional file wiring. |
| BannedSymbols.txt | Defines banned APIs (async-first, insecure/obsolete APIs) for BannedApiAnalyzers. |
| .globalconfig | Global analyzer configuration (Roslynator settings). |
| .gitleaks.toml | Repository gitleaks allowlist configuration. |
| .github/workflows/codeql.yaml | Adds CodeQL scanning workflow with a “skip if no C#” guard. |
| .github/workflows/build-all-versions.yaml | Adds workflow to build and deploy DocFX docs for all tags + “latest”. |
| .github/version-picker-template.html | Shared HTML template used to generate the docs version picker index. |
| .gitattributes | Adds line-ending and binary-file attributes, including an override for *.ps1. |
- setup.ps1: Allow dotfiles at repo root in .slnx generation (fixes .editorconfig, .gitignore, .globalconfig being excluded) - Setup-GitHubPages.ps1: Remove hardcoded repo default, auto-detect via gh repo view - build-pr.ps1: Install gitleaks to ~/.local/bin instead of /usr/local/bin (avoids sudo requirement) - build-pr.ps1: Fail when no test projects found (matches CI behavior) Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Chris-Wolfgang
added a commit
that referenced
this pull request
Apr 25, 2026
Removes script changes from this PR. The four script files contained post-setup customizations (resolved repo name, bug fixes from PR #19's review feedback) that shouldn't be reverted by syncing from repo-template: - Setup-BranchRuleset.ps1: keep resolved Chris-Wolfgang/In-memory-Logger - Setup-GitHubPages.ps1: keep resolved repo name and auto-detect block - build-pr.ps1: keep gitleaks ~/.local/bin install (no sudo) and fail-on-no-test-projects behavior - setup.ps1: keep dotfiles-at-repo-root fix for .slnx generation This PR now only syncs the truly template-tracked files: .editorconfig and the three workflow yamls. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Chris-Wolfgang
added a commit
that referenced
this pull request
Apr 25, 2026
Removes script changes from this PR. The four script files contained post-setup customizations (resolved repo name, bug fixes from PR #19's review feedback) that shouldn't be reverted by syncing from repo-template: - Setup-BranchRuleset.ps1: keep resolved Chris-Wolfgang/In-memory-Logger - Setup-GitHubPages.ps1: keep resolved repo name and auto-detect block - build-pr.ps1: keep gitleaks ~/.local/bin install (no sudo) and fail-on-no-test-projects behavior - setup.ps1: keep dotfiles-at-repo-root fix for .slnx generation This PR now only syncs the truly template-tracked files: .editorconfig and the three workflow yamls. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Sync with repo-template — adds missing files:
.gitattributes .globalconfig BannedSymbols.txt SECURITY.md .gitleaks.toml Directory.Build.props build-pr.ps1 setup.ps1 Setup-GitHubPages.ps1 Setup-Labels.ps1 codeql.yaml build-all-versions.yaml version-picker
🤖 Generated with Claude Code