Skip to content

Commit

Permalink
Merge pull request #6160 from perlpunk/restrict-sync-assets-hook
Browse files Browse the repository at this point in the history
Restrict SYNC_ASSETS_HOOK to worker settings
  • Loading branch information
mergify[bot] authored Feb 7, 2025
2 parents e206546 + 5baf79e commit 13cb1d6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/OpenQA/Worker/Job.pm
Original file line number Diff line number Diff line change
Expand Up @@ -237,7 +237,7 @@ sub start {
# delete settings we better not allow to be set on job-level (and instead should only be set within the
# worker config)
my $job_settings = $self->info->{settings} // {};
delete $job_settings->{$_} for qw(GENERAL_HW_CMD_DIR GIT_CACHE_DIR GIT_CACHE_DIR_LIMIT);
delete $job_settings->{$_} for qw(GENERAL_HW_CMD_DIR GIT_CACHE_DIR GIT_CACHE_DIR_LIMIT SYNC_ASSETS_HOOK);
for my $key (keys %$job_settings) {
delete $job_settings->{$key} if rindex($key, 'EXTERNAL_VIDEO_ENCODER', 0) == 0;
}
Expand Down

0 comments on commit 13cb1d6

Please sign in to comment.