Skip to content

Commit

Permalink
update to get string form of key when yaml.dump
Browse files Browse the repository at this point in the history
  • Loading branch information
amartin120 committed Mar 27, 2023
1 parent 675b3aa commit 95fd853
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions modules/utils/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,9 @@ class CosignVerifier:
def __post_init__(self):
object.__setattr__(self, "key", Path(self.key))

def __getstate__(self):
return dict(registry=self.registry, repo=self.repo, key=str(self.key))


# Override emitter to avoid outputting untrusted python object tags into generated yaml
yaml.emitter.Emitter.process_tag = lambda self, *args, **kwargs: None

0 comments on commit 95fd853

Please sign in to comment.