File tree Expand file tree Collapse file tree 5 files changed +7
-19
lines changed Expand file tree Collapse file tree 5 files changed +7
-19
lines changed Original file line number Diff line number Diff line change @@ -6,7 +6,7 @@ build-backend = "hatchling.build"
6
6
7
7
[project ]
8
8
name = " socketsecurity"
9
- version = " 2.1.24 "
9
+ version = " 2.1.26 "
10
10
requires-python = " >= 3.10"
11
11
license = {"file" = " LICENSE" }
12
12
dependencies = [
Original file line number Diff line number Diff line change 1
1
__author__ = 'socket.dev'
2
- __version__ = '2.1.24 '
2
+ __version__ = '2.1.26 '
Original file line number Diff line number Diff line change 2
2
# This pipeline runs Socket Security scans on every commit to any branch
3
3
# The CLI automatically detects most information from the git repository
4
4
5
- image : python:3.12-slim
5
+ image : socketdev/cli:latest
6
6
7
7
definitions :
8
8
steps :
9
9
- step : &socket-scan
10
10
name : Socket Security Scan
11
- caches :
12
- - pip
13
11
script :
14
- - pip install --upgrade pip
15
- - pip install socketsecurity
16
12
# Run Socket CLI with minimal required parameters
17
13
# The CLI automatically detects:
18
14
# - Repository name from git
Original file line number Diff line number Diff line change @@ -26,19 +26,15 @@ jobs:
26
26
pull-requests : write
27
27
runs-on : ubuntu-latest
28
28
29
+ # Option 1: Use the official Socket CLI container (faster, more reliable)
30
+ container : socketdev/cli:latest
31
+
29
32
steps :
30
33
- uses : actions/checkout@v4
31
34
with :
32
35
# For PRs, fetch one additional commit for proper diff analysis
33
36
fetch-depth : ${{ github.event_name == 'pull_request' && 2 || 0 }}
34
37
35
- - uses : actions/setup-python@v5
36
- with :
37
- python-version : ' 3.12'
38
-
39
- - name : Install Socket CLI
40
- run : pip install socketsecurity --upgrade
41
-
42
38
- name : Run Socket Security Scan
43
39
env :
44
40
SOCKET_SECURITY_API_KEY : ${{ secrets.SOCKET_SECURITY_API_KEY }}
Original file line number Diff line number Diff line change 7
7
8
8
socket-security :
9
9
stage : security-scan
10
- image : python:3.12-slim
10
+ image : socketdev/cli:latest
11
11
12
12
# Run on all branches and merge requests
13
13
rules :
@@ -23,10 +23,6 @@ socket-security:
23
23
paths :
24
24
- .cache/pip/
25
25
26
- before_script :
27
- - pip install --upgrade pip
28
- - pip install socketsecurity
29
-
30
26
script :
31
27
# Run Socket CLI with minimal required parameters
32
28
# The CLI automatically detects:
You can’t perform that action at this time.
0 commit comments