Action for common 1password-cli uses.
Populate template file with values from 1password vault and write to out-file.
Must provide the template filename. By default, the command will look in the
tpl/ folder and use the tpl-file without the tpl-ext as the out-file name. you
may override all of these defaults.
For example, if you provide a tpl-file parameter of "myfile.yaml" the command will
attempt to read "./tpl/myfile.yaml.tpl" and then write the result to "./myfile.yaml"
See template file format documentation at:
https://developer.1password.com/docs/cli/secrets-template-syntax/
Provides support for running custom bash scripts before an dafter template action.
- name: populate template with 1password-action/tpl using defaults
uses: ThoughtWorks-DPS/1password-action/[email protected]
with:
tpl-file: config.json
out-path: ~./docker
Writes op-value from 1password to out-file. op-value format = vault/item/field.
- name: write value using 1password-action/write-to-file
uses: ThoughtWorks-DPS/1password-action/[email protected]
with:
op-value: my-vault/gmail/address
out-file: email.txt