github.com/facebookincubator/ttpforge@v1.0.13-0.20240405153150-5ae801628835/example-ttps/actions/create-file/basic.yaml (about) 1 --- 2 api_version: 2.0 3 uuid: df306aab-5824-4e32-bd04-76fb49da6b17 4 name: create_file_basic 5 description: | 6 This TTP shows you how to use the create_file action type 7 to create files on disk 8 steps: 9 - name: create-first-tmp-file 10 create_file: /tmp/ttpforge_create_file_{{randAlphaNum 10}} 11 contents: | 12 Using create_file is a convenient to simulate TTPs that 13 drop files to disk. We can control the permission mode 14 with which the file is created using `mode:` 15 mode: 0600 16 cleanup: default 17 - name: create-second-tmp-file 18 create_file: /tmp/ttpforge_create_file_overwritable 19 contents: | 20 This step uses `overwrite: true` which means 21 that even if the target file already exists, it will be overwritten with these 22 contents 23 overwrite: true 24 cleanup: default