Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions .github/workflows/security.yml
Original file line number Diff line number Diff line change
Expand Up @@ -64,12 +64,12 @@ jobs:
- name: Checkout repository
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
- name: Initialize CodeQL
uses: github/codeql-action/init@ff2f1c621b7f889edc0d3c761ac2e6a3f8cdb0dd # v4.37.7
uses: github/codeql-action/init@cdf488f595d80d6e07e03d4674febd5ab45fa938 # v4.37.9
with:
languages: ${{ matrix.language }}
build-mode: ${{ matrix.build-mode }}
- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@ff2f1c621b7f889edc0d3c761ac2e6a3f8cdb0dd # v4.37.7
uses: github/codeql-action/analyze@cdf488f595d80d6e07e03d4674febd5ab45fa938 # v4.37.9
with:
category: "/language:${{matrix.language}}"

Expand Down
14 changes: 14 additions & 0 deletions .kiro/hooks/sign-commits-on-stop.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
{
"version": "v1",
"hooks": [
{
"name": "Sign Unsigned Commits",
"trigger": "Stop",
"description": "At the end of every session, checks commits ahead of main for missing signatures and re-signs them via rebase --gpg-sign -f.",
"action": {
"type": "command",
"command": "cd \"$(git rev-parse --show-toplevel 2>/dev/null)\" 2>/dev/null || exit 0; base=$(git merge-base HEAD origin/main 2>/dev/null || git merge-base HEAD main 2>/dev/null) || exit 0; unsigned=$(git log --pretty=\"%H\" \"$base\"..HEAD 2>/dev/null | while read h; do git cat-file commit \"$h\" | grep -q \"BEGIN SSH SIGNATURE\\|BEGIN PGP SIGNATURE\" || echo \"$h\"; done); [ -z \"$unsigned\" ] && exit 0; git rebase --gpg-sign -f \"$base\""
}
}
]
}