```Hey there! how to add a token file to the stora...
# ask-community
k
Copy code
Hey there! how to add a token file to the storage in the prefect. for example, the error is this:
Task 'request_web [0]': Calling task.run () method ...
15:05:12
INFO
CloudTaskRunner
[Errno 2] No such file or directory: './Tokens/access_token.xml'
z
Hey @Konstantin, what storage type are you using? The most common ways of doing this would be 1. Using Docker storage and including extra files via the
files
argument https://docs.prefect.io/api/latest/storage.html#docker 2. Storing the necessary info in a Prefect Secret and retrieving it from a secret instead of a file https://docs.prefect.io/orchestration/concepts/secrets.html
k
Hey @Zach Angell, i'm using the Gitlab repository type
z
Got it. The two recommended ways would be 1. Create a docker image that contains your xml file (note this can be a security vulnerability) and use this image as a DockerRun config https://docs.prefect.io/api/latest/run_configs.html#dockerrun 2. Using Prefect Secrets