diff --git a/extras/dagger/main.go b/extras/dagger/main.go index 3758992d6..1697bb347 100644 --- a/extras/dagger/main.go +++ b/extras/dagger/main.go @@ -79,6 +79,9 @@ func (m *Chainloop) Init( // name of an existing contract to attach it to the auto-created workflow // +optional contractName string, + // Version of the project to be used for the attestation + // +optional + projectVersion string, ) (*Attestation, error) { att := &Attestation{ Token: token, @@ -102,6 +105,12 @@ func (m *Chainloop) Init( ) } + if projectVersion != "" { + args = append(args, + "--version", projectVersion, + ) + } + info, err := att. Container(0). WithExec(args, execOpts).