Skip to content

ci: add PR review workflow for GitHub review bot#255

Merged
pru55e11 merged 3 commits intomasterfrom
feat/pr-review-workflow
Apr 17, 2026
Merged

ci: add PR review workflow for GitHub review bot#255
pru55e11 merged 3 commits intomasterfrom
feat/pr-review-workflow

Conversation

@pru55e11
Copy link
Copy Markdown
Contributor

Summary

Note: the one-time per-repo manual setup is still required to enable the bot, and the APP_BUILDER_AWS_BEARER_TOKEN_BEDROCK secret is already added to this repo.

Test plan

  • Verify workflow syntax is accepted by GitHub Actions once merged.
  • Confirm the review bot is triggered on PR events and on /review or /pr-reviewer comments from authorized users.

Adds the pr-review.yml workflow so the GitHub review bot can be
enabled for this repo, mirroring adobe/aio-cli-plugin-app-dev#163.
Copy link
Copy Markdown

@github-actions github-actions Bot left a comment

Choose a reason for hiding this comment

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

🤖 PR Reviewer

The workflow is well-structured with clear gating logic and good use of environment variables to avoid injection. Two moderate issues exist: the reusable workflow is pinned to a mutable @main ref (supply-chain risk), and the gh api call for PR data is not validated before extracting the SHA, which could silently produce an empty value if the API call fails.

📝 2 suggestion(s) - Please review inline comments below.


💡 How to re-trigger

Comment /review or /pr-reviewer on this PR

Comment thread .github/workflows/pr-review.yml Outdated
Comment thread .github/workflows/pr-review.yml
@codecov
Copy link
Copy Markdown

codecov Bot commented Apr 17, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.

📢 Thoughts on this report? Let us know!

If the gh api call fetching PR data fails (network error, rate
limit), fall through to allowed=false instead of letting an empty
DATA produce a null head_sha.
@github-actions github-actions Bot dismissed their stale review April 17, 2026 20:26

Superseded by new review

Copy link
Copy Markdown

@github-actions github-actions Bot left a comment

Choose a reason for hiding this comment

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

🤖 PR Reviewer

The diff addresses the previously raised suggestion about gh api error handling for the DATA command (now fixed with || { echo "allowed=false" >> $GITHUB_OUTPUT; exit 0; }). However, the workflow is still pinned to @main for the reusable workflow, which remains a supply-chain security risk. One additional minor issue: jq -r '.head.sha' could output null if the API response is malformed, which would silently pass through.

📝 2 suggestion(s) (1 new, 1 re-raised)


💡 How to re-trigger

Comment /review or /pr-reviewer on this PR

Comment thread .github/workflows/pr-review.yml
Comment thread .github/workflows/pr-review.yml Outdated
If the PR API response is missing .head.sha, jq -r emits the
string "null". Bail out with allowed=false in that case rather
than forwarding a bogus head_sha to the reusable workflow.
Copy link
Copy Markdown

@github-actions github-actions Bot left a comment

Choose a reason for hiding this comment

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

🤖 PR Reviewer

The SHA validation fix from the previous review has been correctly applied. One previous suggestion (SHA validation) is now resolved, but the reusable workflow is still pinned to @main which remains a supply-chain security risk.

🔄 1 re-raised suggestion(s) from previous review


💡 How to re-trigger

Comment /review or /pr-reviewer on this PR

Comment thread .github/workflows/pr-review.yml
@github-actions github-actions Bot dismissed their stale review April 17, 2026 20:29

Superseded by new review

@pru55e11 pru55e11 merged commit e01ac4b into master Apr 17, 2026
11 checks passed
@pru55e11 pru55e11 deleted the feat/pr-review-workflow branch April 17, 2026 20:34
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