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
5
5
## Usage
6
6
7
7
```` 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]
12
12
[--allow-unverified] [--ignore-commit-files] [--disable-blocking] [--scm SCM] [--timeout TIMEOUT]
13
13
[--exclude-license-details]
14
14
` ` ` `
@@ -77,7 +77,7 @@ If you don't want to provide the Socket API Token every time then you can use th
77
77
78
78
# # Development
79
79
80
- This project uses ` pyproject.toml` as the primary dependency specification.
80
+ This project uses ` pyproject.toml` as the primary dependency specification.
81
81
82
82
# ## Development Workflows
83
83
@@ -132,8 +132,3 @@ Implementation targets:
132
132
# ## Environment Variables
133
133
134
134
- ` 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 1
1
import logging
2
+ import os
2
3
import sys
3
4
import time
4
5
from dataclasses import asdict
@@ -146,7 +147,8 @@ def find_files(path: str) -> List[str]:
146
147
glob_start = time .time ()
147
148
glob_files = glob (file_path , recursive = True )
148
149
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 ):
150
152
files .add (glob_file )
151
153
glob_end = time .time ()
152
154
glob_total_time = glob_end - glob_start
You can’t perform that action at this time.
0 commit comments