Problem pushing to github

doublebeep7's Avatar

doublebeep7

17 Oct, 2018 04:17 PM

Hi,
Recently, I read https://www.appveyor.com/docs/how-to/git-push/ and I wanted to do it on my fork. Unfortunately, the build failed because of authentication.
https://github.com/double-beep/asmFish/blob/pushAV/appveyor.yml
I need some help to complete that!

  1. Support Staff 1 Posted by Owen McDonnell on 17 Oct, 2018 09:24 PM

    Owen McDonnell's Avatar

    Can you do a simple experiment... Encrypt some made up variable following the exact procedure you used for the access_token and print it to the console, just to be sure that they encryption is working as expected.

  2. 2 Posted by doublebeep7 on 18 Oct, 2018 04:12 PM

    doublebeep7's Avatar

    You were right!
    AppVeyor failed to recognise access token only. Username and email were correctly recognised.

  3. Support Staff 3 Posted by Ilya Finkelshte... on 18 Oct, 2018 06:38 PM

    Ilya Finkelshteyn's Avatar

    Can you please clarify "AppVeyor failed to recognise access token only"? Does this men that when you printed decoded value, it was wrong or empty?

  4. 4 Posted by doublebeep7 on 18 Oct, 2018 07:12 PM

    doublebeep7's Avatar

    Ilya,
    When Owen asked me to encrypt variables I encrypted my access token, my email and my username. From these three only access token was recognised incorrectly.

  5. Support Staff 5 Posted by Ilya Finkelshte... on 18 Oct, 2018 07:17 PM

    Ilya Finkelshteyn's Avatar

    What exact steps did you do to encrypt the token and how do you know it was recognized incorrectly?

  6. 6 Posted by doublebeep7 on 19 Oct, 2018 04:04 AM

    doublebeep7's Avatar

    In github settings, developer settings, access tokens, I generated a new token with full access to the repository. Then I went to settings, encrypt YAML and pasted username email and access token separately. The encryption value was pasted to environment:
       variable:
           secure:

    Then, I printed with echo the access_token, user_email and username variables with cmd and access token that appveyor gave was e* while my access token was d*. I then pasted the value without encryption and printed with ps. Ps printed the correct access token, but build failed because of authentication.
    What should I do?

  7. Support Staff 7 Posted by Ilya Finkelshte... on 19 Oct, 2018 04:52 AM

    Ilya Finkelshteyn's Avatar

    Are you doing encryption while being logged to double-beep or helper-beep account? If second it will not work as each account has its own encryption key and value encrypted with one account cannot be used with other account build. You can switch accounts in the left upper corner of the screen, near AppVeyor logo.

  8. 8 Posted by doublebeep7 on 19 Oct, 2018 11:41 AM

    doublebeep7's Avatar

    Of course as double-beep I am logging in, not by pressing Github button, but with my appveyor account. I do not think that this makes the difference.
    Anyway, in my last build I did not encrypted the token generated, but the build failed because of authentication.

  9. Support Staff 9 Posted by Owen McDonnell on 19 Oct, 2018 04:04 PM

    Owen McDonnell's Avatar

    I believe this has nothing to do with AppVeyor encryption (if it was failing at such a basic level we would be seeing many more issues) and is more likely caused by some other variable that you have input incorrectly (for example, your password is input as [email blocked] but in AppVeyor your email in [email blocked]).

  10. 10 Posted by doublebeep7 on 19 Oct, 2018 04:27 PM

    doublebeep7's Avatar

    But what should I do?

  11. Support Staff 11 Posted by Owen McDonnell on 19 Oct, 2018 05:22 PM

    Owen McDonnell's Avatar

    What is the email you use for your github account?

  12. 12 Posted by doublebeep7 on 19 Oct, 2018 05:37 PM

    doublebeep7's Avatar
  13. Support Staff 13 Posted by Owen McDonnell on 19 Oct, 2018 10:34 PM

    Owen McDonnell's Avatar

    Ok, so use that instead of [email blocked]

  14. Owen McDonnell closed this discussion on 19 Oct, 2018 10:34 PM.

  15. doublebeep7 re-opened this discussion on 20 Oct, 2018 03:48 AM

  16. 14 Posted by doublebeep7 on 20 Oct, 2018 03:48 AM

    doublebeep7's Avatar

    ~nothing here~

  17. 15 Posted by doublebeep7 on 20 Oct, 2018 06:33 AM

    doublebeep7's Avatar

    E-mail and access token fixed, but AppVeyor failed to push:
    Everything up-to-date and returns 0.

  18. doublebeep7 closed this discussion on 21 Oct, 2018 09:11 AM.

Comments are currently closed for this discussion. You can start a new one.

Keyboard shortcuts

Generic

? Show this help
ESC Blurs the current field

Comment Form

r Focus the comment reply box
^ + ↩ Submit the comment

You can use Command ⌘ instead of Control ^ on Mac