File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -99,11 +99,12 @@ def create_file_fetcher(directory: nil)
99
99
# prefer credentials directly from the root of the file (will contain secrets) but if not specified, fall back to
100
100
# the job's credentials-metadata that has no secrets
101
101
credentials = job_definition . fetch ( "credentials" , job_credentials_metadata )
102
-
102
+ # Convert experiments hash to have string keys and string values to match the expected format
103
+ # for the file fetcher. This is necessary because the file fetcher expects options to be in string format.
103
104
args = {
104
105
source : job . source . clone . tap { |s | s . directory = directory_to_use } ,
105
106
credentials : credentials ,
106
- options : T . unsafe ( job . experiments )
107
+ options : job . experiments . transform_keys ( & :to_s ) . transform_values ( & :to_s )
107
108
}
108
109
args [ :repo_contents_path ] = Environment . repo_contents_path if job . clone? || already_cloned?
109
110
Dependabot ::FileFetchers . for_package_manager ( job . package_manager ) . new ( **args )
You can’t perform that action at this time.
0 commit comments