Skip to content

fix: attribute infer-agent commits to infer-bot[bot] via github-app-slug - #51

Merged
edenreich merged 2 commits into
mainfrom
fix/infer-app-slug
Jun 6, 2026
Merged

edenreich merged 2 commits into
mainfrom
fix/infer-app-slug

Conversation

@edenreich

Copy link
Copy Markdown
Contributor

What

Pass the GitHub App slug to the Run Infer Agent step:

github-app-slug: ${{ steps.app_token.outputs.app-slug }}

Why

infer-action previously resolved the bot identity with GET /user, which a GitHub App installation token cannot access (403 "Resource not accessible by integration"). The 403 JSON body leaked into git config user.name/user.email, and squash-merges surfaced it as a malformed Co-authored-by: trailer — e.g. inference-gateway/python-sdk@c2ea888.

inference-gateway/infer-action#60 switches resolution to GET /users/{slug}[bot] (which works with App tokens) when a slug is provided. This PR provides that slug, restoring correct infer-bot[bot] (id 246577062) attribution. Without it the action safely falls back to github-actions[bot].

⚠️ Merge order (draft until ready)

  1. Merge & release fix: resolve commit identity via /users/{slug}[bot] instead of /user infer-action#60 (adds the github-app-slug input).
  2. In this PR, bump the pin inference-gateway/[email protected] → the new release (anticipated v0.11.5), then mark ready & merge.

Merging before the release is harmless (an unknown input only emits a warning), but the slug has no effect until the pin is bumped to a release that includes the input — hence keeping these together.

🤖 Generated with Claude Code

Pass the GitHub App slug to infer-action so agent commits resolve to
infer-bot[bot] via `GET /users/{slug}[bot]` instead of the unsupported
`GET /user` (which 403s and previously leaked a JSON error body into the
commit identity and the squash `Co-authored-by:` trailer).

Requires inference-gateway/infer-action#60. Merge after that releases, and
bump the infer-action pin (currently @v0.11.4) to the release that adds the
`github-app-slug` input.
@edenreich
edenreich marked this pull request as ready for review June 6, 2026 15:12
Comment thread .github/workflows/infer.yml Resolved
@edenreich
edenreich merged commit b55a520 into main Jun 6, 2026
@edenreich
edenreich deleted the fix/infer-app-slug branch June 6, 2026 15:14
inference-gateway-releaser Bot added a commit that referenced this pull request Jun 6, 2026
## [0.7.3](v0.7.2...v0.7.3) (2026-06-06)

### 🐛 Bug Fixes

* attribute infer-agent commits to infer-bot[bot] via github-app-slug ([#51](#51)) ([b55a520](b55a520))
@inference-gateway-releaser

Copy link
Copy Markdown
Contributor

🎉 This PR is included in version 0.7.3 🎉

The release is available on GitHub release

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant