Skip to content

Commit f4ac636

Browse files
committed
chore(ci): add GPG commit signing to bot workflows
1 parent 880ee30 commit f4ac636

File tree

2 files changed

+13
-6
lines changed

2 files changed

+13
-6
lines changed

.github/workflows/generate.yml

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -65,11 +65,10 @@ jobs:
6565
echo "has_changes=false" >> $GITHUB_OUTPUT
6666
fi
6767
68-
- name: Configure git
68+
- uses: SocketDev/socket-registry/.github/actions/setup-git-signing@6096b06b1790f411714c89c40f72aade2eeaab7c # main
6969
if: steps.check.outputs.has_changes == 'true'
70-
run: |
71-
git config --global user.name "github-actions[bot]"
72-
git config --global user.email "github-actions[bot]@users.noreply.github.com"
70+
with:
71+
gpg-private-key: ${{ secrets.BOT_GPG_PRIVATE_KEY }}
7372

7473
- name: Commit and push changes
7574
if: steps.check.outputs.has_changes == 'true'
@@ -113,6 +112,9 @@ jobs:
113112
echo "PR #$existing_pr already exists, skipping creation"
114113
fi
115114
115+
- uses: SocketDev/socket-registry/.github/actions/cleanup-git-signing@6096b06b1790f411714c89c40f72aade2eeaab7c # main
116+
if: always()
117+
116118
validate:
117119
name: Validate generated SDK
118120
needs: fetch_and_update

.github/workflows/weekly-update.yml

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -57,12 +57,14 @@ jobs:
5757
GH_TOKEN: ${{ github.token }}
5858
run: |
5959
BRANCH_NAME="weekly-update-$(date +%Y%m%d)"
60-
git config user.name "github-actions[bot]"
61-
git config user.email "github-actions[bot]@users.noreply.github.com"
6260
git remote set-url origin "https://x-access-token:${GH_TOKEN}@github.com/${{ github.repository }}.git"
6361
git checkout -b "$BRANCH_NAME"
6462
echo "branch=$BRANCH_NAME" >> $GITHUB_OUTPUT
6563
64+
- uses: SocketDev/socket-registry/.github/actions/setup-git-signing@6096b06b1790f411714c89c40f72aade2eeaab7c # main
65+
with:
66+
gpg-private-key: ${{ secrets.BOT_GPG_PRIVATE_KEY }}
67+
6668
- name: Run updating skill with Claude Code
6769
id: claude
6870
timeout-minutes: 30
@@ -153,6 +155,9 @@ jobs:
153155
path: claude-output.log
154156
retention-days: 7
155157

158+
- uses: SocketDev/socket-registry/.github/actions/cleanup-git-signing@6096b06b1790f411714c89c40f72aade2eeaab7c # main
159+
if: always()
160+
156161
notify:
157162
name: Notify results
158163
needs: [check-updates, apply-updates]

0 commit comments

Comments
 (0)