Describe the bug
This is an extension of #7574 based on the comment that the previous fix doesn't work for GitHub App tokens.
Affected version
v2.68.1
Acceptance Criteria
Given I have a GitHub App token that is missing workflow scope
When I run gh repo sync where the upstream repo has workflow changes to be synced
Then I get an informative error rather than a 404.
Describe the bug
This is an extension of #7574 based on the comment that the previous fix doesn't work for GitHub App tokens.
Affected version
v2.68.1Acceptance Criteria
Given I have a GitHub App token that is missing
workflowscopeWhen I run
gh repo syncwhere the upstream repo hasworkflowchanges to be syncedThen I get an informative error rather than a 404.