Skip to content

Add pulp-service-reviewer security profile#1067

Merged
bmbouter merged 1 commit intomainfrom
add-reviewer-profile
Apr 20, 2026
Merged

Add pulp-service-reviewer security profile#1067
bmbouter merged 1 commit intomainfrom
add-reviewer-profile

Conversation

@bmbouter
Copy link
Copy Markdown
Member

@bmbouter bmbouter commented Apr 20, 2026

Separate read-only + comment profile for the PR Reviewer agent.

Summary by Sourcery

Introduce a dedicated read-only security profile for the PR reviewer task and assign it to the reviewer workflow.

New Features:

  • Add a pulp-service-reviewer security profile granting read-only access to the pulp-service repository with permission to post review comments.

Enhancements:

  • Update the reviewer task configuration to use the new pulp-service-reviewer profile instead of the contributor profile.

Separate read-only + comment profile for the reviewer agent, distinct
from the contributor profile which has push_branch permissions.
@sourcery-ai
Copy link
Copy Markdown
Contributor

sourcery-ai Bot commented Apr 20, 2026

Reviewer's guide (collapsed on small PRs)

Reviewer's Guide

Introduces a dedicated, read-only security profile for the PR reviewer agent and switches the reviewer task to use it instead of the contributor profile.

File-Level Changes

Change Details Files
Switch reviewer task to use a reviewer-specific security profile instead of a contributor profile.
  • Update the reviewer task configuration to reference the new pulp-service-reviewer profile
  • Ensure the reviewer agent no longer runs with contributor-level permissions
.alcove/tasks/reviewer.yml
Add a new pulp-service-reviewer security profile with read-only GitHub access and permission to post comments on pulp/pulp-service.
  • Define a new security profile named pulp-service-reviewer with appropriate metadata
  • Restrict GitHub operations to read-only access on pulp/pulp-service plus create_comment
  • Document allowed repository operations such as cloning, reading PRs/issues, and reading repository contents, commits, branches, and git objects
.alcove/security-profiles/pulp-service-reviewer.yml

Tips and commands

Interacting with Sourcery

  • Trigger a new review: Comment @sourcery-ai review on the pull request.
  • Continue discussions: Reply directly to Sourcery's review comments.
  • Generate a GitHub issue from a review comment: Ask Sourcery to create an
    issue from a review comment by replying to it. You can also reply to a
    review comment with @sourcery-ai issue to create an issue from it.
  • Generate a pull request title: Write @sourcery-ai anywhere in the pull
    request title to generate a title at any time. You can also comment
    @sourcery-ai title on the pull request to (re-)generate the title at any time.
  • Generate a pull request summary: Write @sourcery-ai summary anywhere in
    the pull request body to generate a PR summary at any time exactly where you
    want it. You can also comment @sourcery-ai summary on the pull request to
    (re-)generate the summary at any time.
  • Generate reviewer's guide: Comment @sourcery-ai guide on the pull
    request to (re-)generate the reviewer's guide at any time.
  • Resolve all Sourcery comments: Comment @sourcery-ai resolve on the
    pull request to resolve all Sourcery comments. Useful if you've already
    addressed all the comments and don't want to see them anymore.
  • Dismiss all Sourcery reviews: Comment @sourcery-ai dismiss on the pull
    request to dismiss all existing Sourcery reviews. Especially useful if you
    want to start fresh with a new review - don't forget to comment
    @sourcery-ai review to trigger a new review!

Customizing Your Experience

Access your dashboard to:

  • Enable or disable review features such as the Sourcery-generated pull request
    summary, the reviewer's guide, and others.
  • Change the review language.
  • Add, remove or edit custom review instructions.
  • Adjust other review settings.

Getting Help

@bmbouter bmbouter merged commit 7b1841c into main Apr 20, 2026
2 of 3 checks passed
@bmbouter bmbouter deleted the add-reviewer-profile branch April 20, 2026 15:24
Copy link
Copy Markdown
Contributor

@sourcery-ai sourcery-ai Bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hey - I've reviewed your changes and they look great!


Sourcery is free for open source - if you like our reviews please consider sharing them ✨
Help me be more useful! Please click 👍 or 👎 on each comment and I'll use the feedback to improve your reviews.

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.

1 participant