rubocop / rubocop-rspec

Code style checking for RSpec files.
https://docs.rubocop.org/rubocop-rspec
MIT License
794 stars 272 forks source link

Fix git push in publish workflow #1865

Closed bquorning closed 2 months ago

bquorning commented 3 months ago

The final git push is failing because of our branch protection rules: https://github.com/rubocop/rubocop-rspec/actions/runs/8561970997/job/23464311900

@ydah suggested maybe the solution is as follows:

  • creating a service account user that has read-write access to repo
  • create a pat for that service account
  • add the service account to the bypass protection rules in the branch
  • create a repo secret that contains the PAT token
  • push using the created service account
bquorning commented 2 months ago

Fixed by #1869.