[Webkit-unassigned] [Bug 241272] New: `git-webkit setup` should offer to regenerate expired GitHub personal access tokens

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Fri Jun 3 09:41:59 PDT 2022


https://bugs.webkit.org/show_bug.cgi?id=241272

            Bug ID: 241272
           Summary: `git-webkit setup` should offer to regenerate expired
                    GitHub personal access tokens
           Product: WebKit
           Version: WebKit Nightly Build
          Hardware: Unspecified
                OS: Unspecified
            Status: NEW
          Severity: Normal
          Priority: P2
         Component: Tools / Tests
          Assignee: webkit-unassigned at lists.webkit.org
          Reporter: wenson_hsieh at apple.com

Currently, attempting `git-webkit setup` with an access token that has expired causes the setup script to offer to create a WebKit fork; picking either option (Yes or No) causes the script to fail.

```
% gw setup
WARNING:webkitscmpy:Setting merging behavior for changelogs...
WARNING:webkitscmpy:Set merging behavior for changelogs!
Create a private fork of 'WebKit' belonging to 'whsieh' ([Yes]/No): Yes
Failed to create a fork of 'WebKit' belonging to 'whsieh'
URL: https://api.github.com/repos/WebKit/WebKit/forks
Server replied with status code 401:
{"message":"Bad credentials","documentation_url":"https://docs.github.com/rest"}
Setup failed
% gw setup
WARNING:webkitscmpy:Setting merging behavior for changelogs...
WARNING:webkitscmpy:Set merging behavior for changelogs!
Create a private fork of 'WebKit' belonging to 'whsieh' ([Yes]/No): No
Setup failed
```

The workaround was to regenerate my expired token via https://github.com/settings/tokens and update the token stored in my keychain; it would be nice if the script detected this scenario and surfaced a better error message.

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-unassigned/attachments/20220603/19c1af2b/attachment-0001.htm>


More information about the webkit-unassigned mailing list