@@ -335,6 +335,7 @@ def build_lando_payload(config, task, task_def):
335335 if worker .get ("force-dry-run" ):
336336 task_def ["payload" ]["dry_run" ] = True
337337
338+ bump_files : list [str ] = []
338339 for action in worker ["actions" ]:
339340 if info := action .get ("android-l10n-import" ):
340341 android_l10n_import_info = dash_to_underscore (info )
@@ -384,6 +385,7 @@ def build_lando_payload(config, task, task_def):
384385 bump_info = {}
385386 bump_info ["next_version" ] = release_config ["next_version" ]
386387 bump_info ["files" ] = info ["bump-files" ]
388+ bump_files = info ["bump-files" ]
387389 task_def ["payload" ]["version_bump_info" ] = bump_info
388390 actions .append ("version_bump" )
389391
@@ -423,7 +425,9 @@ def build_lando_payload(config, task, task_def):
423425
424426 scopes = set (task_def .get ("scopes" , []))
425427 scopes .add (f"project:releng:lando:repo:{ worker ['lando-repo' ]} " )
426- scopes .update ([f"project:releng:lando:action:{ action } " for action in actions ])
428+ scopes .update (f"project:releng:lando:action:{ a } " for a in actions if a != "version_bump" )
429+ if "version_bump" in actions :
430+ scopes .update (f"project:releng:lando:action:version_bump:file:{ f } " for f in bump_files )
427431
428432 for matrix_room in worker .get ("matrix-rooms" , []):
429433 task_def .setdefault ("routes" , [])
0 commit comments