Skip to content

Commit 5c3bcf3

Browse files
committed
Simplify CI/CD and fix badges
- CodeQL: Removed Java-Kotlin analysis, now JavaScript-only - Dependabot: Simplified config, removed non-existent directories, reduced noise with weekly/monthly schedules and grouped updates - README: Fixed badges with branch=main param, removed PR-only badge
1 parent f8e61d0 commit 5c3bcf3

3 files changed

Lines changed: 42 additions & 279 deletions

File tree

.github/dependabot.yml

Lines changed: 32 additions & 229 deletions
Original file line numberDiff line numberDiff line change
@@ -1,292 +1,95 @@
11
# Dependabot Configuration
22
# =========================
3-
# Comprehensive dependency management for security and version updates
4-
# Documentation: https://docs.github.com/en/code-security/dependabot/dependabot-version-updates/configuration-options-for-the-dependabot.yml-file
3+
# Simplified dependency management focusing on core packages
4+
# Documentation: https://docs.github.com/en/code-security/dependabot
55

66
version: 2
77

8-
registries:
9-
# Add private registries here if needed
10-
# npm-npmjs:
11-
# type: npm-registry
12-
# url: https://registry.npmjs.org
13-
# token: ${{ secrets.NPM_TOKEN }}
14-
158
updates:
16-
# ==========================================================================
17-
# GitHub Actions - Keep CI/CD workflows secure and up-to-date
18-
# ==========================================================================
9+
# GitHub Actions - Keep CI/CD workflows up-to-date
1910
- package-ecosystem: "github-actions"
2011
directory: "/"
2112
schedule:
2213
interval: "weekly"
2314
day: "monday"
24-
time: "06:00"
25-
timezone: "America/New_York"
26-
open-pull-requests-limit: 10
15+
open-pull-requests-limit: 5
2716
labels:
2817
- "dependencies"
2918
- "github-actions"
30-
- "security/vulnerability"
3119
commit-message:
3220
prefix: "ci"
33-
include: "scope"
34-
reviewers:
35-
- "timothywarner-org"
3621
groups:
37-
# Group all GitHub Actions updates together
3822
github-actions:
3923
patterns:
4024
- "*"
41-
update-types:
42-
- "minor"
43-
- "patch"
4425

45-
# ==========================================================================
46-
# Root NPM Dependencies - Main project JavaScript/Node.js packages
47-
# ==========================================================================
26+
# NodeGoat - Node.js application
4827
- package-ecosystem: "npm"
49-
directory: "/"
28+
directory: "/NodeGoat"
5029
schedule:
51-
interval: "daily"
52-
time: "06:00"
53-
timezone: "America/New_York"
54-
open-pull-requests-limit: 15
30+
interval: "weekly"
31+
day: "wednesday"
32+
open-pull-requests-limit: 5
5533
labels:
5634
- "dependencies"
5735
- "javascript"
58-
- "security/vulnerability"
5936
commit-message:
60-
prefix: "deps"
61-
include: "scope"
62-
reviewers:
63-
- "timothywarner-org"
64-
# Ignore intentionally vulnerable packages in demo apps
37+
prefix: "deps(nodegoat)"
6538
ignore:
39+
# Avoid major version updates that might break demos
6640
- dependency-name: "*"
6741
update-types: ["version-update:semver-major"]
6842
groups:
69-
# Security-related packages - high priority
70-
security-packages:
71-
patterns:
72-
- "helmet*"
73-
- "express-rate-limit*"
74-
- "bcrypt*"
75-
- "jsonwebtoken*"
76-
- "passport*"
77-
- "cors"
78-
- "csurf"
79-
- "xss*"
80-
- "sanitize*"
81-
- "validator*"
82-
update-types:
83-
- "minor"
84-
- "patch"
85-
# Testing frameworks
86-
testing:
87-
patterns:
88-
- "jest*"
89-
- "mocha*"
90-
- "chai*"
91-
- "supertest*"
92-
- "cypress*"
93-
- "@testing-library/*"
94-
update-types:
95-
- "minor"
96-
- "patch"
97-
# Linting and code quality
98-
linting:
99-
patterns:
100-
- "eslint*"
101-
- "prettier*"
102-
- "@typescript-eslint/*"
103-
- "eslint-plugin-*"
104-
update-types:
105-
- "minor"
106-
- "patch"
107-
# Development dependencies
108-
dev-dependencies:
43+
npm-minor-patch:
10944
patterns:
110-
- "nodemon*"
111-
- "typescript*"
112-
- "ts-node*"
113-
- "@types/*"
45+
- "*"
11446
update-types:
11547
- "minor"
11648
- "patch"
11749

118-
# ==========================================================================
119-
# NodeGoat - Intentionally Vulnerable Node.js Application
120-
# ==========================================================================
121-
- package-ecosystem: "npm"
122-
directory: "/NodeGoat"
123-
schedule:
124-
interval: "weekly"
125-
day: "wednesday"
126-
time: "06:00"
127-
timezone: "America/New_York"
128-
open-pull-requests-limit: 5
129-
labels:
130-
- "dependencies"
131-
- "javascript"
132-
- "nodegoat"
133-
- "lesson-01"
134-
commit-message:
135-
prefix: "deps(nodegoat)"
136-
include: "scope"
137-
# Only update non-vulnerable demo dependencies
138-
# Some vulnerabilities are intentional for training
139-
allow:
140-
- dependency-type: "development"
141-
- dependency-type: "production"
142-
ignore:
143-
# Intentionally keeping some packages at vulnerable versions for demos
144-
- dependency-name: "marked"
145-
versions: ["< 4.0.0"]
146-
- dependency-name: "mongoose"
147-
versions: ["< 6.0.0"]
148-
149-
# ==========================================================================
150-
# WebGoat - Intentionally Vulnerable Java Application
151-
# ==========================================================================
50+
# WebGoat - Java/Maven application
15251
- package-ecosystem: "maven"
15352
directory: "/WebGoat"
15453
schedule:
15554
interval: "weekly"
15655
day: "wednesday"
157-
time: "06:00"
158-
timezone: "America/New_York"
15956
open-pull-requests-limit: 5
16057
labels:
16158
- "dependencies"
16259
- "java"
163-
- "webgoat"
164-
- "maven"
16560
commit-message:
16661
prefix: "deps(webgoat)"
167-
include: "scope"
168-
reviewers:
169-
- "timothywarner-org"
170-
171-
# ==========================================================================
172-
# Lesson 01 - Vulnerability Detection Demos
173-
# ==========================================================================
174-
- package-ecosystem: "npm"
175-
directory: "/lesson-01/demo-03-xss/secure-react-app"
176-
schedule:
177-
interval: "weekly"
178-
day: "thursday"
179-
time: "06:00"
180-
timezone: "America/New_York"
181-
open-pull-requests-limit: 3
182-
labels:
183-
- "dependencies"
184-
- "javascript"
185-
- "lesson-01"
186-
- "security/xss"
187-
commit-message:
188-
prefix: "deps(lesson-01)"
189-
190-
- package-ecosystem: "npm"
191-
directory: "/lesson-01/demo-04-custom-scanners/scanner"
192-
schedule:
193-
interval: "weekly"
194-
day: "thursday"
195-
time: "06:00"
196-
timezone: "America/New_York"
197-
open-pull-requests-limit: 3
198-
labels:
199-
- "dependencies"
200-
- "javascript"
201-
- "lesson-01"
202-
- "tool/sast"
203-
commit-message:
204-
prefix: "deps(lesson-01)"
205-
206-
- package-ecosystem: "npm"
207-
directory: "/lesson-01/demo-04-custom-scanners/idor-app"
208-
schedule:
209-
interval: "weekly"
210-
day: "thursday"
211-
time: "06:00"
212-
timezone: "America/New_York"
213-
open-pull-requests-limit: 3
214-
labels:
215-
- "dependencies"
216-
- "javascript"
217-
- "lesson-01"
218-
commit-message:
219-
prefix: "deps(lesson-01)"
62+
ignore:
63+
# Avoid major version updates
64+
- dependency-name: "*"
65+
update-types: ["version-update:semver-major"]
66+
groups:
67+
maven-minor-patch:
68+
patterns:
69+
- "*"
70+
update-types:
71+
- "minor"
72+
- "patch"
22073

221-
# ==========================================================================
222-
# Docker - Container image updates
223-
# ==========================================================================
74+
# Docker images
22475
- package-ecosystem: "docker"
22576
directory: "/NodeGoat"
22677
schedule:
227-
interval: "weekly"
228-
day: "friday"
229-
time: "06:00"
230-
timezone: "America/New_York"
231-
open-pull-requests-limit: 3
78+
interval: "monthly"
79+
open-pull-requests-limit: 2
23280
labels:
23381
- "dependencies"
23482
- "docker"
235-
- "security/vulnerability"
23683
commit-message:
237-
prefix: "docker"
238-
include: "scope"
84+
prefix: "docker(nodegoat)"
23985

24086
- package-ecosystem: "docker"
24187
directory: "/WebGoat"
24288
schedule:
243-
interval: "weekly"
244-
day: "friday"
245-
time: "06:00"
246-
timezone: "America/New_York"
247-
open-pull-requests-limit: 3
89+
interval: "monthly"
90+
open-pull-requests-limit: 2
24891
labels:
24992
- "dependencies"
25093
- "docker"
251-
- "security/vulnerability"
252-
commit-message:
253-
prefix: "docker"
254-
include: "scope"
255-
256-
# ==========================================================================
257-
# Terraform - Infrastructure as Code updates
258-
# ==========================================================================
259-
- package-ecosystem: "terraform"
260-
directory: "/lesson-02/demo-04-zero-trust/terraform"
261-
schedule:
262-
interval: "weekly"
263-
day: "friday"
264-
time: "06:00"
265-
timezone: "America/New_York"
266-
open-pull-requests-limit: 3
267-
labels:
268-
- "dependencies"
269-
- "terraform"
270-
- "tool/terraform"
271-
- "lesson-02"
272-
commit-message:
273-
prefix: "terraform"
274-
include: "scope"
275-
276-
- package-ecosystem: "terraform"
277-
directory: "/lesson-05/demo-01-iac-templates/hardened"
278-
schedule:
279-
interval: "weekly"
280-
day: "friday"
281-
time: "06:00"
282-
timezone: "America/New_York"
283-
open-pull-requests-limit: 3
284-
labels:
285-
- "dependencies"
286-
- "terraform"
287-
- "tool/terraform"
288-
- "lesson-05"
289-
- "security/compliance"
29094
commit-message:
291-
prefix: "terraform"
292-
include: "scope"
95+
prefix: "docker(webgoat)"

0 commit comments

Comments
 (0)