Closed
Description
Github API sends digest
field (sha256 sum) with responses to calls at /repos/{owner}/{repo}/actions/runs/{run_id}/artifacts
(see: https://docs.github.com/en/rest/actions/artifacts?apiVersion=2022-11-28):
{
"total_count": 2,
"artifacts": [
{
"id": 11,
// ...
"digest": "sha256:cfc3236bdad15b5898bca8408945c9e19e1917da8704adc20eaa618444290a8c",
// ...
},
// ...
]
}
It would be great to have the digest in golang struct as well (for example, to verify the integrity of the downloaded artifact).