Skip to content

Commit 4f59360

Browse files
committed
fixing security-scan/action.yml file. Indentations were mistakenly removed causing errors when trying to import and run security-scan.
1 parent 646dd0a commit 4f59360

File tree

2 files changed

+21
-20
lines changed

2 files changed

+21
-20
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@ node_modules/
2929
.idea/
3030
*.swp
3131
*.swo
32+
.claude/
3233

3334
## Ignore Visual Studio temporary files, build results, and
3435
## files generated by popular Visual Studio add-ons.

action/security-scan/action.yml

Lines changed: 20 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -87,31 +87,31 @@ runs:
8787
8888
# Run the security scanner
8989
python -c "
90-
from pathlib import Path
91-
from agent_compliance.security import scan_plugin_security
92-
import json
93-
import sys
90+
from pathlib import Path
91+
from agent_compliance.security import scan_plugin_security
92+
import json
93+
import sys
9494
95-
paths = '$PATHS'.split()
96-
verbose = '${{ inputs.verbose }}' == 'true'
95+
paths = '$PATHS'.split()
96+
verbose = '${{ inputs.verbose }}' == 'true'
9797
98-
# Scan first path (primary plugin directory)
99-
plugin_dir = Path(paths[0])
100-
plugin_name = '$PLUGIN_NAME'
98+
# Scan first path (primary plugin directory)
99+
plugin_dir = Path(paths[0])
100+
plugin_name = '$PLUGIN_NAME'
101101
102-
exit_code, error_msg = scan_plugin_security(
103-
plugin_dir=plugin_dir,
104-
plugin_name=plugin_name,
105-
verbose=verbose
106-
)
102+
exit_code, error_msg = scan_plugin_security(
103+
plugin_dir=plugin_dir,
104+
plugin_name=plugin_name,
105+
verbose=verbose
106+
)
107107
108-
# Output for GitHub Actions
109-
print(f'exit_code={exit_code}', file=sys.stderr)
110-
if error_msg:
111-
print(error_msg)
108+
# Output for GitHub Actions
109+
print(f'exit_code={exit_code}', file=sys.stderr)
110+
if error_msg:
111+
print(error_msg)
112112
113-
sys.exit(exit_code)
114-
" 2>&1 | tee /tmp/security_scan_output.txt
113+
sys.exit(exit_code)
114+
" 2>&1 | tee /tmp/security_scan_output.txt
115115
116116
EXIT_CODE=$?
117117
OUTPUT=$(cat /tmp/security_scan_output.txt)

0 commit comments

Comments
 (0)