Repository navigation
feat(code-agent): add gitsign for cryptographic commit signing #3842
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Closed
lahavyuv86
wants to merge
1
commit into
fullsend-ai:main
from
lahavyuv86:feat/gitsign-commit-signing
Closed
Changes from all commits
Commits
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -49,6 +49,13 @@ RUN if command -v apt-get >/dev/null 2>&1; then \ | |
| # env file overrides this with the OpenShell bundle if present. | ||
| RUN git config --system http.sslCAInfo /etc/ssl/certs/ca-certificates.crt 2>/dev/null || true | ||
|
|
||
| # Configure Git to use gitsign for commit signing (keyless signing via Sigstore). | ||
| # This enables cryptographic verification of agent commits. | ||
| RUN git config --system gpg.format x509 \ | ||
| && git config --system gpg.x509.program gitsign \ | ||
| && git config --system commit.gpgsign true \ | ||
| && git config --system tag.gpgsign true | ||
|
Comment on lines
+54
to
+57
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 2. Amend drops commit signature The post-scripts rewrite commits via git commit --amend --no-edit on the GitHub Actions runner after the sandbox is destroyed, but they do not configure gitsign/signing there; any rewrite creates a new commit object and can therefore drop the original signature before push. Agent Prompt
|
||
|
|
||
| # --------------------------------------------------------------------------- | ||
| # Go toolchain — needed to compile and run tests in Go-based target repos. | ||
| # Without this the agent falls back to manual code review (no `go build`, | ||
|
|
@@ -94,6 +101,26 @@ RUN case "$TARGETARCH" in \ | |
| && chmod +x /usr/local/bin/lychee \ | ||
| && rm -rf /tmp/lychee.tar.gz "/tmp/lychee-${LY_TRIPLE}" | ||
|
|
||
| # --------------------------------------------------------------------------- | ||
| # gitsign — keyless Git signing using Sigstore. Used to cryptographically | ||
| # sign agent commits with verifiable provenance via OIDC. | ||
| # To update: bump GITSIGN_VERSION and GITSIGN_SHA256_{AMD64,ARM64} from: | ||
| # https://github.com/sigstore/gitsign/releases | ||
| ARG GITSIGN_VERSION=0.16.1 | ||
| ARG GITSIGN_SHA256_AMD64=4a29a1f4b9add1f0f6d9a3e9e6ba0cffa121b971be82d62bb1496d7d1d877b0a | ||
| ARG GITSIGN_SHA256_ARM64=66eb0378608c8fbceb497eecb58a525345549f46e9588616daa0f157624f33b4 | ||
| RUN case "$TARGETARCH" in \ | ||
| amd64) GS_SHA="$GITSIGN_SHA256_AMD64" ;; \ | ||
| arm64) GS_SHA="$GITSIGN_SHA256_ARM64" ;; \ | ||
| *) echo "unsupported TARGETARCH=$TARGETARCH" >&2; exit 1 ;; \ | ||
| esac \ | ||
| && curl -fsSL \ | ||
| "https://github.com/sigstore/gitsign/releases/download/v${GITSIGN_VERSION}/gitsign_${GITSIGN_VERSION}_linux_${TARGETARCH}" \ | ||
| -o /tmp/gitsign \ | ||
| && echo "${GS_SHA} /tmp/gitsign" | sha256sum -c - \ | ||
| && mv /tmp/gitsign /usr/local/bin/gitsign \ | ||
| && chmod +x /usr/local/bin/gitsign | ||
|
|
||
| # --------------------------------------------------------------------------- | ||
| # gitleaks is already installed in the base sandbox image. | ||
| # See images/sandbox/Containerfile for the pinned version and checksums. | ||
|
|
||
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
1. Signing fails in sandbox
🐞 Bug☼ ReliabilityAgent Prompt
ⓘ Copy this prompt and use it to remediate the issue with your preferred AI generation tools