GitHub CLI 2.103.2
New 1
Defer --attach Credential Checks to Upload Endpoint and Let Server Arbitrate GitHub App Permissions
When publishing content in automated workflows using GitHub CLI, if you want to include test logs or build artifacts, you typically use the --attach flag to bundle files. ⟦Picture sending a special package at a courier station: counter clerks previously rejected parcels on the spot whenever a matching code was missing from their list, but now the station forwards packages to the backend logistics center so headquarters can centrally verify eligibility based on permissions.⟧ Previously, the command-line tool checked credentials early on the local terminal side, easily blocking upload requests from automated tools outright. Now, GitHub CLI defers --attach credential checks to the upload endpoint. The GitHub server directly arbitrates which GitHub App installation tokens (authorization credentials used to verify identity with the server) have permission to attach files. When running scheduled tasks with a GitHub App, whether files can be attached is decided by the GitHub server; --attach credential checks are deferred to the upload endpoint.
Original changelog
Allow server to arbitrate which GitHub App installation tokens can attach files by @martinajir in [#14804](https://github.com/cli/cli/pull/14804)
Defer --attach credential checks to the upload endpoint by @BagToad in [#14805](https://github.com/cli/cli/pull/14805)