Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
50 commits
Select commit Hold shift + click to select a range
e91b5c4
updated osar - added parser for cycloneDX sbom output (#229)
Jan 21, 2025
90bc914
Fixed #228
asa1997 Jan 22, 2025
db21a12
Merge pull request #230 from asa1997/bug/issue-228
anilsingla Jan 23, 2025
0e283a5
updated for empty version for install
asa1997 Jan 24, 2025
af6797b
Fix #144
asa1997 Jan 27, 2025
1255a7a
Merge pull request #231 from asa1997/feature/issue-144
anilsingla Jan 27, 2025
5566c6e
fixed typo
Feb 10, 2025
f3e80e0
Run bes-playbook from local (#233)
Feb 13, 2025
365a7a1
updated message and instruction for local dir playbook listing
Feb 13, 2025
5967ad5
Fix #237
asa1997 Apr 23, 2025
17edf0a
Fix #235; #236
asa1997 Apr 23, 2025
c528550
Merge pull request #238 from asa1997/playbook_naming
anilsingla Apr 24, 2025
7f204ae
updated
asa1997 Apr 24, 2025
a7285bc
Merge branch 'Be-Secure:master' into playbook_naming
asa1997 Apr 24, 2025
da8c171
Updated help for pull and run
asa1997 Apr 24, 2025
2c4975c
Merge pull request #239 from asa1997/playbook_naming
anilsingla Apr 24, 2025
4f3b376
added parser for cyberseceval, garak & modelBench (#240)
Apr 27, 2025
d569fa0
Fix #242; #241; #236
asa1997 May 1, 2025
130da06
Merge pull request #243 from asa1997/feature/issue-242
anilsingla May 2, 2025
48f791b
Fixed #245: Bug with overwriting the steps file; #247: Issue with gar…
asa1997 May 13, 2025
b49b514
Fixed #249
asa1997 May 13, 2025
8ad51a2
init
asa1997 May 13, 2025
22a08a5
updated
asa1997 May 14, 2025
d6f3006
updated
asa1997 May 15, 2025
9d8cd81
Fixed #248
asa1997 May 15, 2025
5c436cc
Updated url for zip
asa1997 May 16, 2025
2fac7ef
Corrected url
asa1997 May 16, 2025
141c462
Added curl time out param
asa1997 May 16, 2025
43ce73b
Merge pull request #251 from asa1997/bug/issue-248
anilsingla May 16, 2025
3d276ea
Fixed #252: Issue with generating OSAR (#253)
asa1997 May 20, 2025
caf9fe3
Fixed #254 (#255)
asa1997 May 20, 2025
12c90b1
Restricting installation of more than one env (#256)
asa1997 May 20, 2025
425ceda
updated jupyter notebook installation (#257)
anilsingla May 20, 2025
faca705
corrected syntax
asa1997 May 20, 2025
bc3d12a
Merge pull request #258 from asa1997/develop
anilsingla May 20, 2025
53be41c
Renamed cyclone dx
asa1997 May 21, 2025
a797b27
Fixed #259
asa1997 May 23, 2025
5822b2c
Fixed #260
asa1997 May 23, 2025
897d9a7
Merge pull request #261 from asa1997/curl
anilsingla May 23, 2025
89aad57
Added test cases and ci workflow (#262)
asa1997 May 28, 2025
6a144dc
CBOM parser added to Besman (#263)
Jun 3, 2025
8a0e5fd
Improve syntax and code improvement (#264)
sudhirverma Jun 3, 2025
9b23622
Revert "Improve syntax and code improvement (#264)" (#265)
asa1997 Jun 3, 2025
da05b0e
Fixed: #269 Allow skipping specific tools during BeSman installation …
asa1997 Jul 28, 2025
03600ec
Fixed #268, #271, #272
sudhirverma Jul 28, 2025
6098855
Fixed #274
asa1997 Aug 5, 2025
f20ee89
Syncing with upstream
asa1997 Aug 8, 2025
d6b2917
Added osar for promptfoo
asa1997 Oct 17, 2025
d5baf5b
Fixed #278
asa1997 Nov 11, 2025
14e6b82
Rolling back added
asa1997 Nov 11, 2025
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion src/main/bash/commands/besman-install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,8 @@ function __besman_finalize_env_setup {
__besman_source_env_params "$env" "$ver"
if [[ $? -ne 0 ]]; then
__besman_log_error "Sourcing env params failed for $env $ver"
__besman_manage_install_out "$?" "$env"
__besman_error_rollback "$env" || __besman_log_error "Rollback failed for $env"
# __besman_manage_install_out "$?" "$env"
return 1
fi

Expand Down
60 changes: 60 additions & 0 deletions src/main/bash/scripts/besman-generate-osar.py
Original file line number Diff line number Diff line change
Expand Up @@ -268,6 +268,65 @@ def garak_parser(input_data):



def promptfoo_parser(user_data):
results = []
# The 'stats' object is nested inside the 'results' object
stats = user_data.get("results", {}).get("stats", {})
test_results = user_data.get("results", {}).get("results", [])

feature_counts = {}

for item in test_results:
if "namedScores" in item:
for feature, score in item.get("namedScores", {}).items():
if feature not in feature_counts:
feature_counts[feature] = {"Success": 0, "Fail": 0}

if item.get("success"):
feature_counts[feature]["Success"] += 1
else:
feature_counts[feature]["Fail"] += 1

for feature, counts in feature_counts.items():
results.append({
"feature": feature,
"aspect": "Success",
"attribute": "Count",
"value": counts["Success"]
})
results.append({
"feature": feature,
"aspect": "Fail",
"attribute": "Count",
"value": counts["Fail"]
})

total_tests = stats.get("successes", 0) + stats.get("failures", 0)
results.extend([
{
"feature": "AgentRT",
"aspect": "TotalTests",
"attribute": "Count",
"value": total_tests
},
{
"feature": "AgentRT",
"aspect": "Total Successes",
"attribute": "Count",
"value": stats.get("successes", 0)
},
{
"feature": "AgentRT",
"aspect": "Total Failures",
"attribute": "Count",
"value": stats.get("failures", 0)
}
])

return results



##------------Add parsers for modelBench result------------------------------

def modelbench_parser(input_data):
Expand Down Expand Up @@ -547,6 +606,7 @@ def write_json_data(osar_data, osar_file_path):

"garak": garak_parser,
"modelbench": modelbench_parser,
"promptfoo": promptfoo_parser,

"cbomkitaction": cbom_parser
}
Expand Down
Loading