socketsecurity 0.0.96__tar.gz → 0.0.98__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {socketsecurity-0.0.96/socketsecurity.egg-info → socketsecurity-0.0.98}/PKG-INFO +3 -2
- {socketsecurity-0.0.96 → socketsecurity-0.0.98}/README.md +2 -1
- {socketsecurity-0.0.96 → socketsecurity-0.0.98}/socketsecurity/__init__.py +1 -1
- {socketsecurity-0.0.96 → socketsecurity-0.0.98}/socketsecurity/socketcli.py +10 -2
- {socketsecurity-0.0.96 → socketsecurity-0.0.98/socketsecurity.egg-info}/PKG-INFO +3 -2
- {socketsecurity-0.0.96 → socketsecurity-0.0.98}/LICENSE +0 -0
- {socketsecurity-0.0.96 → socketsecurity-0.0.98}/pyproject.toml +0 -0
- {socketsecurity-0.0.96 → socketsecurity-0.0.98}/setup.cfg +0 -0
- {socketsecurity-0.0.96 → socketsecurity-0.0.98}/socketsecurity/core/__init__.py +0 -0
- {socketsecurity-0.0.96 → socketsecurity-0.0.98}/socketsecurity/core/classes.py +0 -0
- {socketsecurity-0.0.96 → socketsecurity-0.0.98}/socketsecurity/core/exceptions.py +0 -0
- {socketsecurity-0.0.96 → socketsecurity-0.0.98}/socketsecurity/core/git_interface.py +0 -0
- {socketsecurity-0.0.96 → socketsecurity-0.0.98}/socketsecurity/core/github.py +0 -0
- {socketsecurity-0.0.96 → socketsecurity-0.0.98}/socketsecurity/core/gitlab.py +0 -0
- {socketsecurity-0.0.96 → socketsecurity-0.0.98}/socketsecurity/core/issues.py +0 -0
- {socketsecurity-0.0.96 → socketsecurity-0.0.98}/socketsecurity/core/licenses.py +0 -0
- {socketsecurity-0.0.96 → socketsecurity-0.0.98}/socketsecurity/core/messages.py +0 -0
- {socketsecurity-0.0.96 → socketsecurity-0.0.98}/socketsecurity/core/scm_comments.py +0 -0
- {socketsecurity-0.0.96 → socketsecurity-0.0.98}/socketsecurity.egg-info/SOURCES.txt +0 -0
- {socketsecurity-0.0.96 → socketsecurity-0.0.98}/socketsecurity.egg-info/dependency_links.txt +0 -0
- {socketsecurity-0.0.96 → socketsecurity-0.0.98}/socketsecurity.egg-info/entry_points.txt +0 -0
- {socketsecurity-0.0.96 → socketsecurity-0.0.98}/socketsecurity.egg-info/requires.txt +0 -0
- {socketsecurity-0.0.96 → socketsecurity-0.0.98}/socketsecurity.egg-info/top_level.txt +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: socketsecurity
|
|
3
|
-
Version: 0.0.
|
|
3
|
+
Version: 0.0.98
|
|
4
4
|
Summary: Socket Security CLI for CI/CD
|
|
5
5
|
Author-email: Douglas Coburn <douglas@socket.dev>
|
|
6
6
|
Maintainer-email: Douglas Coburn <douglas@socket.dev>
|
|
@@ -31,7 +31,7 @@ The Socket Security CLI was created to enable integrations with other tools like
|
|
|
31
31
|
socketcli [-h] [--api_token API_TOKEN] [--repo REPO] [--branch BRANCH] [--committer COMMITTER] [--pr_number PR_NUMBER]
|
|
32
32
|
[--commit_message COMMIT_MESSAGE] [--default_branch] [--target_path TARGET_PATH] [--scm {api,github,gitlab}] [--sbom-file SBOM_FILE]
|
|
33
33
|
[--commit-sha COMMIT_SHA] [--generate-license GENERATE_LICENSE] [-v] [--enable-debug] [--enable-json] [--disable-overview]
|
|
34
|
-
[--disable-security-issue] [--files FILES]
|
|
34
|
+
[--disable-security-issue] [--files FILES] [--ignore-commit-files]
|
|
35
35
|
````
|
|
36
36
|
|
|
37
37
|
If you don't want to provide the Socket API Token every time then you can use the environment variable `SOCKET_SECURITY_API_KEY`
|
|
@@ -59,3 +59,4 @@ If you don't want to provide the Socket API Token every time then you can use th
|
|
|
59
59
|
| --disable-overview | | False | False | If enabled will disable Dependency Overview comments |
|
|
60
60
|
| --disable-security-issue | | False | False | If enabled will disable Security Issue Comments |
|
|
61
61
|
| --files | | False | | If provided in the format of `["file1", "file2"]` it will only look for those files and not glob the path |
|
|
62
|
+
| --ignore-commit-files | | False | False | If enabled then the CLI will ignore what files are changed in the commit and look for all manifest files |
|
|
@@ -8,7 +8,7 @@ The Socket Security CLI was created to enable integrations with other tools like
|
|
|
8
8
|
socketcli [-h] [--api_token API_TOKEN] [--repo REPO] [--branch BRANCH] [--committer COMMITTER] [--pr_number PR_NUMBER]
|
|
9
9
|
[--commit_message COMMIT_MESSAGE] [--default_branch] [--target_path TARGET_PATH] [--scm {api,github,gitlab}] [--sbom-file SBOM_FILE]
|
|
10
10
|
[--commit-sha COMMIT_SHA] [--generate-license GENERATE_LICENSE] [-v] [--enable-debug] [--enable-json] [--disable-overview]
|
|
11
|
-
[--disable-security-issue] [--files FILES]
|
|
11
|
+
[--disable-security-issue] [--files FILES] [--ignore-commit-files]
|
|
12
12
|
````
|
|
13
13
|
|
|
14
14
|
If you don't want to provide the Socket API Token every time then you can use the environment variable `SOCKET_SECURITY_API_KEY`
|
|
@@ -36,3 +36,4 @@ If you don't want to provide the Socket API Token every time then you can use th
|
|
|
36
36
|
| --disable-overview | | False | False | If enabled will disable Dependency Overview comments |
|
|
37
37
|
| --disable-security-issue | | False | False | If enabled will disable Security Issue Comments |
|
|
38
38
|
| --files | | False | | If provided in the format of `["file1", "file2"]` it will only look for those files and not glob the path |
|
|
39
|
+
| --ignore-commit-files | | False | False | If enabled then the CLI will ignore what files are changed in the commit and look for all manifest files |
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
__author__ = 'socket.dev'
|
|
2
|
-
__version__ = '0.0.
|
|
2
|
+
__version__ = '0.0.98'
|
|
@@ -135,6 +135,13 @@ parser.add_argument(
|
|
|
135
135
|
default="[]"
|
|
136
136
|
)
|
|
137
137
|
|
|
138
|
+
parser.add_argument(
|
|
139
|
+
'--ignore-commit-files',
|
|
140
|
+
help='Ignores only looking for changed files form the commit. Will find any supported manifest file type',
|
|
141
|
+
action='store_true',
|
|
142
|
+
default=False
|
|
143
|
+
)
|
|
144
|
+
|
|
138
145
|
|
|
139
146
|
def output_console_comments(diff_report) -> None:
|
|
140
147
|
console_security_comment = Messages.create_console_security_alert_table(diff_report)
|
|
@@ -187,6 +194,7 @@ def main_code():
|
|
|
187
194
|
enable_json = arguments.enable_json
|
|
188
195
|
disable_overview = arguments.disable_overview
|
|
189
196
|
disable_security_issue = arguments.disable_security_issue
|
|
197
|
+
ignore_commit_files = arguments.ignore_commit_files
|
|
190
198
|
files = arguments.files
|
|
191
199
|
log.info(f"Starting Socket Security Scan version {__version__}")
|
|
192
200
|
api_token = os.getenv("SOCKET_SECURITY_API_KEY") or arguments.api_token
|
|
@@ -211,7 +219,7 @@ def main_code():
|
|
|
211
219
|
committer = git_repo.committer
|
|
212
220
|
if commit_message is None or commit_message == '':
|
|
213
221
|
commit_message = git_repo.commit_message
|
|
214
|
-
if len(files) == 0:
|
|
222
|
+
if len(files) == 0 and not ignore_commit_files:
|
|
215
223
|
files = git_repo.changed_files
|
|
216
224
|
except InvalidGitRepositoryError:
|
|
217
225
|
pass
|
|
@@ -274,7 +282,7 @@ def main_code():
|
|
|
274
282
|
if len(diff.new_alerts) == 0 or disable_security_issue:
|
|
275
283
|
new_security_comment = False
|
|
276
284
|
log.debug("No new alerts or security issue comment disabled")
|
|
277
|
-
if (len(diff.new_packages) == 0 and diff.removed_packages == 0) or disable_overview:
|
|
285
|
+
if (len(diff.new_packages) == 0 and len(diff.removed_packages) == 0) or disable_overview:
|
|
278
286
|
new_overview_comment = False
|
|
279
287
|
log.debug("No new/removed packages or Dependency Overview comment disabled")
|
|
280
288
|
log.debug(f"Adding comments for {scm_type}")
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: socketsecurity
|
|
3
|
-
Version: 0.0.
|
|
3
|
+
Version: 0.0.98
|
|
4
4
|
Summary: Socket Security CLI for CI/CD
|
|
5
5
|
Author-email: Douglas Coburn <douglas@socket.dev>
|
|
6
6
|
Maintainer-email: Douglas Coburn <douglas@socket.dev>
|
|
@@ -31,7 +31,7 @@ The Socket Security CLI was created to enable integrations with other tools like
|
|
|
31
31
|
socketcli [-h] [--api_token API_TOKEN] [--repo REPO] [--branch BRANCH] [--committer COMMITTER] [--pr_number PR_NUMBER]
|
|
32
32
|
[--commit_message COMMIT_MESSAGE] [--default_branch] [--target_path TARGET_PATH] [--scm {api,github,gitlab}] [--sbom-file SBOM_FILE]
|
|
33
33
|
[--commit-sha COMMIT_SHA] [--generate-license GENERATE_LICENSE] [-v] [--enable-debug] [--enable-json] [--disable-overview]
|
|
34
|
-
[--disable-security-issue] [--files FILES]
|
|
34
|
+
[--disable-security-issue] [--files FILES] [--ignore-commit-files]
|
|
35
35
|
````
|
|
36
36
|
|
|
37
37
|
If you don't want to provide the Socket API Token every time then you can use the environment variable `SOCKET_SECURITY_API_KEY`
|
|
@@ -59,3 +59,4 @@ If you don't want to provide the Socket API Token every time then you can use th
|
|
|
59
59
|
| --disable-overview | | False | False | If enabled will disable Dependency Overview comments |
|
|
60
60
|
| --disable-security-issue | | False | False | If enabled will disable Security Issue Comments |
|
|
61
61
|
| --files | | False | | If provided in the format of `["file1", "file2"]` it will only look for those files and not glob the path |
|
|
62
|
+
| --ignore-commit-files | | False | False | If enabled then the CLI will ignore what files are changed in the commit and look for all manifest files |
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{socketsecurity-0.0.96 → socketsecurity-0.0.98}/socketsecurity.egg-info/dependency_links.txt
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|