Skip to content

Add holon trigger#3886

Merged
jolestar merged 1 commit into
mainfrom
holon_trigger
Dec 29, 2025
Merged

Add holon trigger#3886
jolestar merged 1 commit into
mainfrom
holon_trigger

Conversation

@jolestar

Copy link
Copy Markdown
Contributor

Summary

Summary about this PR

  • Closes #issue

Copilot AI review requested due to automatic review settings December 29, 2025 07:58
@vercel

vercel Bot commented Dec 29, 2025

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Review Updated (UTC)
rooch Building Building Preview, Comment Dec 29, 2025 7:58am
rooch-portal-v2.1 Building Building Preview, Comment Dec 29, 2025 7:58am
test-portal Building Building Preview, Comment Dec 29, 2025 7:58am

@jolestar jolestar merged commit 705d069 into main Dec 29, 2025
11 of 15 checks passed
@jolestar jolestar deleted the holon_trigger branch December 29, 2025 07:58
@github-actions

Copy link
Copy Markdown

Dependency Review

✅ No vulnerabilities or license issues or OpenSSF Scorecard issues found.

OpenSSF Scorecard

PackageVersionScoreDetails
actions/holon-run/holon/.github/workflows/holon-solve.yml main UnknownUnknown

Scanned Files

  • .github/workflows/holon-trigger.yml

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 adds a new GitHub Actions workflow for triggering Holon, an external automated tool integration. The workflow responds to issue comments, issue labels/assignments, and pull request labels to invoke the holon-solve workflow from the holon-run/holon repository.

  • Adds automated trigger workflow for the Holon integration
  • Configures triggers for issue comments, issue events, and pull request events
  • Sets up necessary permissions and secrets for Anthropic API integration

jobs:
holon:
name: Run Holon (via holon-solve)
uses: holon-run/holon/.github/workflows/holon-solve.yml@main

Copilot AI Dec 29, 2025

Copy link

Choose a reason for hiding this comment

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

The referenced external workflow is pinned to the 'main' branch, which is not a secure practice. The holon-run/holon repository's main branch could be updated with malicious code at any time, and this workflow would automatically use it. Consider pinning to a specific commit SHA or version tag instead for better security and reproducibility. For example: uses: holon-run/holon/.github/workflows/holon-solve.yml@v1.0.0 or uses: holon-run/holon@abc123def456...

Suggested change
uses: holon-run/holon/.github/workflows/holon-solve.yml@main
uses: holon-run/holon/.github/workflows/holon-solve.yml@v1.0.0

Copilot uses AI. Check for mistakes.
# Keep config minimal; holon-solve derives issue_number/comment_body/mode/output_dir from the event.
log_level: 'debug'
issue_number: ${{ github.event.issue.number || github.event.pull_request.number }}
comment_id: ${{ github.event.comment.id }}

Copilot AI Dec 29, 2025

Copy link

Choose a reason for hiding this comment

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

The secrets ANTHROPIC_AUTH_TOKEN and ANTHROPIC_BASE_URL are referenced but not documented anywhere in the repository. This makes it unclear what these secrets are, how to set them up, or why they're needed. Consider adding documentation about these required secrets, either in the PR description, README.md, or a CONTRIBUTING.md file to help other maintainers understand the setup requirements.

Suggested change
comment_id: ${{ github.event.comment.id }}
comment_id: ${{ github.event.comment.id }}
# Required secrets:
# - ANTHROPIC_AUTH_TOKEN: Anthropic API token used by Holon to call the Anthropic API.
# Configure this as a GitHub Secret in the repository or organization settings.
# - ANTHROPIC_BASE_URL: Base URL for the Anthropic API (for example a custom gateway endpoint).
# Configure this as a GitHub Secret. If you use the default Anthropic endpoint, align this value
# with the holon-run/holon documentation or your deployment requirements.

Copilot uses AI. Check for mistakes.
@@ -0,0 +1,32 @@
name: Holon Trigger

Copilot AI Dec 29, 2025

Copy link

Choose a reason for hiding this comment

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

The workflow name should follow the naming convention used by other workflows in this repository. Other workflows use hyphenated names in title case (e.g., "Check-Build-Test", "Deploy TESTNET Seed"). Consider changing "Holon Trigger" to "Holon-Trigger" for consistency.

Suggested change
name: Holon Trigger
name: Holon-Trigger

Copilot uses AI. Check for mistakes.
# Keep config minimal; holon-solve derives issue_number/comment_body/mode/output_dir from the event.
log_level: 'debug'
issue_number: ${{ github.event.issue.number || github.event.pull_request.number }}
comment_id: ${{ github.event.comment.id }}

Copilot AI Dec 29, 2025

Copy link

Choose a reason for hiding this comment

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

The comment_id parameter may not always be available. When the workflow is triggered by issues being labeled or assigned, or pull_requests being labeled (lines 6-9), there is no comment event, so github.event.comment.id will be null. This could cause issues with the holon-solve workflow if it expects a comment_id. Consider adding conditional logic or removing comment_id from the parameters when it's not applicable to the trigger event.

Suggested change
comment_id: ${{ github.event.comment.id }}
comment_id: ${{ github.event_name == 'issue_comment' && github.event.comment.id || '' }}

Copilot uses AI. Check for mistakes.
Comment on lines +12 to +15
contents: write
issues: write
pull-requests: write
id-token: write

Copilot AI Dec 29, 2025

Copy link

Choose a reason for hiding this comment

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

The permissions granted to this workflow are very broad. The workflow has write access to contents, issues, and pull-requests, plus id-token write permission. Consider whether all these permissions are necessary. If holon-solve only needs to read issues/PRs and comment on them, you should minimize permissions following the principle of least privilege. Review the actual requirements of the holon-solve workflow to determine if these permissions can be reduced.

Suggested change
contents: write
issues: write
pull-requests: write
id-token: write
contents: read
issues: write
pull-requests: write

Copilot uses AI. Check for mistakes.
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