You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy the content of `key.pgp` file as a [`secret`](https://help.github.com/en/actions/configuring-and-managing-workflows/creating-and-storing-encrypted-secrets) named `SIGNING_KEY` for example. Create another secret with your `PASSPHRASE` if applicable.
31
+
Copy the content of `key.pgp` file as a [`secret`](https://help.github.com/en/actions/configuring-and-managing-workflows/creating-and-storing-encrypted-secrets) named `GPG_PRIVATE_KEY` for example. Create another secret with your `PASSPHRASE` if applicable.
32
32
33
33
```yaml
34
34
name: import-gpg
@@ -48,10 +48,19 @@ jobs:
48
48
name: Import GPG key
49
49
uses: crazy-max/ghaction-import-gpg@v1
50
50
with:
51
-
git_gpgsign: true
51
+
git_user_signingkey: true
52
+
git_commit_gpgsign: true
53
+
git_tag_gpgsign: true
52
54
env:
53
-
SIGNING_KEY: ${{ secrets.SIGNING_KEY }}
55
+
GPG_PRIVATE_KEY: ${{ secrets.GPG_PRIVATE_KEY }}
54
56
PASSPHRASE: ${{ secrets.PASSPHRASE }}
57
+
-
58
+
name: Sign commit and push changes
59
+
run: |
60
+
echo foo > bar.txt
61
+
git add .
62
+
git commit -S -m "This commit is signed!"
63
+
git push
55
64
```
56
65
57
66
## Customizing
@@ -62,18 +71,21 @@ Following inputs can be used as `step.with` keys
0 commit comments