git refusing to allow a Personal Access Token

Posted on
  • Hi there. I can no longer push to my fork of BangleApps.
    This has been working fine for 2 years.
    I have tried regenerating my access token.

    The problem seems to be with .github/workflows/nodejs.yml

    $ git push origin master
    Username for 'https://github.com': hughbarney
    Password for 'https://hughbarney@github.com': 
    Enumerating objects: 38, done.
    Counting objects: 100% (31/31), done.
    Delta compression using up to 2 threads
    Compressing objects: 100% (17/17), done.
    Writing objects: 100% (17/17), 2.73 KiB | 400.00 KiB/s, done.
    Total 17 (delta 13), reused 0 (delta 0)
    remote: Resolving deltas: 100% (13/13), completed with 9 local objects.
    To https://github.com/hughbarney/BangleApps­.git
     ! [remote rejected]   master -> master (refusing to allow a Personal Access Token to create or update workflow `.github/workflows/nodejs.yml` without `workflow` scope)
    error: failed to push some refs to 'https://github.com/hughbarney/BangleApp­s.git'
    $ pwd
    
  • Ok - problem solved. I went onto github and did a fetch/merge on my github repo. This allowed me to push again to it from my local repo. No idea why this happenned.

About

git refusing to allow a Personal Access Token

Posted by Avatar for HughB @HughB

Actions