Skip to content

chore(ci): add GPG commit signing to weekly-update workflow#1155

Closed
jdalton wants to merge 9 commits intomainfrom
chore/add-gpg-commit-signing
Closed

chore(ci): add GPG commit signing to weekly-update workflow#1155
jdalton wants to merge 9 commits intomainfrom
chore/add-gpg-commit-signing

Conversation

@jdalton
Copy link
Copy Markdown
Contributor

@jdalton jdalton commented Apr 3, 2026

Summary

  • Replace github-actions[bot] git config with setup-git-signing / cleanup-git-signing composite actions from socket-registry
  • Uses org-level BOT_GPG_PRIVATE_KEY secret for signed commits

Test plan

  • Trigger workflow_dispatch to verify GPG signing works

Note

Medium Risk
Medium risk because it changes GitHub Actions behavior around git/GPG signing and introduces reliance on a new secret, which could break automated dependency PR creation if misconfigured.

Overview
The weekly dependency update workflow now signs its automated commits by invoking setup-git-signing (fed by secrets.BOT_GPG_PRIVATE_KEY) instead of setting the github-actions[bot] git identity, and ensures signing state is torn down via an always() cleanup-git-signing step.

Separately, package.json adds format and format:check scripts that run oxfmt across the repo.

Written by Cursor Bugbot for commit 477e5ac. Configure here.

jdalton added 2 commits April 3, 2026 14:34
Aligns with socket-btm and ultrathink convention:
- format: oxfmt --write . (auto-fix formatting)
- format:check: oxfmt . (check-only, CI)
Copy link
Copy Markdown

@cursor cursor bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Cursor Bugbot has reviewed your changes and found 1 potential issue.

Fix All in Cursor

Bugbot Autofix is ON. A cloud agent has been kicked off to fix the reported issue.

Comment @cursor review or bugbot run to trigger another review on this PR

"lint": "node scripts/lint.mjs",
"lint:all": "node scripts/lint.mjs --all",
"format": "oxfmt --write .",
"format:check": "oxfmt .",
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Format check script writes files instead of checking

Medium Severity

The format:check script runs oxfmt . without the --check flag. Since --write is oxfmt's default behavior, this command will silently modify files in place rather than performing a non-destructive formatting check. The --check flag is needed to only verify formatting and return a non-zero exit code on violations.

Fix in Cursor Fix in Web

jdalton added 7 commits April 3, 2026 15:16
- Replace dangerously-skip-permissions with explicit allowedTools
- Switch model from sonnet to haiku with max-turns 25
- Reduce timeout from 30 to 15 minutes
- Add SFW_BIN wrapper for pnpm in subprocesses
- Add diff validation step to reject unexpected file changes
- Gate push/PR/summary steps on validation passing
@jdalton
Copy link
Copy Markdown
Contributor Author

jdalton commented Apr 4, 2026

Split into four PRs: #1156 (GPG signing), #1157 (docs), #1158 (npmrc), #1159 (CI hardening). Format scripts already in #1154.

@jdalton jdalton closed this Apr 4, 2026
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

Successfully merging this pull request may close these issues.

1 participant