Skip to content

[INFRA] The release workflow fails to disable the branch protection rules #153

@tbouffard

Description

@tbouffard

Seen while attempting to release version 0.2.2.
Workaround: follow the manual procedure

Workflow runs: https://github.com/process-analytics/bpmn-visualization-R/actions/runs/3533388259
3 attempts, all failed. The last one was run in debug mode, no additional information

Action configuration

Run benjefferies/branch-protection-bot@1.0.7
  with:
    access_token: ***
    enforce_admins: true
    branch: main
    retries: 5

Error stack

Getting branch protection settings for process-analytics/bpmn-visualization-R
Traceback (most recent call last):
  File "/bin/run.py", line 83, in <module>
    toggle_enforce_admin(p.parse_args())
  File "/bin/run.py", line 22, in toggle_enforce_admin
    protection = get_protection(access_token, branch_name, owner, repo_name)
  File "/bin/run.py", line 61, in get_protection
    protection = branch.protection()
  File "/pyroot/lib/python3.7/site-packages/github3/decorators.py", line 31, in auth_wrapper
    return func(self, *args, **kwargs)
  File "/pyroot/lib/python3.7/site-packages/github3/repos/branch.py", line 73, in protection
    json = self._json(resp, 200)
  File "/pyroot/lib/python3.7/site-packages/github3/models.py", line 157, in _json
    raise exceptions.error_for(response)
github3.exceptions.NotFoundError: 404 Not Found

Metadata

Metadata

Assignees

No one assigned

    Labels

    choreBuild, CI/CD or repository tasks (issues/PR maintenance, environments, ...)

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions