diff --git a/import-automation/executor/app/executor/import_executor.py b/import-automation/executor/app/executor/import_executor.py index 597965775e..3b20271467 100644 --- a/import-automation/executor/app/executor/import_executor.py +++ b/import-automation/executor/app/executor/import_executor.py @@ -635,7 +635,8 @@ def _run_with_timeout_async(args: List[str], """ try: logging.info( - f'Launching async command: {args} with timeout {timeout} in {cwd}') + f'Launching async command: {args} with timeout {timeout} in {cwd}, env: {env}' + ) start_time = time.time() stdout = [] stderr = [] diff --git a/import-automation/executor/local_executor.py b/import-automation/executor/local_executor.py index 16bec15d58..adbcc4f232 100644 --- a/import-automation/executor/local_executor.py +++ b/import-automation/executor/local_executor.py @@ -29,6 +29,8 @@ and 'data' is the repo_name. """ +import os + from absl import flags from absl import app @@ -85,7 +87,8 @@ def main(_): github_repo_name=FLAGS.repo_name, github_repo_owner_username=FLAGS.owner_username, github_auth_username=FLAGS.username, - github_auth_access_token=FLAGS.access_token) + github_auth_access_token=FLAGS.access_token, + user_script_env=os.environ) executor = import_executor.ImportExecutor( uploader=file_uploader.LocalFileUploader(output_dir=FLAGS.output_dir), github=github_api.GitHubRepoAPI(config.github_repo_owner_username,