Skip to content

Wire up github-token-for-extra-empty-commit as configurable input#438

Merged
strawgate merged 3 commits intomainfrom
copilot/expose-github-token-input
Feb 27, 2026
Merged

Wire up github-token-for-extra-empty-commit as configurable input#438
strawgate merged 3 commits intomainfrom
copilot/expose-github-token-input

Conversation

Copy link
Contributor

Copilot AI commented Feb 27, 2026

This PR exposes github-token-for-extra-empty-commit as a configurable workflow input so callers can opt into the extra empty commit behavior that re-associates pushes away from github-actions[bot] and allows downstream workflows to run.

Changes

  • Updated shared fragments to pass through the new safe-output field:
    • .github/workflows/gh-aw-fragments/safe-output-create-pr.md
    • .github/workflows/gh-aw-fragments/safe-output-push-to-pr.md
  • Added optional input github-token-for-extra-empty-commit (default "") to the 17 workflow .md definitions that import those fragments.
  • Added an explicit safe-output mapping in .github/workflows/gh-aw-mention-in-pr-by-id.md because it defines push-to-pull-request-branch directly:
    • safe-outputs.push-to-pull-request-branch.github-token-for-extra-empty-commit: $\{\{ inputs.github-token-for-extra-empty-commit }}
  • Regenerated corresponding .lock.yml files so GH_AW_CI_TRIGGER_TOKEN is sourced from $\{\{ inputs.github-token-for-extra-empty-commit }}.
  • Lockfile regeneration also removed explicit concurrency blocks in several workflows as part of generated output normalization.

Usage

uses: elastic/ai-github-actions/.github/workflows/gh-aw-issue-fixer.lock.yml@v0
with:
  github-token-for-extra-empty-commit: $\{\{ secrets.MY_PAT }}
secrets:
  COPILOT_GITHUB_TOKEN: $\{\{ secrets.COPILOT_GITHUB_TOKEN }}

Generated by Update PR Body for issue #438

Summary by CodeRabbit

  • Chores
    • Updated GitHub Actions workflows to support configurable token-based authentication for bot-created pull requests.
    • Adjusted concurrency settings across multiple automation workflows.

…request and push-to-pull-request-branch workflows

Co-authored-by: strawgate <6384545+strawgate@users.noreply.github.com>
Copilot AI changed the title [WIP] Expose github token for extra empty commit Wire up github-token-for-extra-empty-commit as configurable input Feb 27, 2026
@strawgate strawgate marked this pull request as ready for review February 27, 2026 01:05
@coderabbitai
Copy link

coderabbitai bot commented Feb 27, 2026

Caution

Review failed

The pull request is closed.

ℹ️ Recent review info

Configuration used: Repository UI (base), Organization UI (inherited)

Review profile: CHILL

Plan: Pro

📥 Commits

Reviewing files that changed from the base of the PR and between 3511a3c and cbd4400.

📒 Files selected for processing (38)
  • .github/workflows/downstream-users.lock.yml
  • .github/workflows/gh-aw-bug-exterminator.lock.yml
  • .github/workflows/gh-aw-bug-exterminator.md
  • .github/workflows/gh-aw-code-duplication-fixer.lock.yml
  • .github/workflows/gh-aw-code-duplication-fixer.md
  • .github/workflows/gh-aw-code-simplifier.lock.yml
  • .github/workflows/gh-aw-code-simplifier.md
  • .github/workflows/gh-aw-fragments/safe-output-create-pr.md
  • .github/workflows/gh-aw-fragments/safe-output-push-to-pr.md
  • .github/workflows/gh-aw-issue-fixer.lock.yml
  • .github/workflows/gh-aw-issue-fixer.md
  • .github/workflows/gh-aw-mention-in-issue-no-sandbox.lock.yml
  • .github/workflows/gh-aw-mention-in-issue-no-sandbox.md
  • .github/workflows/gh-aw-mention-in-issue.lock.yml
  • .github/workflows/gh-aw-mention-in-issue.md
  • .github/workflows/gh-aw-mention-in-pr-by-id.lock.yml
  • .github/workflows/gh-aw-mention-in-pr-by-id.md
  • .github/workflows/gh-aw-mention-in-pr-no-sandbox.lock.yml
  • .github/workflows/gh-aw-mention-in-pr-no-sandbox.md
  • .github/workflows/gh-aw-mention-in-pr.lock.yml
  • .github/workflows/gh-aw-mention-in-pr.md
  • .github/workflows/gh-aw-newbie-contributor-fixer.lock.yml
  • .github/workflows/gh-aw-newbie-contributor-fixer.md
  • .github/workflows/gh-aw-pr-actions-fixer.lock.yml
  • .github/workflows/gh-aw-pr-actions-fixer.md
  • .github/workflows/gh-aw-pr-review-addresser.lock.yml
  • .github/workflows/gh-aw-pr-review-addresser.md
  • .github/workflows/gh-aw-release-update.lock.yml
  • .github/workflows/gh-aw-release-update.md
  • .github/workflows/gh-aw-scheduled-fix.lock.yml
  • .github/workflows/gh-aw-scheduled-fix.md
  • .github/workflows/gh-aw-small-problem-fixer.lock.yml
  • .github/workflows/gh-aw-small-problem-fixer.md
  • .github/workflows/gh-aw-test-improvement.lock.yml
  • .github/workflows/gh-aw-test-improver.lock.yml
  • .github/workflows/gh-aw-test-improver.md
  • .github/workflows/gh-aw-text-beautifier.lock.yml
  • .github/workflows/gh-aw-text-beautifier.md

📝 Walkthrough

Walkthrough

This PR introduces a new optional workflow input github-token-for-extra-empty-commit across 18 GitHub Actions workflows to enable pushing extra empty commits on bot-created PRs. The changes consistently add the new input parameter, replace references to secrets.GH_AW_CI_TRIGGER_TOKEN with the new input, and remove concurrency blocks from several agent jobs.

Changes

Cohort / File(s) Summary
Workflow Lock Files - Token Input & Source Updates
.github/workflows/gh-aw-*.lock.yml
Added new github-token-for-extra-empty-commit input to 18 workflows. Replaced secrets.GH_AW_CI_TRIGGER_TOKEN with inputs.github-token-for-extra-empty-commit for GH_AW_CI_TRIGGER_TOKEN usage in activation and safe-outputs steps. Removed concurrency blocks from agent jobs in several workflows (bug-exterminator, code-duplication-fixer, code-simplifier, newbie-contributor-fixer, pr-actions-fixer, release-update, small-problem-fixer, test-improvement, test-improver, text-beautifier). Updated metadata frontmatter hashes.
Workflow Documentation Files
.github/workflows/gh-aw-*.md
Added new optional input github-token-for-extra-empty-commit (string, required: false, default: "") with description across 18 workflow documentation files. No other functional changes to existing inputs or behavior.
Workflow Fragment Files
.github/workflows/gh-aw-fragments/safe-output-*.md
Added new input mapping github-token-for-extra-empty-commit: ${{ inputs.github-token-for-extra-empty-commit }} to safe-outputs sections for create-pull-request and push-to-pull-request-branch workflows.
Metadata Lock File
.github/workflows/downstream-users.lock.yml
Updated gh-aw metadata frontmatterHash value. Functionally a metadata-only change with no logic or control flow alterations.

Estimated code review effort

🎯 3 (Moderate) | ⏱️ ~30 minutes

Possibly related PRs

Suggested reviewers

  • github-actions

Poem

🐰 A token passes through workflows with care,
Empty commits dance on the prairie air,
Bot-created PRs now get their chance to run,
With extra empty commits, the race is won! ✨

✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Post copyable unit tests in a comment
  • Commit unit tests in branch copilot/expose-github-token-input

Comment @coderabbitai help to get the list of available commands and usage tips.

@strawgate strawgate merged commit 59728d5 into main Feb 27, 2026
7 of 8 checks passed
@strawgate strawgate deleted the copilot/expose-github-token-input branch February 27, 2026 01:10
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.

Wire up github-token-for-extra-empty-commit

2 participants