Skip to content

Fix deploy-docs.yml push permission and drop unused target_repo input - #9369

Merged
alexreinking merged 1 commit into
mainfrom
alexreinking/fix-deploy-docs-app-token
Aug 19, 2026
Merged

Fix deploy-docs.yml push permission and drop unused target_repo input#9369
alexreinking merged 1 commit into
mainfrom
alexreinking/fix-deploy-docs-app-token

Conversation

@alexreinking

Copy link
Copy Markdown
Member

Summary

  • actions/create-github-app-token scopes the minted token to the current repo (halide/Halide) unless told otherwise -- regardless of which other repos the app is installed on. That meant the final git push to halide.github.com in deploy-docs.yml was always denied with a 403, even after granting the halide-ci GitHub App write access to halide/halide.github.com. Passing owner/repositories explicitly scopes the token correctly.
  • Dropped the target_repo workflow_dispatch input: this workflow has only ever deployed to halide/halide.github.com, and rehearsing against a personal fork wasn't a realistic use case, so it's hardcoded now and the env/step wiring is simplified accordingly.

Test plan

  • Dispatched a real (non-dry-run) run from this branch against halide/halide.github.com to confirm the push actually succeeds this time (see run linked in PR checks / comments).
  • pre-commit run --all-files passes.

🤖 Generated with Claude Code

actions/create-github-app-token defaults to scoping the minted token to
the *current* repo (halide/Halide) unless told otherwise, regardless of
which other repos the GitHub App is installed on -- so despite the
halide-ci app having write access to halide.github.com, the final push
step was always denied with a 403. Pass owner/repositories explicitly
so the token is scoped to halide.github.com instead.

While here, drop the target_repo workflow_dispatch input: this workflow
has only ever deployed to halide/halide.github.com and rehearsing
against a personal fork wasn't a realistic use case, so hardcode it and
simplify the env/step wiring accordingly.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>

@derek-gerstmann derek-gerstmann 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.

I'm not fluent in github workflows, but the changes look reasonable to me!

@alexreinking
alexreinking merged commit bb5426d into main Aug 19, 2026
2 checks passed
@alexreinking
alexreinking deleted the alexreinking/fix-deploy-docs-app-token branch August 19, 2026 22:49
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