Skip to content

ask to review#8

Merged
menny merged 2 commits into
mainfrom
review-bot-token
May 1, 2026
Merged

ask to review#8
menny merged 2 commits into
mainfrom
review-bot-token

Conversation

@menny
Copy link
Copy Markdown
Member

@menny menny commented May 1, 2026

No description provided.

@anysoftkeyboard-bot
Copy link
Copy Markdown
Member

The PR title "ask to review" is non-descriptive and should be updated to clearly state the intent, such as "ci: update Cassandra review permissions and security constraints." Overall, great work on hardening the CI workflow against external PRs.

Copy link
Copy Markdown
Member

@anysoftkeyboard-bot anysoftkeyboard-bot left a comment

Choose a reason for hiding this comment

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

While the repository check for forks is a positive security improvement, the use of a classic Personal Access Token (PAT) instead of GITHUB_TOKEN requires clarification due to security implications, and the PR title needs to be more descriptive.

- name: Run Cassandra AI Review
uses: menny/cassandra@v0.2.0
with:
reviewer_github_token: ${{ secrets.AI_CODE_REVIEW_GH_TOKEN }}
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

We are introducing a classic Personal Access Token (PAT) via secrets.AI_CODE_REVIEW_GH_TOKEN. Unless this specific action requires a PAT to trigger subsequent workflows (which the default GITHUB_TOKEN cannot do) or to bypass specific API limitations, we should prefer secrets.GITHUB_TOKEN. Classic PATs are long-lived and often over-privileged compared to the short-lived, repo-scoped default token.

review:
name: Cassandra Review
runs-on: ubuntu-latest
if: github.event.pull_request.head.repo.full_name == github.repository
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

The addition of the repository check is excellent. This ensures the workflow doesn't trigger on fork PRs where secrets like GEMINI_API_KEY are missing, preventing unnecessary CI failures and improving the resilience of our pipeline.

@menny menny merged commit 24a07be into main May 1, 2026
2 checks passed
@menny menny deleted the review-bot-token branch May 1, 2026 15:32
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.

2 participants