Skip to content

Commit

Permalink
saving changes
Browse files Browse the repository at this point in the history
Signed-off-by: chaosinthecrd <[email protected]>
  • Loading branch information
ChaosInTheCRD committed Feb 6, 2024
1 parent 7edc52c commit 258dee2
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions cmd/run.go
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ import (
"github.com/in-toto/go-witness/archivista"

Check failure on line 24 in cmd/run.go

View workflow job for this annotation

GitHub Actions / sast / witness

github.com/in-toto/[email protected]: replacement directory ../go-witness does not exist

Check failure on line 24 in cmd/run.go

View workflow job for this annotation

GitHub Actions / unit-test / witness

github.com/in-toto/[email protected]: replacement directory ../go-witness does not exist
"github.com/in-toto/go-witness/attestation"

Check failure on line 25 in cmd/run.go

View workflow job for this annotation

GitHub Actions / sast / witness

github.com/in-toto/[email protected]: replacement directory ../go-witness does not exist

Check failure on line 25 in cmd/run.go

View workflow job for this annotation

GitHub Actions / unit-test / witness

github.com/in-toto/[email protected]: replacement directory ../go-witness does not exist
"github.com/in-toto/go-witness/attestation/commandrun"

Check failure on line 26 in cmd/run.go

View workflow job for this annotation

GitHub Actions / sast / witness

github.com/in-toto/[email protected]: replacement directory ../go-witness does not exist

Check failure on line 26 in cmd/run.go

View workflow job for this annotation

GitHub Actions / unit-test / witness

github.com/in-toto/[email protected]: replacement directory ../go-witness does not exist
"github.com/in-toto/go-witness/attestation/custom"

Check failure on line 27 in cmd/run.go

View workflow job for this annotation

GitHub Actions / sast / witness

github.com/in-toto/[email protected]: replacement directory ../go-witness does not exist

Check failure on line 27 in cmd/run.go

View workflow job for this annotation

GitHub Actions / unit-test / witness

github.com/in-toto/[email protected]: replacement directory ../go-witness does not exist
"github.com/in-toto/go-witness/cryptoutil"
"github.com/in-toto/go-witness/log"
"github.com/in-toto/go-witness/registry"

Check failure on line 30 in cmd/run.go

View workflow job for this annotation

GitHub Actions / sast / witness

github.com/in-toto/[email protected]: replacement directory ../go-witness does not exist

Check failure on line 30 in cmd/run.go

View workflow job for this annotation

GitHub Actions / unit-test / witness

github.com/in-toto/[email protected]: replacement directory ../go-witness does not exist
Expand Down Expand Up @@ -108,14 +109,14 @@ func runRun(ctx context.Context, ro options.RunOptions, args []string, signers .
return fmt.Errorf("failed to read custom attestor file: %w", err)
}

var definition attestation.CustomAttestorDefinition
err = json.Unmarshal(f, &definition)
var custom custom.CustomAttestor
err = json.Unmarshal(f, &custom.Definition)
if err != nil {
return fmt.Errorf("failed to unmarshal custom attestor definition: %w", err)
}

attestation.RegisterCustomAttestation(definition)
attestor, err := attestation.GetAttestor(definition.Metadata.Type)
attestation.RegisterCustomAttestation(&custom)
attestor, err := attestation.GetAttestor(custom.Definition.Metadata.Type)
if err != nil {
return fmt.Errorf("failed to create attestor: %w", err)
}
Expand Down

0 comments on commit 258dee2

Please sign in to comment.