Skip to content

fix(ci): make Iris PR action installable + canonical workflow#99

Merged
trentas merged 2 commits into
mainfrom
fix/iris-workflow-permissions
Jun 12, 2026
Merged

fix(ci): make Iris PR action installable + canonical workflow#99
trentas merged 2 commits into
mainfrom
fix/iris-workflow-permissions

Conversation

@trentas

@trentas trentas commented Jun 12, 2026

Copy link
Copy Markdown
Contributor

Two fixes so the Iris PR GitHub Action actually runs end-to-end.

1. Action installed the wrong package (exit 127)

action.yml 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
Error: Process completed with exit code 127.

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.yml whose permissions: block granted only
pull-requests: write. Declaring any permission sets unlisted ones to none,
so contents became none and actions/checkout failed on private repos
with a misleading Repository not found (see RocketBus/pricing#33).

Establish a correct source next to the action:

  • .github/actions/iris-pr/example-workflow.yml — canonical iris.yml
    with both contents: read and pull-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

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>
@vercel

vercel Bot commented Jun 12, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
clickbus-iris Ready Ready Preview, Comment Jun 12, 2026 5:46pm

Request Review

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>
@trentas trentas changed the title docs(ci): canonical Iris PR workflow with contents:read fix(ci): make Iris PR action installable + canonical workflow Jun 12, 2026
@trentas trentas merged commit 4fcb562 into main Jun 12, 2026
4 checks passed
@trentas trentas deleted the fix/iris-workflow-permissions branch June 12, 2026 17: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.

1 participant