Skip to content

Triggering pr-review in ollama-pr-review with v1.0 tag - #214

Merged
sungeunbae merged 1 commit into
masterfrom
ollama-pr-review
Jun 30, 2026
Merged

Triggering pr-review in ollama-pr-review with v1.0 tag#214
sungeunbae merged 1 commit into
masterfrom
ollama-pr-review

Conversation

@sungeunbae

Copy link
Copy Markdown
Member

No description provided.

Copilot AI review requested due to automatic review settings June 30, 2026 03:31
@gemini-code-assist

Copy link
Copy Markdown

Note

Gemini is unable to generate a review for this pull request due to the file types involved not being currently supported.

@github-actions

Copy link
Copy Markdown

📁 .github/workflows/pr-review.yml (deepseek-v4-flash:cloud)

💻 Code: call-review:

⚠️ Problem: Missing permissions block. The original workflow had explicit permissions (contents: read, pull-requests: write, issues: write). Without them, the job inherits default permissions (likely read-only), which may cause the reusable workflow to fail when posting review comments or accessing issues.

✅ Fix: Add a permissions block with at least contents: read and pull-requests: write to allow the reusable workflow to post inline comments.

@github-actions

Copy link
Copy Markdown

📁 .github/workflows/pr-review.yml (deepseek-v4-flash:cloud)

💻 Code: call-review:

⚠️ Problem: Missing concurrency settings. The original workflow had concurrency to cancel in-progress runs for the same PR. Without it, multiple runs can stack up, wasting resources and potentially causing race conditions.

✅ Fix: Add a concurrency group similar to the original: group: ${{ github.workflow }}-${{ github.event.pull_request.number }} and cancel-in-progress: true.

@github-actions

Copy link
Copy Markdown

📁 .github/workflows/pr-review.yml (deepseek-v4-flash:cloud)

💻 Code: call-review:

⚠️ Problem: Missing if condition to restrict execution to PRs from the same repository. The original had if: ${{ github.event.pull_request.state == 'open' && github.event.pull_request.head.repo.full_name == github.repository }}. Without it, the job runs for all PRs, including forks, which could expose secrets or allow malicious code to trigger the reusable workflow.

✅ Fix: Add the same if condition to ensure the job only runs for open PRs from the same repository.

@github-actions

Copy link
Copy Markdown

📁 .github/workflows/pr-review.yml (deepseek-v4-flash:cloud)

💻 Code: uses: ucgmsim/ollama_pr_review/.github/workflows/pr-review.yml@v1.0

⚠️ Problem: Using an external reusable workflow from a specific version tag (@v1.0) without pinning to a commit SHA. This is a security risk: if the tag is moved or the repository is compromised, the workflow could execute malicious code. Also, the version may be outdated.

✅ Fix: Pin the reusable workflow to a specific commit SHA (e.g., @abc123def456) and regularly update it after verifying the changes.

@github-actions

Copy link
Copy Markdown

📁 .github/workflows/pr-review.yml (deepseek-v4-flash:cloud)

💻 Code: call-review:

⚠️ Problem: Missing runs-on specification. The original used runs-on: [self-hosted, Linux, X64]. Without it, the job uses the default GitHub-hosted runner, which may not have the necessary dependencies or environment expected by the reusable workflow.

✅ Fix: Add runs-on: ubuntu-latest (or match the original self-hosted runner if required) to ensure consistent execution environment.

@sungeunbae
sungeunbae merged commit 7f80263 into master Jun 30, 2026
10 checks passed
@sungeunbae
sungeunbae deleted the ollama-pr-review branch June 30, 2026 03:33

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Pull request overview

This PR simplifies the repository’s PR review automation by replacing an in-repo “AI Code Review” job with a call to an external reusable workflow pinned to the v1.0 tag.

Changes:

  • Replaced the full, inline Ollama review implementation with a reusable workflow call (ucgmsim/ollama_pr_review).
  • Passed OLLAMA_API_KEY to the reusable workflow via secrets.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment on lines 6 to 7


concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number }}
cancel-in-progress: true

permissions:
contents: read
pull-requests: write
issues: write

jobs:


call-review:
uses: ucgmsim/ollama_pr_review/.github/workflows/pr-review.yml@v1.0
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