Add Sonar 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": "sonar",
"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"
},
"sonar_results": {
"analysedAt": "1724052982",
"project": {
"key": "xxx",
"name": "",
"url": "https://foo.com"
},
"qualityGate": {
"conditions": [
{
"errorThreshold": "xx",
"metric": "xx",
"operator": "xx",
"status": "OK"
}
],
"name": "gate-1",
"status": "OK"
},
"revision": "649a645f2c138b7c626f2d9a33b4f3baaad1e213"
},
"user_data": {}
}
Optional attachment file (max size: 10MB)
Creation Success