Add Snyk 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": "snyk",
"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"
},
"snyk_results": {
"results": [
{
"high": [],
"high_count": 0,
"low": [],
"low_count": 0,
"medium": [],
"medium_count": 0
}
],
"schema_version": 1,
"tool": { "name": "SnykCode", "version": "1.0.0" }
},
"user_data": {}
}
Optional attachment file (max size: 10MB)
Creation Success