feat: implement issue #877 — [#850] make standards-deploy driver treat a missing S7635 marker as drift (propagate #876 markers to already-pinned consumers) - #878
Conversation
…t a missing S7635 marker as drift (propagate #876 markers to already-pinned consumers)
|
You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard. |
🤖 CodeAnt AI — Review Status
Updated in place by CodeAnt AI · last 5 reviews |
|
Warning Review limit reached
Next review available in: 9 minutes Enable usage-based reviews in Billing to review now. Otherwise, wait until the next included review is available. How can I continue?After more reviews become available, a review can be triggered using the To avoid repeated limits, reduce automatic review volume by pausing incremental auto-reviews earlier, using label-based review opt-in, excluding WIP or generated PR titles, or requesting reviews manually when the PR is ready. If your team needs uninterrupted high-volume reviews, an organization admin can enable usage-based reviews. How do review limits work?CodeRabbit enforces per-developer PR review limits for each organization. Most developers receive the normal plan review availability. For paid Pro and Pro+ PR reviews, CodeRabbit uses adaptive limits for sustained high-volume activity. When a developer's recent PR review activity reaches the 95th percentile or higher among CodeRabbit users, additional reviews become available more gradually as earlier reviews age out of the rolling window. Please refer docs for additional details. Review details⚙️ Run configurationConfiguration used: Organization UI Review profile: ASSERTIVE Plan: Pro Run ID: 📒 Files selected for processing (3)
✨ Finishing Touches🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
Dev-Lead — review-changes (no-changes)No changes were needed for this PR. |
PR Summary by QodoTreat missing S7635 NOSONAR marker as drift in standards deploy
AI Description
Diagram
High-Level Assessment
Files changed (3)
|
Dev-Lead — fix-bot-comment (no-changes)Agent reasoning |
There was a problem hiding this comment.
Code Review
This pull request updates the deployment script to detect and remediate workflow stubs that are missing the # NOSONAR(githubactions:S7635) marker on secrets: inherit lines, treating them as drifted even if their pins are correct. While the logic and tests for identifying this drift are solid, the reviewer identified a critical risk of infinite redeployment loops for body-preserving workflows and meta-repo consumer stubs, as the deployment driver does not currently inject the marker during re-deployment. A fix was suggested to patch the source content before deployment to prevent this churn.
Code Review by Qodo
Context used✅ Compliance rules (platform):
87 rules 1.
|
Dev-Lead — fix-reviews (applied)Changes committed and pushed. |
|
…esolve merge conflict (#877/#878 backport) Main added `stub_has_s7635_marker`, `is_pin_compliant`, and a new `is_already_compliant` that checks both pin compliance and S7635 marker presence. The PR branch defined `template_requires_s7635_marker` with different semantics (returns true only when the template itself carries the marker, not for bare `secrets: inherit`). The merge commit resolved the conflict in favour of main's broader check, causing bats test 70 ("false for a bare secrets: inherit line lacking the marker") to fail. Fix: pull main's infrastructure into the PR branch while keeping the PR's narrower Option-B `template_requires_s7635_marker` semantics, which tests 68–71 were written to verify. Also backport main's updated test fixtures for dry-run.bats and emit-vform.bats (marked stubs + #877/#878 tests) so the local suite matches the 88-test count the CI merge commit runs. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>



User description
Closes #877
Implemented by dev-lead agent. Please review.
CodeAnt-AI Description
Treat missing S7635 markers in pinned workflow stubs as drift
What Changed
S7635notice onsecrets: inheritImpact
✅ Restores missing workflow markers✅ Fewer skipped re-deploys for already-pinned consumers✅ Less churn on compliant workflow stubs💡 Usage Guide
Checking Your Pull Request
Every time you make a pull request, our system automatically looks through it. We check for security issues, mistakes in how you're setting up your infrastructure, and common code problems. We do this to make sure your changes are solid and won't cause any trouble later.
Talking to CodeAnt AI
Got a question or need a hand with something in your pull request? You can easily get in touch with CodeAnt AI right here. Just type the following in a comment on your pull request, and replace "Your question here" with whatever you want to ask:
This lets you have a chat with CodeAnt AI about your pull request, making it easier to understand and improve your code.
Example
Preserve Org Learnings with CodeAnt
You can record team preferences so CodeAnt AI applies them in future reviews. Reply directly to the specific CodeAnt AI suggestion (in the same thread) and replace "Your feedback here" with your input:
This helps CodeAnt AI learn and adapt to your team's coding style and standards.
Example
Retrigger review
Ask CodeAnt AI to review the PR again, by typing:
Check Your Repository Health
To analyze the health of your code repository, visit our dashboard at https://app.codeant.ai. This tool helps you identify potential issues and areas for improvement in your codebase, ensuring your repository maintains high standards of code health.