Commit cc45ff4
authored
Doug/fix windows support (SocketDev#123)
* Added gates so that resources module doesn't break windows
* feat: centralize User-Agent string across all API clients
- Add USER_AGENT constant to socketsecurity/__init__.py
- Replace hardcoded 'SocketPythonScript/0.0.1' and 'SocketPythonCLI/0.0.1' with centralized USER_AGENT
- Update all SCM clients (GitHub, GitLab) and CLI client to use USER_AGENT
- Update unit tests to reference centralized constant
- Pin GitHub Actions to commit SHAs for improved security and reproducibility
- Fix minor GitLab client bugs (return type, pipeline source support)
* Updated version-check.yml to used commit hashes
* Minor type fixes1 parent ee8b836 commit cc45ff4Copy full SHA for cc45ff4
11 files changed
+44-44Lines changed: 44 additions & 44 deletions
File tree
Expand file treeCollapse file tree
Open diff view settings
Filter options
- socketsecurity
- core
- scm
- tests/unit
Expand file treeCollapse file tree
Open diff view settings
Collapse file
-20Lines changed: 0 additions & 20 deletions
This file was deleted.
Collapse file
+1-1Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
6 | 6 | |
7 | 7 | |
8 | 8 | |
9 | | - |
| 9 | + |
10 | 10 | |
11 | 11 | |
12 | 12 | |
|
Collapse file
socketsecurity/__init__.py
Copy file name to clipboard+2-1Lines changed: 2 additions & 1 deletion
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
1 | 1 | |
2 | | - |
| 2 | + |
| 3 | + |
Collapse file
socketsecurity/core/__init__.py
Copy file name to clipboardExpand all lines: socketsecurity/core/__init__.py+2-1Lines changed: 2 additions & 1 deletion
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
18 | 18 | |
19 | 19 | |
20 | 20 | |
21 | | - |
| 21 | + |
22 | 22 | |
23 | 23 | |
24 | 24 | |
| ||
39 | 39 | |
40 | 40 | |
41 | 41 | |
| 42 | + |
42 | 43 | |
43 | 44 | |
44 | 45 | |
|
Collapse file
socketsecurity/core/cli_client.py
Copy file name to clipboardExpand all lines: socketsecurity/core/cli_client.py+2-1Lines changed: 2 additions & 1 deletion
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
4 | 4 | |
5 | 5 | |
6 | 6 | |
| 7 | + |
7 | 8 | |
8 | 9 | |
9 | 10 | |
| ||
31 | 32 | |
32 | 33 | |
33 | 34 | |
34 | | - |
| 35 | + |
35 | 36 | |
36 | 37 | |
37 | 38 | |
|
Collapse file
socketsecurity/core/resource_utils.py
Copy file name to clipboardExpand all lines: socketsecurity/core/resource_utils.py+21-8Lines changed: 21 additions & 8 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
1 | 1 | |
2 | 2 | |
3 | 3 | |
4 | | - |
5 | 4 | |
| 5 | + |
| 6 | + |
| 7 | + |
| 8 | + |
| 9 | + |
| 10 | + |
| 11 | + |
| 12 | + |
| 13 | + |
| 14 | + |
6 | 15 | |
7 | 16 | |
8 | 17 | |
9 | 18 | |
10 | 19 | |
11 | 20 | |
12 | 21 | |
13 | | - |
| 22 | + |
14 | 23 | |
15 | | - |
| 24 | + |
16 | 25 | |
| 26 | + |
| 27 | + |
| 28 | + |
| 29 | + |
17 | 30 | |
18 | 31 | |
19 | 32 | |
| ||
25 | 38 | |
26 | 39 | |
27 | 40 | |
28 | | - |
| 41 | + |
29 | 42 | |
30 | 43 | |
31 | 44 | |
32 | | - |
| 45 | + |
33 | 46 | |
34 | 47 | |
35 | 48 | |
36 | 49 | |
37 | | - |
| 50 | + |
38 | 51 | |
39 | 52 | |
40 | 53 | |
41 | 54 | |
42 | 55 | |
43 | 56 | |
44 | | - |
| 57 | + |
45 | 58 | |
46 | 59 | |
47 | | - |
| 60 | + |
48 | 61 | |
49 | 62 | |
50 | 63 | |
|
Collapse file
socketsecurity/core/scm/client.py
Copy file name to clipboardExpand all lines: socketsecurity/core/scm/client.py+3-2Lines changed: 3 additions & 2 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
1 | 1 | |
2 | 2 | |
3 | 3 | |
| 4 | + |
4 | 5 | |
5 | 6 | |
6 | 7 | |
| ||
28 | 29 | |
29 | 30 | |
30 | 31 | |
31 | | - |
| 32 | + |
32 | 33 | |
33 | 34 | |
34 | 35 | |
| ||
52 | 53 | |
53 | 54 | |
54 | 55 | |
55 | | - |
| 56 | + |
56 | 57 | |
57 | 58 | |
58 | 59 | |
|
Collapse file
socketsecurity/core/scm/github.py
Copy file name to clipboardExpand all lines: socketsecurity/core/scm/github.py+2-1Lines changed: 2 additions & 1 deletion
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
5 | 5 | |
6 | 6 | |
7 | 7 | |
| 8 | + |
8 | 9 | |
9 | 10 | |
10 | 11 | |
| ||
83 | 84 | |
84 | 85 | |
85 | 86 | |
86 | | - |
| 87 | + |
87 | 88 | |
88 | 89 | |
89 | 90 | |
|
Collapse file
socketsecurity/core/scm/gitlab.py
Copy file name to clipboardExpand all lines: socketsecurity/core/scm/gitlab.py+8-7Lines changed: 8 additions & 7 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
3 | 3 | |
4 | 4 | |
5 | 5 | |
| 6 | + |
6 | 7 | |
7 | 8 | |
8 | 9 | |
| ||
79 | 80 | |
80 | 81 | |
81 | 82 | |
82 | | - |
| 83 | + |
83 | 84 | |
84 | 85 | |
85 | 86 | |
| ||
150 | 151 | |
151 | 152 | |
152 | 153 | |
153 | | - |
| 154 | + |
154 | 155 | |
155 | 156 | |
156 | 157 | |
| ||
171 | 172 | |
172 | 173 | |
173 | 174 | |
174 | | - |
| 175 | + |
175 | 176 | |
176 | 177 | |
177 | 178 | |
178 | | - |
| 179 | + |
179 | 180 | |
180 | 181 | |
181 | 182 | |
| ||
234 | 235 | |
235 | 236 | |
236 | 237 | |
237 | | - |
238 | | - |
| 238 | + |
| 239 | + |
239 | 240 | |
240 | 241 | |
241 | 242 | |
| ||
256 | 257 | |
257 | 258 | |
258 | 259 | |
259 | | - |
| 260 | + |
260 | 261 | |
261 | 262 | |
262 | 263 | |
|
Collapse file
socketsecurity/socketcli.py
Copy file name to clipboardExpand all lines: socketsecurity/socketcli.py+1-1Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
114 | 114 | |
115 | 115 | |
116 | 116 | |
117 | | - |
| 117 | + |
118 | 118 | |
119 | 119 | |
120 | 120 | |
|
0 commit comments