-
Notifications
You must be signed in to change notification settings - Fork 66
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
d6a75ad
commit 9b6b572
Showing
16 changed files
with
1,044 additions
and
469 deletions.
There are no files selected for viewing
3 changes: 0 additions & 3 deletions
3
src/ploigos_step_runner/step_implementers/automated_governance/__init__.py
This file was deleted.
Oops, something went wrong.
200 changes: 0 additions & 200 deletions
200
src/ploigos_step_runner/step_implementers/automated_governance/rekor.py
This file was deleted.
Oops, something went wrong.
27 changes: 27 additions & 0 deletions
27
src/ploigos_step_runner/step_implementers/generate_evidence/rekor_sign_evidence.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
"""Implementation of RekorGeneric in Generate Evidence step. | ||
artifact_to_sign_uri_config_key is set to `evidence-uri` as | ||
this is the key used to obtain the artifact that needs to be | ||
signed by rekor. | ||
""" | ||
|
||
from ploigos_step_runner.step_implementers.shared.rekor_sign_generic import RekorSignGeneric | ||
|
||
class RekorSignEvidence(RekorSignGeneric): | ||
""" Rekor implementation specific to generate_evidence | ||
""" | ||
def __init__( # pylint: disable=too-many-arguments | ||
self, | ||
workflow_result, | ||
parent_work_dir_path, | ||
config, | ||
environment=None | ||
): | ||
super().__init__( | ||
workflow_result=workflow_result, | ||
parent_work_dir_path=parent_work_dir_path, | ||
config=config, | ||
environment=environment, | ||
artifact_to_sign_uri_config_key='evidence-uri' | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
27 changes: 27 additions & 0 deletions
27
src/ploigos_step_runner/step_implementers/report/rekor_sign_report.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
"""Implementation of RekorGeneric in the Report step. | ||
artifact_to_sign_uri_config_key is set to `results-archive-uri` as | ||
this is the key used to obtain the artifact that needs to be | ||
signed by rekor. | ||
""" | ||
|
||
from ploigos_step_runner.step_implementers.shared.rekor_sign_generic import RekorSignGeneric | ||
|
||
class RekorSignReport(RekorSignGeneric): | ||
""" Rekor implementation specific to report | ||
""" | ||
def __init__( # pylint: disable=too-many-arguments | ||
self, | ||
workflow_result, | ||
parent_work_dir_path, | ||
config, | ||
environment=None | ||
): | ||
super().__init__( | ||
workflow_result=workflow_result, | ||
parent_work_dir_path=parent_work_dir_path, | ||
config=config, | ||
environment=environment, | ||
artifact_to_sign_uri_config_key='results-archive-uri' | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.