Add plugin to allow auto-release on protected branch #259
Labels
maint:process
Improvement to internal processes
type:maintenance
Upkeeping efforts & catch-up corrective improvements that are not Features nor Bugs
For plugin, see: https://github.com/intuit/auto/tree/main/plugins/protected-branch
See SFDigitalServices/formio-sfds#265 for example implementation
We are currently using a fine-grained access token to grant permissions for auto-releasing + building the Docker image (see
NB_PAT_RELEASE
in here), but the problem is that the permissions don't seem to be enough to allow auto to push to a protected main branch.This issue has been encountered a few times already:
but the problem is that the workarounds/existing documentation to resolve this issue is based on the classic PATs, not the newer fine-grained ones (e.g., https://intuit.github.io/auto/docs/build-platforms/github-actions#running-with-branch-protection)
To avoid having to mess around too much with PATs, using the
protected-branch
plugin might be the easiest.The text was updated successfully, but these errors were encountered: