Add Pull-Request attestation to a trail with an optional attachment file.
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Attestation data in JSON format
{
"attestation_name": "pr",
"git_commit_info": {
"author": "Jon Smith <jon@smith.com>",
"branch": "main",
"message": "adding glorious commit",
"sha1": "ae08fc6a5c963ae8dfaa0c27d8e5de9980d433b6",
"timestamp": 1750923680,
"url": "https://github.com/org/repo/commit/ae08fc6a5c963ae8dfaa0c27d8e5de9980d433b6"
},
"git_provider": "github",
"pull_requests": [
{
"approvers": [
{
"author": "Jon Doe",
"state": "APPROVED",
"timestamp": 1750923266
}
],
"author": "JonSmith",
"commits": [
{
"author": "Jon Smith <jon@smith.com>",
"author_username": "JonSmith",
"branch": "glorious-branch",
"message": "Add glorious feature",
"sha": "f387a894992f7991489680696abf8b72bf7875f1",
"timestamp": 1750851568,
"url": "https://github.com/org/repo/commit/f387a894992f7991489680696abf8b72bf7875f1"
},
{
"author": "Jon Smith <jon@smith.com>",
"author_username": "JonSmith",
"branch": "glorious-branch",
"message": "Update glorious feature",
"sha": "2d48854228633cca94f7f4a587b2172ebb01cf85",
"timestamp": 1750922905
}
],
"created_at": 1750851601,
"head_ref": "glorious-branch",
"merge_commit": "ae08fc6a5c963ae8dfaa0c27d8e5de9980d433b6",
"merged_at": 1750923680,
"state": "MERGED",
"title": "Add glorious commit",
"url": "https://github.com/org/repo/pull/3497"
}
],
"user_data": {}
}
Optional attachment file (max size: 10MB)
Creation Success