Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

git-crypt support in workflows #8

Closed
2 tasks
DenKoren opened this issue Feb 16, 2022 · 1 comment
Closed
2 tasks

git-crypt support in workflows #8

DenKoren opened this issue Feb 16, 2022 · 1 comment

Comments

@DenKoren
Copy link
Member

DenKoren commented Feb 16, 2022

  • Create actions for git-crypt init
  • Add inputs, secrets and steps to work with git-crypt in our standard workflows

From D.Bolotin:

  • на тачке должен стоять git-crypt и gpg
  • есть переменная в которой лежит ключ (сейчас называется GPG_KEY), чтобы из нее заимпортить ключ в локальную базу gpg надо сделать как-то так:
    echo "$GPG_KEY" > ./private_key.gpg
    gpg --batch --yes --pinentry-mode loopback --import private_key.gpg
    rm private_key.gpg
    
    не пробовал, наверно надо в каком-то докере проверить что это реально работает
    взял отсюда
  • потом надо сделать вот так: git crypt unlock
@DenKoren DenKoren changed the title Implement actions for git-crypt git-crypt support in workflows Feb 16, 2022
@DenKoren
Copy link
Member Author

DenKoren commented Apr 4, 2022

Done.

  • actions/git/crypt action
  • both password-protected and passwordless GPG keys are supported
  • git-crypt action is added to all common workflows after all checkouts

@DenKoren DenKoren closed this as completed Apr 4, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant