Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

PAT Token with bypass policy #398

Open
dirien opened this issue Feb 11, 2023 · 2 comments
Open

PAT Token with bypass policy #398

dirien opened this issue Feb 11, 2023 · 2 comments
Assignees

Comments

@dirien
Copy link
Collaborator

dirien commented Feb 11, 2023

Hi @caarlos0,

Currently i had to deactivate the branch protection rules for the main branch, as I need to push the next version of the plugin to the main branch. I use the gh-action-bump-version plugin to update the package.json

Logs from the action:

✖  fatal     remote: error: GH006: Protected branch update failed for refs/heads/main.        
remote: error:  Changes must be made through a pull request.        
To https://github.com/goreleaser/goreleaser-azure-devops-extension.git
 ! [remote rejected] main -> main (protected branch hook declined)
error: failed to push some refs to 'https://github.com/***/***-azure-devops-extension.git'

git exited with code 1
✖  fatal     Failed to bump version

Question:

Can you create a new PAT with bypass policy and save it to the secret with the name: ACTION_GITHUB_TOKEN. I will then change the pipeline steps to use this PAT token.

Thanks!

@caarlos0
Copy link
Member

Hey! Since you have access to this repo, I imagine you can use your own PAT if you want, no?

I can of course still create one with my account, but if you prefer using your that's awesome too

@dirien
Copy link
Collaborator Author

dirien commented Feb 15, 2023

@caarlos0 I tried but I could not create a token for this Repo. I saw only my own repos.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants