@startuml
skinparam backgroundColor White
skinparam defaultFontColor Black
skinparam shadowing false
skinparam roundcorner 10
skinparam ArrowColor #111111
skinparam packageStyle rectangle
skinparam rectangle {
  BorderColor #111111
  FontColor Black
}

left to right direction

rectangle "GitHub Actions\ndocker.yml job" as job #E8F1FF {
  rectangle "Build + Push Image" as build #D9F7BE
  rectangle "Output Digest" as digest #FFF1B8
  rectangle "Generate Artifact Attestation\nactions/attest-build-provenance@v1" as attest #FFD6D6
}

rectangle "GitHub Attestation API" as api #FFEFEF
rectangle "xylex-group private repo\n(current billing tier)" as org #F5F5F5

build --> digest : steps.push.outputs.digest
attest --> api : create attestation request
api --> org : feature entitlement check
org --> attest : "Feature not available" error

note bottom of attest
Workflow fails even though
image push succeeded.
end note
@enduml