socketsecurity 0.0.97__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.
Files changed (23) hide show
  1. {socketsecurity-0.0.97/socketsecurity.egg-info → socketsecurity-0.0.98}/PKG-INFO +3 -2
  2. {socketsecurity-0.0.97 → socketsecurity-0.0.98}/README.md +2 -1
  3. {socketsecurity-0.0.97 → socketsecurity-0.0.98}/socketsecurity/__init__.py +1 -1
  4. {socketsecurity-0.0.97 → socketsecurity-0.0.98}/socketsecurity/socketcli.py +9 -1
  5. {socketsecurity-0.0.97 → socketsecurity-0.0.98/socketsecurity.egg-info}/PKG-INFO +3 -2
  6. {socketsecurity-0.0.97 → socketsecurity-0.0.98}/LICENSE +0 -0
  7. {socketsecurity-0.0.97 → socketsecurity-0.0.98}/pyproject.toml +0 -0
  8. {socketsecurity-0.0.97 → socketsecurity-0.0.98}/setup.cfg +0 -0
  9. {socketsecurity-0.0.97 → socketsecurity-0.0.98}/socketsecurity/core/__init__.py +0 -0
  10. {socketsecurity-0.0.97 → socketsecurity-0.0.98}/socketsecurity/core/classes.py +0 -0
  11. {socketsecurity-0.0.97 → socketsecurity-0.0.98}/socketsecurity/core/exceptions.py +0 -0
  12. {socketsecurity-0.0.97 → socketsecurity-0.0.98}/socketsecurity/core/git_interface.py +0 -0
  13. {socketsecurity-0.0.97 → socketsecurity-0.0.98}/socketsecurity/core/github.py +0 -0
  14. {socketsecurity-0.0.97 → socketsecurity-0.0.98}/socketsecurity/core/gitlab.py +0 -0
  15. {socketsecurity-0.0.97 → socketsecurity-0.0.98}/socketsecurity/core/issues.py +0 -0
  16. {socketsecurity-0.0.97 → socketsecurity-0.0.98}/socketsecurity/core/licenses.py +0 -0
  17. {socketsecurity-0.0.97 → socketsecurity-0.0.98}/socketsecurity/core/messages.py +0 -0
  18. {socketsecurity-0.0.97 → socketsecurity-0.0.98}/socketsecurity/core/scm_comments.py +0 -0
  19. {socketsecurity-0.0.97 → socketsecurity-0.0.98}/socketsecurity.egg-info/SOURCES.txt +0 -0
  20. {socketsecurity-0.0.97 → socketsecurity-0.0.98}/socketsecurity.egg-info/dependency_links.txt +0 -0
  21. {socketsecurity-0.0.97 → socketsecurity-0.0.98}/socketsecurity.egg-info/entry_points.txt +0 -0
  22. {socketsecurity-0.0.97 → socketsecurity-0.0.98}/socketsecurity.egg-info/requires.txt +0 -0
  23. {socketsecurity-0.0.97 → 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.97
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.97'
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
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: socketsecurity
3
- Version: 0.0.97
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