Skip to content

Commit

Permalink
Updated python script
Browse files Browse the repository at this point in the history
  • Loading branch information
developerkunal committed Sep 9, 2024
1 parent 7651a41 commit 9f12dcf
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/rl-secure.yml
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ jobs:
with:
script: |
const fs = require('fs');
const path = 'violations.txt';
const path = 'scripts/violations.txt';
const commentBody = fs.readFileSync(path, 'utf8');
const prNumber = context.issue.number;
Expand Down
2 changes: 1 addition & 1 deletion scripts/rl-wrapper.py
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@ def process_and_export_violations(report_metadata, malware_violation_rule_ids, a
print(f'[!] {violation["rule_id"]}: {violation["description"]} -> {report_metadata["components"][component_id]["path"]}', file=sys.stderr)

report_malware_detection(violation['rule_id'])

print('------------------RL Wrapper Scanner Save Violations------------------', file=sys.stderr)
with open('violations.txt', 'w') as file:
file.write('## 🚨 RL Wrapper Scanner Results: Malware Detected\n\n')
file.write(f'**Artifact:** {artifact_name}\n')
Expand Down

0 comments on commit 9f12dcf

Please sign in to comment.