Skip to content

Commit 9cf2051

Browse files
author
Kaspar Lyngsie
committed
chore: signing commits with Team CLI Bot
1 parent c8f4a7c commit 9cf2051

2 files changed

Lines changed: 24 additions & 8 deletions

File tree

.github/workflows/sync-cli-help-to-user-docs.yml

Lines changed: 14 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -29,12 +29,22 @@ jobs:
2929
fetch-depth: 0
3030
ref: ${{ github.ref_name }}
3131

32-
- name: Configure git user
32+
- name: Configure Git user
3333
run: |
34-
git config --global user.email "noreply@snyk.io"
34+
git config --global user.name "Team CLI Bot"
35+
git config --global user.email "team-cli@snyk.io"
3536
36-
# GITHUB_ACTOR: The name of the person or app that initiated the workflow.
37-
git config --global user.name "$GITHUB_ACTOR"
37+
- name: Import and configure GPG
38+
run: |
39+
echo "$GPG_KEY" | gpg --batch --import
40+
gpg --pinentry-mode loopback --passphrase "$GPG_PASSPHRASE" --batch --sign
41+
env:
42+
GPG_KEY: ${{ secrets.TEAM_CLI_BOT_GPG_KEY }}
43+
GPG_PASSPHRASE: ${{ secrets.TEAM_CLI_BOT_GPG_PASSPHRASE }}
44+
45+
- name: TODO
46+
run: |
47+
# TODO
3848
3949
- name: Create or checkout destination branch
4050
run: |

.github/workflows/sync-cli-readme.yml

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -29,12 +29,18 @@ jobs:
2929
fetch-depth: 0
3030
ref: main
3131

32-
- name: Configure git user
32+
- name: Configure Git user
3333
run: |
34-
git config --global user.email "noreply@snyk.io"
34+
git config --global user.name "Team CLI Bot"
35+
git config --global user.email "team-cli@snyk.io"
3536
36-
# GITHUB_ACTOR: The name of the person or app that initiated the workflow.
37-
git config --global user.name "$GITHUB_ACTOR"
37+
- name: Import and configure GPG
38+
run: |
39+
echo "$GPG_KEY" | gpg --batch --import
40+
gpg --pinentry-mode loopback --passphrase "$GPG_PASSPHRASE" --batch --sign
41+
env:
42+
GPG_KEY: ${{ secrets.TEAM_CLI_BOT_GPG_KEY }}
43+
GPG_PASSPHRASE: ${{ secrets.TEAM_CLI_BOT_GPG_PASSPHRASE }}
3844

3945
- name: Create or checkout destination branch
4046
run: |

0 commit comments

Comments
 (0)