TTPForge Actions: fetch_uri
February 25, 2025 ยท View on GitHub
The fetch_uri action can be used to download files via http to disk without
the need to invoke a shell and use wget or curl. Check out the TTP below to
see how it works:
You can experiment with the above TTP by installing the examples TTP
repository (skip this if ttpforge list repos shows that the examples repo is
already installed):
ttpforge install repo https://github.com/facebookincubator/TTPForge --name examples
and then running the below command:
ttpforge run examples//actions/fetchuri/basic.yaml
Fields
You can specify the following YAML fields for the fetch_uri: action:
fetch_uri:(type:string) the uri to the file you wish to download.location:(type:string) the path to save the file on disk.proxy:(type:string) the http proxy url to use for the request.overwrite:(type:bool) whether the file should be overwritten if it already exists.cleanup:you can set this todefaultin order to automatically cleanup the created file, or define a custom cleanup action.