Skip to content

Commit 64a338c

Browse files
authored
fix: store language in build as code check for non-GitHub CI services (#716)
This PR fixes a bug in the build as code check. The language field in BuildAsCodeFacts was not set for non-GitHub CI services, which is needed for storing the result in the database. Signed-off-by: behnazh-w <behnaz.hassanshahi@oracle.com>
1 parent 79d5f9d commit 64a338c

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/macaron/slsa_analyzer/checks/build_as_code_check.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -268,6 +268,7 @@ def run_check(self, ctx: AnalyzeContext) -> CheckResultData:
268268
result_tables.append(
269269
BuildAsCodeFacts(
270270
build_tool_name=tool.name,
271+
language=tool.language.value,
271272
ci_service_name=ci_service.name,
272273
deploy_command=deploy_kw,
273274
confidence=Confidence.LOW,

0 commit comments

Comments
 (0)