Skip to content

Commit 6a210f4

Browse files
authored
fix: fix a bug in GitHub Actions matrix variable resolution (#896)
Signed-off-by: behnazh-w <[email protected]>
1 parent 7bb23d8 commit 6a210f4

File tree

1 file changed

+3
-1
lines changed
  • src/macaron/slsa_analyzer/ci_service/github_actions

1 file changed

+3
-1
lines changed

src/macaron/slsa_analyzer/ci_service/github_actions/analyzer.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -218,8 +218,10 @@ def resolve_matrix_variable(job_node: GitHubJobNode, var: str) -> Iterable[str]:
218218
# and let the caller handle it?
219219
if isinstance(val, str):
220220
yield val
221+
if isinstance(val, int):
222+
yield str(val)
221223
if isinstance(val, float):
222-
yield str(float)
224+
yield str(val)
223225
if isinstance(val, bool):
224226
yield "true" if val else "false"
225227
else:

0 commit comments

Comments
 (0)