Latest Posts

Topic: git push rejected - due 'workflow'

Tibor
Joined: 2009-03-23, 23:24
Posts: 1376
Ranking
One Elder of Players
Location: Slovakia
Posted at: 2022-06-02, 15:00

Hi I just got this problem when pushing a new branch.

 git push -u origin ai_training_0522
Enumerating objects: 37509, done.
Counting objects: 100% (37509/37509), done.
Delta compression using up to 4 threads
Compressing objects: 100% (16057/16057), done.
Writing objects: 100% (32419/32419), 259.07 MiB | 5.83 MiB/s, done.
Total 32419 (delta 19468), reused 28922 (delta 16236), pack-reused 0
remote: Resolving deltas: 100% (19468/19468), completed with 2813 local objects.
To https://github.com/widelands/widelands.git
! [remote rejected]       ai_training_0522 -> ai_training_0522 (refusing to allow a Personal Access Token to create or update workflow 
.gitthub/workflows/build.yaml` without `workflow` scope)    <-----
error: failed to push some refs to 'https://github.com/widelands/widelands.git'

I am just checking my github token settings and workflow is checked there. I changes only 4 wai files...

Any idea? Thanks


Top Quote
matthiakl
Avatar
Joined: 2020-10-30, 09:17
Posts: 7
Ranking
Pry about Widelands
Posted at: 2022-06-02, 16:12

Did you accidentally renamed the .github folder? Your output says that it wants to create a file in .gitthub.


Top Quote
Tibor
Joined: 2009-03-23, 23:24
Posts: 1376
Ranking
One Elder of Players
Location: Slovakia
Posted at: 2022-06-02, 16:24

I regenerated my token and it pushed succesfully. Mystery. So it is OK now, thanks


Top Quote