Description
Currently artifact revision (i.e. digest) is obtain here:
source-controller/internal/controller/ocirepository_controller.go
Lines 392 to 393 in 53ee3a3
It is also observed as a condition here:
source-controller/internal/controller/ocirepository_controller.go
Lines 408 to 417 in 53ee3a3
However, verification and fetching is only done by URL, and it's possible there is an update in registry in between all of these calls:
source-controller/internal/controller/ocirepository_controller.go
Lines 455 to 456 in 53ee3a3
There maybe other race coditions. It will be easy enough to address this and reinfoce use of the same digest for all of the registry API calls.