Need to update the encrypted API token in appveyor.yml

Posted by Fiendish on Sat 26 Mar 2022 04:41 PM — 2 posts, 12,222 views.

USA Global Moderator #0
The last appveyor build failed to publish to github (https://ci.appveyor.com/project/nickgammon/mushclient/builds/42883605). That suggests to me that
https://github.com/nickgammon/mushclient/blob/master/appveyor.yml#L9
and
https://github.com/nickgammon/mushclient/blob/master/appveyor.yml#L26
are both still using the old API token format that Github doesn't accept anymore.

You need to generate a new Github API token at https://github.com/settings/tokens with at least public_repo access, paste it into https://ci.appveyor.com/tools/encrypt and then replace the two values above with the encrypted output.
Amended on Sat 26 Mar 2022 04:42 PM by Fiendish
Australia Forum Administrator #1
I thought I had done that, but evidently not. I had the encrypted token sitting in my keychain so I had at least made one. This seemed to work OK:


Time Elapsed 00:01:46.09
Discovering tests...OK
"C:\Program Files (x86)\Windows Kits\8.1\bin\x64\mt.exe" -manifest MUSHclient.exe.manifest -updateresource:WinRel\MUSHclient.exe;#1
Microsoft (R) Manifest Tool version 6.3.9600.17336
Copyright (c) Microsoft Corporation 2012. 
All rights reserved.
Push-AppveyorArtifact WinRel\MUSHclient.exe -FileName MUSHclient.exe
Uploading artifact MUSHclient.exe (3,934,720 bytes)...100%
git config --global credential.helper store
Add-Content "$env:USERPROFILE\.git-credentials" "https://$($env:auth_token):x-oauth-basic@github.com`n"
git tag -f latest_commit HEAD
Updated tag 'latest_commit' (was 0a96ac2)
git push -f origin latest_commit
To https://github.com/nickgammon/mushclient.git
 + 0a96ac2...5ca6b82 latest_commit -> latest_commit (forced update)
Deploying using GitHub provider
Creating "latest_commit" release for repository "nickgammon/mushclient" tag "latest_commit" commit "5ca6b82f8dc5ee6c2a49d5b3229868fa90c1ff44"...Skipped - release with tag "latest_commit" already exists
Deleting existing release asset "MUSHclient.exe"...OK
Uploading "MUSHclient.exe" to release assets...OK
Updating "latest_commit" release for repository "nickgammon/mushclient" tag "latest_commit" commit "5ca6b82f8dc5ee6c2a49d5b3229868fa90c1ff44"...OK
Build success