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

GH Action and git-secrets not working #3

Open
mberrueta opened this issue May 8, 2022 · 1 comment
Open

GH Action and git-secrets not working #3

mberrueta opened this issue May 8, 2022 · 1 comment

Comments

@mberrueta
Copy link
Contributor

tested with

      git secret --version
      #  0.4.0 (same pc and server)         
      echo 'gpg --help'
      gpg --help 
      # PC: gpg (GnuPG) 2.3.6 libgcrypt 1.10.1
      # PC: gpg (GnuPG) 2.2.19 libgcrypt 1.8.5
      - name: Reveal secrets
        env:
          GPG_PRIVATE_KEY: ${{ secrets.GPG_PRIVATE_KEY }}
          PASSPHRASE: ${{ secrets.PASSPHRASE }}
        run: |
          echo "$GPG_PRIVATE_KEY" > ./private_key.gpg
          gpg --batch --yes --pinentry-mode loopback --import private_key.gpg
          git secret reveal -p $PASSPHRASE

and

      - name: Import GPG key
          id: import_gpg
          uses: crazy-max/ghaction-import-gpg@v4
          with:
            gpg_private_key: ${{ secrets.GPG_PRIVATE_KEY }}
            passphrase: ${{ secrets.PASSPHRASE }}
@mberrueta
Copy link
Contributor Author

#2 check commits.

basically seems that different versions of gpg ends in unable to decrypt with un useful messages

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