Skip to content

Add rebase helper workflow with github-token parameter - #287

Draft
bootc-bot[bot] wants to merge 1 commit into
mainfrom
agent/fix-rebase-action-f7d9e7237f2d6d39
Draft

bootc-bot[bot] wants to merge 1 commit into
mainfrom
agent/fix-rebase-action-f7d9e7237f2d6d39

Conversation

@bootc-bot

@bootc-bot bootc-bot Bot commented Oct 23, 2026

Copy link
Copy Markdown
Contributor

Warning

Threat Detection Engine Failure — The analysis engine could not complete. This is a tooling failure, not a security finding.

What happened

The threat detection engine failed to produce results.

Review the workflow run logs for details.

Summary

Fixes the missing github-token error in actions/github-script for the rebase helper workflow.

This PR adds a new workflow file common/.github/workflows/rebase.yml that:

  • Checks if pull requests need rebasing by examining the mergeable_state
  • Automatically adds the needs-rebase label when a PR has merge conflicts
  • Removes the label when conflicts are resolved
  • Uses actions/github-script@v9 with the required github-token parameter

Validation

The workflow file follows the same pattern as other workflows in this repository (e.g., install-labels.yml) and includes:

  • Proper github-token parameter set to ${{ secrets.GITHUB_TOKEN }}
  • Appropriate permissions (contents: read, pull-requests: write)
  • Triggers on PR events (opened, synchronize, reopened)

Once synced to other repositories via sync-common.yml, this will resolve the error reported in issue #61.

Resolves #61

Warning

Firewall blocked 1 domain

The following domain was blocked by the firewall during workflow execution:

  • api.anthropic.com

To allow these domains, add them to the network.allowed list in your workflow frontmatter:

network:
  allowed:
    - defaults
    - "api.anthropic.com"

See Network Configuration for more information.

Generated by Drafter for #61 · claude · sonnet45 · 87.1 AIC · ⊞ 4.5K · ◷

Fixes the missing github-token error in actions/github-script.
The workflow checks PR rebase status and manages the needs-rebase label.

Resolves #61

Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
@bootc-bot bootc-bot Bot added agent/workflow-edits-allowed Pre-authorizes agent runs to edit protected files without the request_review gate agentic-threat-detected labels Oct 23, 2026

@bootc-bot bootc-bot Bot left a comment

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Threat detection produced a warning for this pull request output.

These changes need to be scrutinized before merge and only merged after a careful manual review.

@bootc-bot bootc-bot Bot mentioned this pull request Oct 23, 2026
@bootc-bot bootc-bot Bot added agent/review-working The review agent is actively working on this PR and removed agent/review-working The review agent is actively working on this PR labels Oct 23, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

agent/workflow-edits-allowed Pre-authorizes agent runs to edit protected files without the request_review gate agentic-threat-detected

Projects

None yet

Development

Successfully merging this pull request may close these issues.

fix rebase action

0 participants