action.yml 1.8 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667
  1. # https://help.github.com/en/articles/metadata-syntax-for-github-actions
  2. name: 'Import GPG'
  3. description: 'GitHub Action to easily import a GPG key'
  4. author: 'crazy-max'
  5. branding:
  6. color: 'yellow'
  7. icon: 'lock'
  8. inputs:
  9. gpg_private_key:
  10. description: 'GPG private key exported as an ASCII armored version or its base64 encoding'
  11. required: true
  12. passphrase:
  13. description: 'Passphrase of the GPG private key'
  14. required: false
  15. trust_level:
  16. description: "Set key's trust level"
  17. required: false
  18. git_config_global:
  19. description: 'Set Git config global'
  20. default: 'false'
  21. required: false
  22. git_user_signingkey:
  23. description: 'Set GPG signing keyID for this Git repository'
  24. default: 'false'
  25. required: false
  26. git_commit_gpgsign:
  27. description: 'Sign all commits automatically'
  28. default: 'false'
  29. required: false
  30. git_tag_gpgsign:
  31. description: 'Sign all tags automatically'
  32. default: 'false'
  33. required: false
  34. git_push_gpgsign:
  35. description: 'Sign all pushes automatically'
  36. default: 'if-asked'
  37. required: false
  38. git_committer_name:
  39. description: 'Commit author''s name'
  40. required: false
  41. git_committer_email:
  42. description: 'Commit author''s email'
  43. required: false
  44. workdir:
  45. description: 'Working directory (below repository root)'
  46. default: '.'
  47. required: false
  48. fingerprint:
  49. description: 'Specific fingerprint to use (subkey)'
  50. required: false
  51. outputs:
  52. fingerprint:
  53. description: 'Fingerprint of the GPG key (recommended as user ID)'
  54. keyid:
  55. description: 'Low 64 bits of the X.509 certificate SHA-1 fingerprint'
  56. name:
  57. description: 'Name associated with the GPG key'
  58. email:
  59. description: 'Email address associated with the GPG key'
  60. runs:
  61. using: 'node20'
  62. main: 'dist/index.js'
  63. post: 'dist/index.js'