ci: inline NOSONAR(S7637) markers on first-party caller stubs (#549 canonical migration) - #991
ci: inline NOSONAR(S7637) markers on first-party caller stubs (#549 canonical migration)#991don-petry wants to merge 32 commits into
Conversation
|
Note Currently processing new changes in this PR. This may take a few minutes, please wait... ⚙️ Run configurationConfiguration used: Organization UI Review profile: ASSERTIVE Plan: Pro Run ID: 📒 Files selected for processing (9)
📝 WalkthroughWalkthroughThis PR adds inline ChangesWorkflow NOSONAR Annotations
Sequence Diagram(s)Not applicable — these are configuration/annotation-only changes to CI workflow files with no new component interactions. Estimated code review effort🎯 1 (Trivial) | ⏱️ ~5 minutes Possibly related PRs
Suggested labels
🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✨ 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 |
|
Note Gemini is unable to generate a review for this pull request due to the file types involved not being currently supported. |
…file Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Dev-Lead — review-changes (applied)Changes committed and pushed. |
There was a problem hiding this comment.
Actionable comments posted: 1
🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.
Inline comments:
In @.github/workflows/dev-lead.yml:
- Line 62: The workflow file is missing a trailing newline at the end, so update
the .github/workflows/dev-lead.yml content to end with a single newline after
the last entry in the jobs/permissions section. Keep the existing YAML structure
intact; this is just a file-end formatting fix.
🪄 Autofix (Beta)
Fix all unresolved CodeRabbit comments on this PR:
- Push a commit to this branch (recommended)
- Create a new PR with the fixes
ℹ️ Review info
⚙️ Run configuration
Configuration used: Organization UI
Review profile: ASSERTIVE
Plan: Pro
Run ID: 245a091f-5499-4393-8d99-ed3c4c833ab8
📒 Files selected for processing (9)
.github/workflows/add-to-project.yml.github/workflows/agent-shield.yml.github/workflows/auto-rebase.yml.github/workflows/dependabot-automerge.yml.github/workflows/dependency-audit.yml.github/workflows/dev-lead.yml.github/workflows/feature-ideation.yml.github/workflows/pr-review-mention.yml.github/workflows/pr-review-trigger.yml
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: fb448ee5eb
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
| jobs: | ||
| agent-shield: | ||
| uses: petry-projects/.github/.github/workflows/agent-shield-reusable.yml@agent-shield/next | ||
| uses: petry-projects/.github/.github/workflows/agent-shield-reusable.yml@agent-shield/next # NOSONAR(githubactions:S7637) first-party channel ref |
There was a problem hiding this comment.
Revert agent-shield stub modification
In this repo, AGENTS.md explicitly says not to modify .github/workflows/agent-shield.yml because it is exempted from agent modification. This diff still changes that protected workflow to add the NOSONAR marker and remove the final newline; even if the runtime behavior is intended to remain unchanged, landing this violates the repo’s hard guard for the agent-shield workflow. Please revert this file from the migration or route the change through the approved non-agent path.
Useful? React with 👍 / 👎.
|
You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard. |
|
You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard. |
|
@donpetry-bot please review — S7637 inline-marker migration (#549); markers preserve the channel pins, SonarCloud green. Requesting approval to merge. |
|
@don-petry I'm on it — starting a fresh review now. Results will appear in a few minutes. |
|
You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard. |
There was a problem hiding this comment.
Pull request overview
This PR migrates SonarCloud S7637 suppression for first-party, channel-tag-pinned reusable workflow caller stubs by adding an inline # NOSONAR(githubactions:S7637) marker directly on the uses: lines, keeping the existing channel pins intact.
Changes:
- Added inline
# NOSONAR(githubactions:S7637)annotations to workflowuses:references that intentionally pin to first-party channel tags. - Kept all reusable references pinned to their current channels (e.g.,
/next,/stable) with no functional workflow behavior changes.
Reviewed changes
Copilot reviewed 9 out of 9 changed files in this pull request and generated 1 comment.
Show a summary per file
| File | Description |
|---|---|
| .github/workflows/pr-review-trigger.yml | Adds inline NOSONAR marker on the first-party pr-review reusable uses: reference. |
| .github/workflows/pr-review-mention.yml | Adds inline NOSONAR marker on the first-party pr-review-mention reusable uses: reference. |
| .github/workflows/feature-ideation.yml | Adds inline NOSONAR marker on the first-party feature-ideation reusable uses: reference. |
| .github/workflows/dev-lead.yml | Adds inline NOSONAR marker on the first-party dev-lead reusable uses: reference. |
| .github/workflows/dependency-audit.yml | Adds inline NOSONAR marker on the first-party dependency-audit reusable uses: reference. |
| .github/workflows/dependabot-automerge.yml | Adds inline NOSONAR marker on the first-party dependabot-automerge reusable uses: reference. |
| .github/workflows/auto-rebase.yml | Adds inline NOSONAR marker on the first-party auto-rebase reusable uses: reference. |
| .github/workflows/agent-shield.yml | Adds inline NOSONAR marker on the first-party agent-shield reusable uses: reference. |
| .github/workflows/add-to-project.yml | Adds inline NOSONAR marker on the first-party add-to-project reusable uses: reference. |
| jobs: | ||
| agent-shield: | ||
| uses: petry-projects/.github/.github/workflows/agent-shield-reusable.yml@agent-shield/next | ||
| uses: petry-projects/.github/.github/workflows/agent-shield-reusable.yml@agent-shield/next # NOSONAR(githubactions:S7637) first-party channel ref |
|
You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard. |
|
You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard. |
|
You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard. |
|
You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard. |
|
You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard. |
|
You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard. |
|
You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard. |
|
You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard. |
|
|
Caution Failed to replace (edit) comment. This is likely due to insufficient permissions or the comment being deleted. Error details |
There was a problem hiding this comment.
Actionable comments posted: 1
🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.
Inline comments:
In @.github/workflows/agent-shield.yml:
- Line 33: Revert the change in the protected workflow file by removing the
inline suppression from the reusable workflow reference in agent-shield.yml.
Update the workflow so the uses entry in the agent-shield reusable workflow
configuration no longer contains the NOSONAR comment, and leave the rest of the
workflow untouched.
🪄 Autofix (Beta)
Fix all unresolved CodeRabbit comments on this PR:
- Push a commit to this branch (recommended)
- Create a new PR with the fixes
ℹ️ Review info
⚙️ Run configuration
Configuration used: Organization UI
Review profile: ASSERTIVE
Plan: Pro
Run ID: f01072d0-2dd2-4c5e-bc1c-846206ba1f66
📒 Files selected for processing (9)
.github/workflows/add-to-project.yml.github/workflows/agent-shield.yml.github/workflows/auto-rebase.yml.github/workflows/dependabot-automerge.yml.github/workflows/dependency-audit.yml.github/workflows/dev-lead.yml.github/workflows/feature-ideation.yml.github/workflows/pr-review-mention.yml.github/workflows/pr-review-trigger.yml
| jobs: | ||
| agent-shield: | ||
| uses: petry-projects/.github/.github/workflows/agent-shield-reusable.yml@agent-shield/next | ||
| uses: petry-projects/.github/.github/workflows/agent-shield-reusable.yml@agent-shield/next # NOSONAR(githubactions:S7637) first-party channel ref |
There was a problem hiding this comment.
📐 Maintainability & Code Quality | 🟠 Major | ⚡ Quick win
Revert this change.
agent-shield.yml is explicitly protected and must not be modified, even for comment-only edits. Please remove the inline suppression from this file.
As per coding guidelines, .github/workflows/agent-shield.yml: Do not modify .github/workflows/agent-shield.yml.
↩️ Proposed fix
- uses: petry-projects/.github/.github/workflows/agent-shield-reusable.yml@agent-shield/next # NOSONAR(githubactions:S7637) first-party channel ref
+ uses: petry-projects/.github/.github/workflows/agent-shield-reusable.yml@agent-shield/next📝 Committable suggestion
‼️ IMPORTANT
Carefully review the code before committing. Ensure that it accurately replaces the highlighted code, contains no missing lines, and has no issues with indentation. Thoroughly test & benchmark the code to ensure it meets the requirements.
| uses: petry-projects/.github/.github/workflows/agent-shield-reusable.yml@agent-shield/next # NOSONAR(githubactions:S7637) first-party channel ref | |
| uses: petry-projects/.github/.github/workflows/agent-shield-reusable.yml@agent-shield/next |
🧰 Tools
🪛 zizmor (1.26.1)
[error] 33-33: unpinned action reference (unpinned-uses): action is not pinned to a hash (required by blanket policy)
(unpinned-uses)
🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.
In @.github/workflows/agent-shield.yml at line 33, Revert the change in the
protected workflow file by removing the inline suppression from the reusable
workflow reference in agent-shield.yml. Update the workflow so the uses entry in
the agent-shield reusable workflow configuration no longer contains the NOSONAR
comment, and leave the rest of the workflow untouched.
Source: Coding guidelines
|
Closing as superseded to free an automation-PR queue slot (org-wide cap is 50/50 open, blocking new dev-lead work). Driving issue #549 is already merged, and this PR is conflicted (would need a full rebase). No in-flight work is lost — re-open or re-drive the issue if anything here is still wanted. |
Pull request was closed



Adds the canonical inline
# NOSONAR(githubactions:S7637)marker to channel-pinned first-party caller stubs (9 file(s)). Preserves channel pins. Controlled fleet migration (#549/#551), not the weekly audit. hands-off so no agent re-SHA-pins. Legacy sonar-project.properties S7637 entries removed in a verified follow-up.Summary by CodeRabbit