Upgrade pr.yaml to v3 (Gated)#72
Merged
Merged
Conversation
Sync with repo-template: multi-stage gated CI with security hardening, trusted config fetch from main, and 90% coverage gate. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Contributor
There was a problem hiding this comment.
Pull request overview
Updates the PR validation GitHub Actions workflow to the repo-template v3 “gated” CI model, emphasizing trusted execution (via pull_request_target), multi-stage OS testing, and additional security scanning.
Changes:
- Switch PR trigger to
pull_request_targetand harden workflow by checking out PR refs while sourcing protected config frommain. - Add a detection job to skip .NET build/test stages when no project files exist; restructure tests into 3 gated stages (Linux → Windows → macOS).
- Add/ensure security scanning runs in parallel (gitleaks + DevSkim) and enforce a 90% coverage gate.
…ttings - Remove duplicate "Fetch trusted configuration files from main branch" step from all 5 jobs (detect-projects, test-linux-core, test-windows, test-macos-core, security-scan) — each had the step twice - Remove duplicate security note comment about configuration files in header - Restore --settings coverlet.runsettings in Windows Stage 2 test step - Fix trailing whitespace on test-linux-core and env lines Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Chris-Wolfgang
added a commit
that referenced
this pull request
Apr 16, 2026
pull_request_target never fired after PR #72 merged — GitHub received the PR events but the workflow never ran, blocking all CI checks. Revert to pull_request trigger which worked reliably with v2. Also remove the ref/persist-credentials overrides that were only needed for pull_request_target (pull_request already checks out PR code). Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2 tasks
Chris-Wolfgang
added a commit
that referenced
this pull request
Apr 19, 2026
The test-linux-core job had an orphan 'run:' block on line 244 — the 'Install OpenSSL 1.1 for .NET 5.0' step lost its '- name:' line during a prior cleanup, so YAML saw two 'run:' keys under the same step. GitHub's YAML parser silently fails on duplicate mapping keys, which is why pull_request_target never fired since PR #72 merged. All open PRs (including Dependabot updates #77, #78, #79) have been blocked because no required check ever ran. Restoring the missing step header fixes the parse error and brings the workflow back online. Verified with js-yaml: file now parses cleanly and all 6 jobs are present. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
Chris-Wolfgang
added a commit
that referenced
this pull request
Apr 19, 2026
The test-linux-core job had an orphan 'run:' block on line 244 — the 'Install OpenSSL 1.1 for .NET 5.0' step lost its '- name:' line during a prior cleanup, so YAML saw two 'run:' keys under the same step. GitHub's YAML parser silently fails on duplicate mapping keys, which is why pull_request_target never fired since PR #72 merged. All open PRs (including Dependabot updates #77, #78, #79) have been blocked because no required check ever ran. Restoring the missing step header fixes the parse error and brings the workflow back online. Verified with js-yaml: file now parses cleanly and all 6 jobs are present. Co-Authored-By: Claude Opus 4.7 (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 pr.yaml with repo-template v3:
🤖 Generated with Claude Code