Skip to content

Commit ba9023b

Browse files
authored
Doug/improve default sast ruleset (#13)
* Updated rulesets to reduce false positives * Updated installation directions
1 parent 1ff5060 commit ba9023b

27 files changed

+2575
-850
lines changed

.gitignore

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,4 +101,6 @@ logs/
101101
*.log
102102

103103
.python-version
104-
.socket.fact.json
104+
.socket.fact.json
105+
106+
custom_rules/

.gitmodules

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,3 +25,9 @@
2525
[submodule "app_tests/scala-woof"]
2626
path = app_tests/scala-woof
2727
url = https://github.com/snyk/scala-woof.git
28+
[submodule "app_tests/govwa"]
29+
path = app_tests/govwa
30+
url = https://github.com/0c34/govwa
31+
[submodule "app_tests/play-webgoat"]
32+
path = app_tests/play-webgoat
33+
url = https://github.com/playframework/play-webgoat

README.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ jobs:
2727
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
2828

2929
- name: Run Socket Basics
30-
uses: SocketDev/[email protected].21
30+
uses: SocketDev/[email protected].23
3131
env:
3232
GITHUB_PR_NUMBER: ${{ github.event.pull_request.number || github.event.issue.number }}
3333
with:
@@ -112,7 +112,7 @@ Configure scanning policies, notification channels, and rule sets for your entir
112112

113113
**Dashboard-Configured (Enterprise):**
114114
```yaml
115-
- uses: SocketDev/[email protected].21
115+
- uses: SocketDev/[email protected].23
116116
env:
117117
GITHUB_PR_NUMBER: ${{ github.event.pull_request.number || github.event.issue.number }}
118118
with:
@@ -123,7 +123,7 @@ Configure scanning policies, notification channels, and rule sets for your entir
123123

124124
**CLI-Configured:**
125125
```yaml
126-
- uses: SocketDev/[email protected].21
126+
- uses: SocketDev/[email protected].23
127127
env:
128128
GITHUB_PR_NUMBER: ${{ github.event.pull_request.number || github.event.issue.number }}
129129
with:
@@ -139,10 +139,10 @@ Configure scanning policies, notification channels, and rule sets for your entir
139139

140140
```bash
141141
# Build with version tag
142-
docker build -t socketdev/socket-basics:1.0.21 .
142+
docker build -t socketdev/socket-basics:1.0.23 .
143143
144144
# Run scan
145-
docker run --rm -v "$PWD:/workspace" socketdev/socket-basics:1.0.21 \
145+
docker run --rm -v "$PWD:/workspace" socketdev/socket-basics:1.0.23 \
146146
--workspace /workspace \
147147
--python-sast-enabled \
148148
--secret-scanning-enabled \

app_tests/govwa

Submodule govwa added at 4058f79

app_tests/play-webgoat

Submodule play-webgoat added at ac935d8

docs/github-action.md

Lines changed: 19 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ jobs:
3838
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
3939

4040
- name: Run Socket Basics
41-
uses: SocketDev/[email protected].21
41+
uses: SocketDev/[email protected].23
4242
env:
4343
GITHUB_PR_NUMBER: ${{ github.event.pull_request.number || github.event.issue.number }}
4444
with:
@@ -78,7 +78,7 @@ Include these in your workflow's `jobs.<job_id>.permissions` section.
7878

7979
**SAST (Static Analysis):**
8080
```yaml
81-
- uses: SocketDev/[email protected].21
81+
- uses: SocketDev/[email protected].23
8282
with:
8383
github_token: ${{ secrets.GITHUB_TOKEN }}
8484
# Enable SAST for specific languages
@@ -92,7 +92,7 @@ Include these in your workflow's `jobs.<job_id>.permissions` section.
9292

9393
**Secret Scanning:**
9494
```yaml
95-
- uses: SocketDev/[email protected].21
95+
- uses: SocketDev/[email protected].23
9696
with:
9797
github_token: ${{ secrets.GITHUB_TOKEN }}
9898
secret_scanning_enabled: 'true'
@@ -104,7 +104,7 @@ Include these in your workflow's `jobs.<job_id>.permissions` section.
104104

105105
**Container Scanning:**
106106
```yaml
107-
- uses: SocketDev/[email protected].21
107+
- uses: SocketDev/[email protected].23
108108
with:
109109
github_token: ${{ secrets.GITHUB_TOKEN }}
110110
# Scan Docker images (auto-enables container scanning)
@@ -115,7 +115,7 @@ Include these in your workflow's `jobs.<job_id>.permissions` section.
115115

116116
**Socket Tier 1 Reachability:**
117117
```yaml
118-
- uses: SocketDev/[email protected].21
118+
- uses: SocketDev/[email protected].23
119119
with:
120120
github_token: ${{ secrets.GITHUB_TOKEN }}
121121
socket_tier_1_enabled: 'true'
@@ -124,7 +124,7 @@ Include these in your workflow's `jobs.<job_id>.permissions` section.
124124
### Output Configuration
125125

126126
```yaml
127-
- uses: SocketDev/[email protected].21
127+
- uses: SocketDev/[email protected].23
128128
with:
129129
github_token: ${{ secrets.GITHUB_TOKEN }}
130130
python_sast_enabled: 'true'
@@ -154,7 +154,7 @@ Configure Socket Basics centrally from the [Socket Dashboard](https://socket.dev
154154

155155
**Enable in workflow:**
156156
```yaml
157-
- uses: SocketDev/[email protected].21
157+
- uses: SocketDev/[email protected].23
158158
env:
159159
GITHUB_PR_NUMBER: ${{ github.event.pull_request.number || github.event.issue.number }}
160160
with:
@@ -166,7 +166,7 @@ Configure Socket Basics centrally from the [Socket Dashboard](https://socket.dev
166166

167167
> **Note:** You can also pass credentials using environment variables instead of the `with:` section:
168168
> ```yaml
169-
> - uses: SocketDev/[email protected].21
169+
> - uses: SocketDev/[email protected].23
170170
> env:
171171
> SOCKET_SECURITY_API_KEY: ${{ secrets.SOCKET_SECURITY_API_KEY }}
172172
> with:
@@ -184,7 +184,7 @@ All notification integrations require Socket Enterprise.
184184

185185
**Slack Notifications:**
186186
```yaml
187-
- uses: SocketDev/[email protected].21
187+
- uses: SocketDev/[email protected].23
188188
with:
189189
github_token: ${{ secrets.GITHUB_TOKEN }}
190190
socket_org: ${{ secrets.SOCKET_ORG }}
@@ -196,7 +196,7 @@ All notification integrations require Socket Enterprise.
196196

197197
**Jira Issue Creation:**
198198
```yaml
199-
- uses: SocketDev/[email protected].21
199+
- uses: SocketDev/[email protected].23
200200
with:
201201
github_token: ${{ secrets.GITHUB_TOKEN }}
202202
socket_org: ${{ secrets.SOCKET_ORG }}
@@ -211,7 +211,7 @@ All notification integrations require Socket Enterprise.
211211

212212
**Microsoft Teams:**
213213
```yaml
214-
- uses: SocketDev/[email protected].21
214+
- uses: SocketDev/[email protected].23
215215
with:
216216
github_token: ${{ secrets.GITHUB_TOKEN }}
217217
socket_org: ${{ secrets.SOCKET_ORG }}
@@ -223,7 +223,7 @@ All notification integrations require Socket Enterprise.
223223

224224
**Generic Webhook:**
225225
```yaml
226-
- uses: SocketDev/[email protected].21
226+
- uses: SocketDev/[email protected].23
227227
with:
228228
github_token: ${{ secrets.GITHUB_TOKEN }}
229229
socket_org: ${{ secrets.SOCKET_ORG }}
@@ -235,7 +235,7 @@ All notification integrations require Socket Enterprise.
235235

236236
**SIEM Integration:**
237237
```yaml
238-
- uses: SocketDev/[email protected].21
238+
- uses: SocketDev/[email protected].23
239239
with:
240240
github_token: ${{ secrets.GITHUB_TOKEN }}
241241
socket_org: ${{ secrets.SOCKET_ORG }}
@@ -271,7 +271,7 @@ jobs:
271271
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
272272
273273
- name: Run Socket Basics
274-
uses: SocketDev/[email protected].21
274+
uses: SocketDev/[email protected].23
275275
env:
276276
GITHUB_PR_NUMBER: ${{ github.event.pull_request.number || github.event.issue.number }}
277277
with:
@@ -317,7 +317,7 @@ jobs:
317317
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
318318
319319
- name: Run Full Security Scan
320-
uses: SocketDev/[email protected].21
320+
uses: SocketDev/[email protected].23
321321
env:
322322
GITHUB_PR_NUMBER: ${{ github.event.pull_request.number || github.event.issue.number }}
323323
with:
@@ -368,10 +368,10 @@ jobs:
368368
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
369369
370370
- name: Build Docker Image
371-
run: docker build -t myapp:1.0.21:${{ github.sha }} .
371+
run: docker build -t myapp:1.0.23:${{ github.sha }} .
372372
373373
- name: Scan Container
374-
uses: SocketDev/[email protected].21
374+
uses: SocketDev/[email protected].23
375375
env:
376376
GITHUB_PR_NUMBER: ${{ github.event.pull_request.number || github.event.issue.number }}
377377
with:
@@ -404,7 +404,7 @@ jobs:
404404
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
405405
406406
- name: Run Socket Basics
407-
uses: SocketDev/[email protected].21
407+
uses: SocketDev/[email protected].23
408408
env:
409409
GITHUB_PR_NUMBER: ${{ github.event.pull_request.number || github.event.issue.number }}
410410
with:
@@ -497,7 +497,7 @@ env:
497497
```yaml
498498
steps:
499499
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 - Must be first
500-
- uses: SocketDev/[email protected].21
500+
- uses: SocketDev/[email protected].23
501501
```
502502

503503
### PR Comments Not Appearing

0 commit comments

Comments
 (0)