fix(ci): make Iris PR action installable + canonical workflow#99
Merged
Conversation
Consuming repos copied an iris.yml whose permissions block only granted pull-requests:write. Declaring any permission sets unlisted ones to none, so actions/checkout failed on private repos with "Repository not found". Establish a canonical, correct source so future repos start right: - .github/actions/iris-pr/example-workflow.yml — copyable workflow with both contents:read and pull-requests:write - .github/actions/iris-pr/README.md — action usage, the permissions gotcha, and inputs - README.md — link the template from the PR Analysis section Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
The action ran `pip install iris`, which pulls an unrelated public-PyPI package named "iris" (no `iris` console script) — every run failed with `iris: command not found` (exit 127). Iris is not published to public PyPI; install it from the action's own repo checkout, whose root holds pyproject.toml. $GITHUB_ACTION_PATH/../../.. resolves to that root, so the installed code always matches the action ref. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Two fixes so the Iris PR GitHub Action actually runs end-to-end.
1. Action installed the wrong package (exit 127)
action.ymlranpip install iris, which pulls an unrelated public-PyPIpackage named
iris(noirisconsole script). Every run failed with:Iris isn't published to public PyPI. Install it from the action's own repo
checkout (the root holds
pyproject.toml);$GITHUB_ACTION_PATH/../../..resolves to that root, so the installed code matches the action ref.
2. No canonical, correct workflow template
Adopters copied an
iris.ymlwhosepermissions:block granted onlypull-requests: write. Declaring any permission sets unlisted ones tonone,so
contentsbecamenoneandactions/checkoutfailed on private reposwith a misleading
Repository not found(see RocketBus/pricing#33).Establish a correct source next to the action:
.github/actions/iris-pr/example-workflow.yml— canonicaliris.ymlwith both
contents: readandpull-requests: write..github/actions/iris-pr/README.md— usage, inputs, the permissions gotcha.README.md— links the template from the PR Analysis section.🤖 Generated with Claude Code