Add GitLab Issue witness support - #3
Open
BenBirt wants to merge 1 commit into
Open
Conversation
Add gitlab-issue:// witness type, mirroring the existing github-issue:// witness. The protocol is identical (issue-based checkpoint request and cosignature exchange), adapted for GitLab APIs. New files: - docs/gitlab-issue-witness.md: scheme, protocol, triggering, setup guide - gitlab/cosign.gitlab-ci.yml: includable CI template for witness-side cosigning (POSIX sh on Alpine, path traversal guards, push-race retry, cleanup job with timestamp-filtered close) Modified files: - actions/checkpoint/action.yml: new gitlab-token input and gitlab-issue) case arm (create issue via POST /projects/:id/issues, poll for closure, extract cosig from issue notes) - actions/checkpoint/README.md: document gitlab-token input and usage - README.md: mention third witness type, CI template location - internal/policy/policy_test.go: TestPolicyGitLabIssueWitnessURL asserts gitlab-issue://gitlab.example.com/group/subgroup/my-witness is stored verbatim and verification works Verification: - go test passes on all pure-Go packages (internal/policy, internal/note, internal/gitutil, internal/witness) - YAML parses (python3 yaml.safe_load) - Shell scripts pass bash -n and dash -n - NOT yet tested against a live GitLab instance
BenBirt
force-pushed
the
claude/gitlab-witness-implementation-ak251v
branch
from
July 7, 2026 12:42
e1f770d to
2143ac5
Compare
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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Add gitlab-issue:// witness type, mirroring the existing github-issue:// witness. The protocol is identical (issue-based checkpoint request and cosignature exchange), adapted for GitLab APIs.
New files:
Modified files:
Verification: