api3dao / api3-dao-dashboard

API3 DAO dashboard
api3.eth/
14 stars 10 forks source link

Add provenance to Docker image #449

Closed Siegrift closed 3 months ago

Siegrift commented 3 months ago

See: https://docs.docker.com/build/attestations/slsa-provenance/

dcroote commented 3 months ago

This is already present as of #441

You can confirm via:

docker buildx imagetools inspect api3/dao-dashboard:latest --format "{{ json .Provenance.SLSA }}" | jq '.builder, .metadata.buildFinishedOn, .metadata."https://mobyproject.org/buildkit@v1#metadata".vcs'

which yields:

{
  "id": "https://github.com/api3dao/api3-dao-dashboard/actions/runs/8781350553"
}
"2024-04-22T09:03:14.218599696Z"
{
  "localdir:context": ".",
  "localdir:dockerfile": ".",
  "revision": "ef58bfb106d4419c5fbc9828ec4a335831dce883",
  "source": "https://github.com/api3dao/api3-dao-dashboard"
}

And notice the revision is equivalent to the latest production branch sha.