I also got this error. I will leave the solution here, if anyone has a problem, they can fix it.
I think this part can be added to the blog post as an update.
go to "Repository Settings > Action > General" and enable "read/write workflow permission".