File tree Expand file tree Collapse file tree 2 files changed +8
-11
lines changed Expand file tree Collapse file tree 2 files changed +8
-11
lines changed Original file line number Diff line number Diff line change @@ -5,10 +5,10 @@ The Socket Security CLI was created to enable integrations with other tools like
55## Usage
66
77```` shell
8- socketcli [-h] [--api-token API_TOKEN] [--repo REPO] [--integration {api,github,gitlab}] [--owner OWNER] [--branch BRANCH]
9- [--committers [COMMITTERS ...]] [--pr-number PR_NUMBER] [--commit-message COMMIT_MESSAGE] [--commit-sha COMMIT_SHA]
10- [--target-path TARGET_PATH] [--sbom-file SBOM_FILE] [--files FILES] [--default-branch] [--pending-head]
11- [--generate-license] [--enable-debug] [--enable-json] [--enable-sarif] [--disable-overview] [--disable-security-issue]
8+ socketcli [-h] [--api-token API_TOKEN] [--repo REPO] [--integration {api,github,gitlab}] [--owner OWNER] [--branch BRANCH]
9+ [--committers [COMMITTERS ...]] [--pr-number PR_NUMBER] [--commit-message COMMIT_MESSAGE] [--commit-sha COMMIT_SHA]
10+ [--target-path TARGET_PATH] [--sbom-file SBOM_FILE] [--files FILES] [--default-branch] [--pending-head]
11+ [--generate-license] [--enable-debug] [--enable-json] [--enable-sarif] [--disable-overview] [--disable-security-issue]
1212 [--allow-unverified] [--ignore-commit-files] [--disable-blocking] [--scm SCM] [--timeout TIMEOUT]
1313 [--exclude-license-details]
1414` ` ` `
@@ -77,7 +77,7 @@ If you don't want to provide the Socket API Token every time then you can use th
7777
7878# # Development
7979
80- This project uses ` pyproject.toml` as the primary dependency specification.
80+ This project uses ` pyproject.toml` as the primary dependency specification.
8181
8282# ## Development Workflows
8383
@@ -132,8 +132,3 @@ Implementation targets:
132132# ## Environment Variables
133133
134134- ` SOCKET_SDK_PATH` : Path to local socket-sdk-python repository (default: ../socket-sdk-python)
135-
136- # ## Running tests:
137-
138- # ### Run all tests:
139- ` ` `
Original file line number Diff line number Diff line change 11import logging
2+ import os
23import sys
34import time
45from dataclasses import asdict
@@ -146,7 +147,8 @@ def find_files(path: str) -> List[str]:
146147 glob_start = time .time ()
147148 glob_files = glob (file_path , recursive = True )
148149 for glob_file in glob_files :
149- if glob_file not in files :
150+ # Only add if it's a file, not a directory
151+ if glob_file not in files and os .path .isfile (glob_file ):
150152 files .add (glob_file )
151153 glob_end = time .time ()
152154 glob_total_time = glob_end - glob_start
You can’t perform that action at this time.
0 commit comments