For the observed error, try suggestions below and on this SO post:
Double-checking incorrect module or package name:
Installing missing dependencies
As an alternative, create a folder (shared_config) under repo_master containing the config.py file (+ init.py) and installing it as a dependency (via requirements.txt > pip install -r requirements.txt).
repo_master
├── shared_config
│ ├── _init_.py
│ └── config.py
├── repo_a
│ └── cloud_function_a
│ ├── main.py
│ ├── requirements.txt
│ └── .github/workflows/deploy.yml