github.com/facebookincubator/ttpforge@v1.0.13-0.20240405153150-5ae801628835/example-ttps/actions/copy-path/basic.yaml (about)

     1  ---
     2  api_version: 2.0
     3  uuid: 9f0ca08c-acd3-4dac-aeb9-41d07486d815
     4  name: copy_path_example
     5  description: |
     6    This TTP shows you how to use the copy_path action type
     7    to copy a file on disk.
     8  requirements:
     9    platforms:
    10      - os: darwin
    11      - os: linux
    12  tests:
    13    - name: default
    14  steps:
    15    - name: copy-passwd-file
    16      copy_path: /etc/passwd
    17      to: /tmp/ttpforge_copy_{{randAlphaNum 10}}
    18      mode: 0600
    19      cleanup: default