@networkpro/web 1.23.0 → 1.24.1

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.
@@ -38,7 +38,7 @@ jobs:
38
38
  - name: Set up Node.js
39
39
  uses: actions/setup-node@v6
40
40
  with:
41
- node-version: 22
41
+ node-version: 24
42
42
  cache: npm
43
43
  cache-dependency-path: package-lock.json
44
44
 
@@ -123,7 +123,7 @@ jobs:
123
123
  - name: Set up Node.js for npmjs
124
124
  uses: actions/setup-node@v6
125
125
  with:
126
- node-version: 22
126
+ node-version: 24
127
127
  registry-url: https://registry.npmjs.org/
128
128
  cache: npm
129
129
  cache-dependency-path: package-lock.json
@@ -184,7 +184,7 @@ jobs:
184
184
  - name: Set up Node.js for GPR
185
185
  uses: actions/setup-node@v6
186
186
  with:
187
- node-version: 22
187
+ node-version: 24
188
188
  registry-url: https://npm.pkg.github.com/
189
189
  cache: npm
190
190
  cache-dependency-path: package-lock.json
@@ -44,7 +44,7 @@ jobs:
44
44
  - name: Setup Node.js
45
45
  uses: actions/setup-node@v6
46
46
  with:
47
- node-version: 22
47
+ node-version: 24
48
48
  cache: npm
49
49
  cache-dependency-path: package-lock.json
50
50
 
@@ -25,7 +25,7 @@ jobs:
25
25
  - name: Set up Node.js
26
26
  uses: actions/setup-node@v6
27
27
  with:
28
- node-version: 22
28
+ node-version: 24
29
29
 
30
30
  - name: Install dependencies
31
31
  run: npm ci
@@ -36,7 +36,7 @@ jobs:
36
36
  - name: Set up Node.js
37
37
  uses: actions/setup-node@v6
38
38
  with:
39
- node-version: 22
39
+ node-version: 24
40
40
  cache: npm
41
41
  cache-dependency-path: package-lock.json
42
42
 
@@ -121,7 +121,7 @@ jobs:
121
121
  - name: Set up Node.js for npmjs
122
122
  uses: actions/setup-node@v6
123
123
  with:
124
- node-version: 22
124
+ node-version: 24
125
125
  registry-url: https://registry.npmjs.org/
126
126
  cache: npm
127
127
  cache-dependency-path: package-lock.json
@@ -182,7 +182,7 @@ jobs:
182
182
  - name: Set up Node.js for GPR
183
183
  uses: actions/setup-node@v6
184
184
  with:
185
- node-version: 22
185
+ node-version: 24
186
186
  registry-url: https://npm.pkg.github.com/
187
187
  cache: npm
188
188
  cache-dependency-path: package-lock.json
@@ -0,0 +1,113 @@
1
+ # .github/workflows/secret-scan.yml
2
+ #
3
+ # Copyright © 2025 Network Pro Strategies (Network Pro™)
4
+ # SPDX-License-Identifier: CC-BY-4.0 OR GPL-3.0-or-later
5
+ # This file is part of Network Pro
6
+
7
+ name: Secret Scan (Gitleaks)
8
+
9
+ on:
10
+ pull_request:
11
+ schedule:
12
+ - cron: '0 8 * * *' # nightly scan at 8 AM UTC
13
+ workflow_dispatch:
14
+
15
+ jobs:
16
+ gitleaks-scan:
17
+ runs-on: ubuntu-24.04
18
+ permissions:
19
+ contents: read
20
+ security-events: write
21
+ issues: write
22
+ steps:
23
+ # ---------------------------------------------------------------------
24
+ # Checkout the full repo history (needed for Gitleaks to scan all commits)
25
+ # ---------------------------------------------------------------------
26
+ - uses: actions/checkout@v5
27
+ with:
28
+ fetch-depth: 0
29
+
30
+ # ---------------------------------------------------------------------
31
+ # Run Gitleaks scan
32
+ # Uses org license key (safe because GitHub never passes secrets to forks)
33
+ # ---------------------------------------------------------------------
34
+ - name: Run Gitleaks scan
35
+ id: gitleaks
36
+ uses: gitleaks/gitleaks-action@v2
37
+ env:
38
+ GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
39
+ GITLEAKS_LICENSE: ${{ secrets.GITLEAKS_LICENSE }}
40
+ GITLEAKS_REPORT_PATH: gitleaks-report.json
41
+
42
+ # ---------------------------------------------------------------------
43
+ # LAYER 2: Secret-handling / fork guard
44
+ # Upload artifact only if workflow runs in trusted context
45
+ # (either not a PR, or a PR from the same repo)
46
+ # ---------------------------------------------------------------------
47
+ - name: Upload Gitleaks Report
48
+ if: always() && (github.event.pull_request.head.repo.full_name == github.repository || github.event_name != 'pull_request')
49
+ uses: actions/upload-artifact@v4
50
+ with:
51
+ name: gitleaks-report
52
+ path: gitleaks-report.json
53
+
54
+ # ---------------------------------------------------------------------
55
+ # LAYER 1: Output redaction
56
+ # Public-safe summary – shows only secret descriptions, hides file paths.
57
+ # ---------------------------------------------------------------------
58
+ - name: Post Gitleaks summary
59
+ if: always()
60
+ run: |
61
+ echo "### 🧩 Gitleaks Scan Summary" >> $GITHUB_STEP_SUMMARY
62
+
63
+ # If the JSON report doesn't exist, that usually means no leaks were found.
64
+ if [ ! -f gitleaks-report.json ]; then
65
+ echo "✅ No leaks detected — Gitleaks did not generate a JSON report (expected behavior)." >> $GITHUB_STEP_SUMMARY
66
+ exit 0
67
+ fi
68
+
69
+ if [ -s gitleaks-report.json ]; then
70
+ count=$(jq '.findings | length' gitleaks-report.json)
71
+ if [ "$count" -gt 0 ]; then
72
+ echo "🚨 **$count potential secret$( [ "$count" -ne 1 ] && echo "s" ) detected!**" >> $GITHUB_STEP_SUMMARY
73
+ echo "" >> $GITHUB_STEP_SUMMARY
74
+ # 🔒 Redacted output: no file paths or secret values
75
+ jq -r '.findings[] | "- \(.Description) (at undisclosed path)"' gitleaks-report.json | head -n 10 >> $GITHUB_STEP_SUMMARY
76
+ echo "" >> $GITHUB_STEP_SUMMARY
77
+ echo "_Full report available in Artifacts section (maintainers only)._ " >> $GITHUB_STEP_SUMMARY
78
+ else
79
+ echo "✅ No secrets detected." >> $GITHUB_STEP_SUMMARY
80
+ fi
81
+ else
82
+ echo "⚠️ Report file exists but is empty." >> $GITHUB_STEP_SUMMARY
83
+ fi
84
+
85
+ # ---------------------------------------------------------------------
86
+ # LAYER 2: Secret-handling / fork guard
87
+ # Create issue only in trusted repo context (avoids using tokens on forks)
88
+ # ---------------------------------------------------------------------
89
+ - name: Create issue for detected secrets
90
+ if: failure() && (github.event.pull_request.head.repo.full_name == github.repository || github.event_name != 'pull_request')
91
+ uses: actions/github-script@v7
92
+ with:
93
+ github-token: ${{ secrets.GITHUB_TOKEN }}
94
+ script: |
95
+ const issueTitle = `🚨 Secret(s) detected in ${context.repo.repo}`;
96
+ const issueBody = `Gitleaks found potential secrets in commit ${context.sha}.\n\nCheck workflow logs and artifacts for details.`;
97
+ await github.rest.issues.create({
98
+ owner: context.repo.owner,
99
+ repo: context.repo.repo,
100
+ title: issueTitle,
101
+ body: issueBody,
102
+ labels: ['security', 'gitleaks']
103
+ });
104
+
105
+ # ---------------------------------------------------------------------
106
+ # LAYER 2: Secret-handling / fork guard
107
+ # Send ntfy alert only for trusted repo context.
108
+ # ---------------------------------------------------------------------
109
+ - name: Send ntfy notification
110
+ if: failure() && (github.event.pull_request.head.repo.full_name == github.repository || github.event_name != 'pull_request')
111
+ run: |
112
+ curl -d "🚨 Gitleaks found secrets in repo: $GITHUB_REPOSITORY on commit $GITHUB_SHA" \
113
+ https://ntfy.neteng.pro/${{ secrets.NTFY_TOPIC }}
@@ -46,7 +46,7 @@ jobs:
46
46
  - name: Set up Node.js
47
47
  uses: actions/setup-node@v6
48
48
  with:
49
- node-version: 22
49
+ node-version: 24
50
50
  cache: npm
51
51
  cache-dependency-path: package-lock.json
52
52
 
@@ -131,7 +131,7 @@ jobs:
131
131
  - name: Set up Node.js for npmjs
132
132
  uses: actions/setup-node@v6
133
133
  with:
134
- node-version: 22
134
+ node-version: 24
135
135
  registry-url: https://registry.npmjs.org/
136
136
  cache: npm
137
137
  cache-dependency-path: package-lock.json
@@ -192,7 +192,7 @@ jobs:
192
192
  - name: Set up Node.js for GPR
193
193
  uses: actions/setup-node@v6
194
194
  with:
195
- node-version: 22
195
+ node-version: 24
196
196
  registry-url: https://npm.pkg.github.com/
197
197
  cache: npm
198
198
  cache-dependency-path: package-lock.json
package/.lighthouserc.cjs CHANGED
@@ -9,7 +9,7 @@ This file is part of Network Pro.
9
9
  module.exports = {
10
10
  ci: {
11
11
  collect: {
12
- url: ['https://netwk.pro'],
12
+ url: ['https://audit.netwk.pro'],
13
13
  numberOfRuns: 1,
14
14
  settings: {
15
15
  onlyCategories: [
package/.node-version CHANGED
@@ -1 +1 @@
1
- 22.21.1
1
+ 24.11.0
package/.nvmrc CHANGED
@@ -1 +1 @@
1
- 22.21.1
1
+ 24.11.0
package/CHANGELOG.md CHANGED
@@ -22,6 +22,61 @@ This project attempts to follow [Keep a Changelog](https://keepachangelog.com/en
22
22
 
23
23
  ---
24
24
 
25
+ ## [1.24.1]
26
+
27
+ ### Changed
28
+
29
+ - Bumped project version to `v1.24.1`.
30
+ - Updated **GitLeaks workflow** (`.github/workflows/secret-scan.yml`):
31
+ - Reworked Gitleaks step to use official environment variables (`GITLEAKS_REPORT_PATH`, `GITLEAKS_LICENSE`) for compatibility with `gitleaks/gitleaks-action@v2`.
32
+ - Added explicit handling for runs with no detected secrets (skips JSON parsing when no report is generated).
33
+ - Improved summary step output with clear “No leaks detected” message and reduced false warnings.
34
+ - Ensured consistent artifact uploads and safer fork-handling conditions.
35
+ - Lighthouse now points to the new audit version of the site at [audit.netwk.pro](https://audit.netwk.pro).
36
+
37
+ ---
38
+
39
+ ## [1.24.0]
40
+
41
+ ### Added
42
+
43
+ - Introduced [GitLeaks](https://github.com/gitleaks/gitleaks-action) secret scan CI action as `.github/workflows/secret-scan.yml`.
44
+ - Introduced two-phase scan strategy:
45
+ - **Pull Request scans** to detect secrets before merge.
46
+ - **Nightly scheduled scans** (`cron: "0 4 * * *"`) for full-history coverage.
47
+ - Added **artifact upload** for the `gitleaks-report.json` file, allowing maintainers to download complete results from the Actions UI.
48
+ - Implemented **public-safe summary output** in `$GITHUB_STEP_SUMMARY`:
49
+ - Displays secret descriptions only.
50
+ - Redacts file paths and other sensitive details.
51
+ - Provides a concise, readable summary of findings.
52
+ - Added **GitHub Issue creation step** to automatically open a security issue when leaks are detected.
53
+ - Integrated optional **ntfy.sh notifications** for real-time alerting on secret leaks.
54
+ - Implemented **fork-safety guards** to prevent workflows triggered from untrusted forks from:
55
+ - Accessing organization secrets (license keys, ntfy topic).
56
+ - Uploading artifacts or creating issues.
57
+ - Added descriptive comments and logical layer separation:
58
+ - **Layer 1 – Output Redaction**
59
+ - **Layer 2 – Secret / Fork Handling**
60
+
61
+ ### Changed
62
+
63
+ - Bumped project version to `v1.23.1`.
64
+ - Updated `.node-version` and `.nvmrc` to utilize **Node.js** `24.11.0` (LTS).
65
+ - Updated CI workflows to utilize `node-version: 24`:
66
+ - `build-and-publish.yml`
67
+ - `lighthouse.yml`
68
+ - `meta-check.yml`
69
+ - `playwright.yml`
70
+ - `publish-test.yml`
71
+ - `templates/publish.template.yml`
72
+ - Updated dependencies:
73
+ - `@eslint/js` `^9.38.0` → `^9.39.0`
74
+ - `eslint` `^9.38.0` → `^9.39.0`
75
+ - `globals` `^16.4.0` → `^16.5.0`
76
+ - `posthog-js` `^1.282.0` → `^1.284.0`
77
+
78
+ ---
79
+
25
80
  ## [1.23.0] - 2025-10-30
26
81
 
27
82
  ### Documentation
@@ -1362,7 +1417,8 @@ This project attempts to follow [Keep a Changelog](https://keepachangelog.com/en
1362
1417
 
1363
1418
  <!-- Link references -->
1364
1419
 
1365
- [Unreleased]: https://github.com/netwk-pro/netwk-pro.github.io/compare/v1.23.0...HEAD
1420
+ [Unreleased]: https://github.com/netwk-pro/netwk-pro.github.io/compare/v1.24.0...HEAD
1421
+ [1.24.0]: https://github.com/netwk-pro/netwk-pro.github.io/releases/tag/v1.24.0
1366
1422
  [1.23.0]: https://github.com/netwk-pro/netwk-pro.github.io/releases/tag/v1.23.0
1367
1423
  [1.22.2]: https://github.com/netwk-pro/netwk-pro.github.io/releases/tag/v1.22.2
1368
1424
  [1.22.1]: https://github.com/netwk-pro/netwk-pro.github.io/releases/tag/v1.22.1
package/cspell.json CHANGED
@@ -69,6 +69,7 @@
69
69
  "prefs",
70
70
  "publickey",
71
71
  "reconsent",
72
+ "sarif",
72
73
  "serv",
73
74
  "shizuku",
74
75
  "SIEM",
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@networkpro/web",
3
3
  "private": false,
4
- "version": "1.23.0",
4
+ "version": "1.24.1",
5
5
  "description": "Locking Down Networks, Unlocking Confidence™ | Security, Networking, Privacy — Network Pro Strategies",
6
6
  "keywords": [
7
7
  "advisory",
@@ -79,13 +79,13 @@
79
79
  },
80
80
  "dependencies": {
81
81
  "dompurify": "^3.3.0",
82
- "posthog-js": "^1.282.0",
82
+ "posthog-js": "^1.284.0",
83
83
  "semver": "^7.7.3",
84
84
  "svelte": "5.43.2"
85
85
  },
86
86
  "devDependencies": {
87
87
  "@eslint/compat": "^1.4.1",
88
- "@eslint/js": "^9.38.0",
88
+ "@eslint/js": "^9.39.0",
89
89
  "@lhci/cli": "^0.15.1",
90
90
  "@playwright/test": "^1.56.1",
91
91
  "@sveltejs/adapter-vercel": "^6.1.1",
@@ -96,11 +96,11 @@
96
96
  "@vitest/coverage-v8": "3.2.4",
97
97
  "autoprefixer": "^10.4.21",
98
98
  "browserslist": "^4.27.0",
99
- "eslint": "^9.38.0",
99
+ "eslint": "^9.39.0",
100
100
  "eslint-config-prettier": "^10.1.8",
101
101
  "eslint-plugin-jsdoc": "^61.1.11",
102
102
  "eslint-plugin-svelte": "^3.13.0",
103
- "globals": "^16.4.0",
103
+ "globals": "^16.5.0",
104
104
  "jsdom": "26.1.0",
105
105
  "lightningcss": "^1.30.2",
106
106
  "markdownlint": "^0.39.0",