Skip to content

Commit 1586789

Browse files
committed
fix: make deploy_workflow and deploy_job columns nullable
Signed-off-by: behnazh-w <behnaz.hassanshahi@oracle.com>
1 parent 7eac146 commit 1586789

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/macaron/slsa_analyzer/checks/infer_artifact_pipeline_check.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,10 +34,10 @@ class ArtifactPipelineFacts(CheckFacts):
3434
id: Mapped[int] = mapped_column(ForeignKey("_check_facts.id"), primary_key=True) # noqa: A003
3535

3636
#: The URL of the workflow file that triggered deploy.
37-
deploy_workflow: Mapped[str] = mapped_column(String, nullable=False, info={"justification": JustificationType.HREF})
37+
deploy_workflow: Mapped[str] = mapped_column(String, nullable=True, info={"justification": JustificationType.HREF})
3838

3939
#: The workflow job that triggered deploy.
40-
deploy_job: Mapped[str] = mapped_column(String, nullable=False, info={"justification": JustificationType.TEXT})
40+
deploy_job: Mapped[str] = mapped_column(String, nullable=True, info={"justification": JustificationType.TEXT})
4141

4242
#: The workflow step that triggered deploy.
4343
deploy_step: Mapped[str | None] = mapped_column(

0 commit comments

Comments
 (0)