Skip to content

Commit d53f109

Browse files
committed
Do not update repo perms.
1 parent eeb11f3 commit d53f109

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

src/zope/meta/update_python_support.py

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,6 @@
2121

2222
import tomlkit
2323

24-
from .set_branch_protection_rules import get_package_name
25-
from .set_branch_protection_rules import set_branch_protection
2624
from .shared.call import call
2725
from .shared.call import wait_for_accept
2826
from .shared.git import get_branch_name
@@ -157,17 +155,19 @@ def main():
157155
'--no-push',
158156
]
159157
if args.auto_update:
160-
# Admin commands are interactive, we do them unconditionally
161-
# later here:
158+
# Admin commands require more permissions than a workflow might
159+
# be able to get:
162160
config_package_args.extend(
163161
['--no-admin', '--started-from-auto-update'])
164162
if not args.commit:
165163
config_package_args.append('--no-commit')
166164

167165
call(*config_package_args, cwd=cwd_str)
168-
if args.auto_update:
169-
set_branch_protection(
170-
get_package_name(), path / '.meta.toml')
166+
# GitHub does not allow this inside the workflow, at least I did
167+
# not find a way to do it:
168+
# if args.auto_update:
169+
# set_branch_protection(
170+
# get_package_name(), path / '.meta.toml')
171171

172172
src = path.resolve() / 'src'
173173
py_ver_plus = f'--py{oldest_python_version.replace(".", "")}-plus'

0 commit comments

Comments
 (0)