diff --git a/.changeset/agent-self-403.md b/.changeset/agent-self-403.md deleted file mode 100644 index 57b5778..0000000 --- a/.changeset/agent-self-403.md +++ /dev/null @@ -1,4 +0,0 @@ ---- -"github-agent-workflow": patch ---- -`_agent_self` no longer puts an error into the trusted logins. For a GitHub App's installation token `gh api user` is a 403, and `gh` still prints the error body on stdout, so `lib.sh` took `{"message":"Resource not accessible by integration",...}` as the agent's login and split it into the list of trusted authors. It now uses the output only when the call succeeds and the output is a login (`name` or `name[bot]`), and otherwise the agent is unknown. The protocol now says how to check that `gh` works (`gh repo view`, not `gh auth status` or `gh api user`, which an App token fails while still reading and writing), and that a `trusted_authors` login is matched whole, with `[bot]` for an App, so `*` matches nothing. diff --git a/.claude-plugin/plugin.json b/.claude-plugin/plugin.json index 2e459cc..356f480 100644 --- a/.claude-plugin/plugin.json +++ b/.claude-plugin/plugin.json @@ -1,6 +1,6 @@ { "name": "github-agent-workflow", - "version": "1.11.2", + "version": "1.11.3", "description": "Agent skills that run a GitHub repository's issue-to-merge pipeline unattended: explore, triage, implement, shepherd through CI, review and merge. Each step is a group skill that selects work and an item skill that does it.", "author": { "name": "Glenn Faison" diff --git a/CHANGELOG.md b/CHANGELOG.md index fb0ece7..f0ca33e 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,11 @@ # github-agent-workflow +## 1.11.3 + +### Patch Changes + +- 04565a1: `_agent_self` no longer puts an error into the trusted logins. For a GitHub App's installation token `gh api user` is a 403, and `gh` still prints the error body on stdout, so `lib.sh` took `{"message":"Resource not accessible by integration",...}` as the agent's login and split it into the list of trusted authors. It now uses the output only when the call succeeds and the output is a login (`name` or `name[bot]`), and otherwise the agent is unknown. The protocol now says how to check that `gh` works (`gh repo view`, not `gh auth status` or `gh api user`, which an App token fails while still reading and writing), and that a `trusted_authors` login is matched whole, with `[bot]` for an App, so `*` matches nothing. + ## 1.11.2 ### Patch Changes diff --git a/package.json b/package.json index c2a5920..925a964 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "github-agent-workflow", - "version": "1.11.2", + "version": "1.11.3", "private": true, "description": "Agent skills that run a GitHub repository's issue-to-merge pipeline unattended", "license": "MIT",