Skip to content

Commit 8fd6f04

Browse files
authored
chore: release prep for v1.25.8 (#159)
1 parent c2910d6 commit 8fd6f04

File tree

5 files changed

+88
-35
lines changed

5 files changed

+88
-35
lines changed
Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
# .github/workflows/prevent-audit-merge.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: Prevent audit merges into master
8+
9+
on:
10+
pull_request:
11+
branches: [master]
12+
13+
permissions:
14+
contents: read
15+
16+
jobs:
17+
check-branch:
18+
runs-on: ubuntu-24.04
19+
steps:
20+
- name: Fail if source is audit-netlify
21+
run: |
22+
SOURCE_BRANCH="${{ github.event.pull_request.head.ref }}"
23+
echo "🔍 Checking source branch: $SOURCE_BRANCH"
24+
if [[ "$SOURCE_BRANCH" == "audit-netlify" ]]; then
25+
echo "❌ Merge from 'audit-netlify' to 'master' is prohibited."
26+
exit 1
27+
fi

.stylelintignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,9 @@
44
# SPDX-License-Identifier: CC-BY-4.0 OR GPL-3.0-or-later
55
# This file is part of Network Pro.
66

7+
# Netlify
8+
.netlify
9+
710
# Report files and test results
811
playwright-report
912
test-results

CHANGELOG.md

Lines changed: 39 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,43 @@ This project attempts to follow [Keep a Changelog](https://keepachangelog.com/en
2222

2323
---
2424

25+
## [1.25.8] - 2025-11-11
26+
27+
### Added
28+
29+
- 🔐 **Branch protection rules** on `master`:
30+
- Enforced pull requests for all changes
31+
- Blocked force pushes
32+
- Linear history requirement
33+
- 🚫 **CI workflow to prevent merges from `audit-netlify` to `master`**:
34+
- PRs originating from `audit-netlify` targeting `master` are automatically rejected
35+
- Triggered on `pull_request` events
36+
- Uses `github.event.pull_request.head.ref` for precise branch detection
37+
- 🚀 **Netlify CI deployment** for audit-only branch:
38+
- Workflow `.github/workflows/deploy-audit-netlify.yml` added
39+
- Deploys `audit-netlify` to a separate Netlify site
40+
- Uses environmental variables to trigger `vite build --mode audit`
41+
- 🌐 **`hooks.server.js` CSP hardening** for audit deployments:
42+
- Probely scanner detection based on UA/IP added via `isProbelyScanner()`
43+
- Audit-specific CSP disables analytics and CSP reporting endpoints
44+
- Logs detailed CSP info when in `isAudit` or `isDebug` modes
45+
- 🛡️ Middleware improvements:
46+
- User-agent/IP fingerprinting for Probely DAST
47+
- Added logging for audit-mode scanner matches
48+
- 🧪 Support for per-environment `.env` files (e.g. `.env.audit`)
49+
- 🔄 Git helper scripts:
50+
- Added bash script to sync `audit-netlify` with latest `master`
51+
- Supports merge conflict resolution via VS Code diff viewer
52+
53+
### Changed
54+
55+
- Updated `.stylelintignore` to exclude `.netlify` directory
56+
- Updated `lint:md` script to exclude the `build/` and `.netlify/` directories
57+
- Refined `svelte.config.js` to support alternate build targets (Vercel → Netlify via adapter switch)
58+
- Audit builds now use isolated `.env` config and a separate Netlify site token
59+
60+
---
61+
2562
## [1.25.7] - 2025-11-11
2663

2764
### Added
@@ -1770,7 +1807,8 @@ This enables analytics filtering and CSP hardening for the audit environment.
17701807

17711808
<!-- Link references -->
17721809

1773-
[Unreleased]: https://github.com/netwk-pro/netwk-pro.github.io/compare/v1.25.7...HEAD
1810+
[Unreleased]: https://github.com/netwk-pro/netwk-pro.github.io/compare/v1.25.8...HEAD
1811+
[1.25.8]: https://github.com/netwk-pro/netwk-pro.github.io/releases/tag/v1.25.8
17741812
[1.25.7]: https://github.com/netwk-pro/netwk-pro.github.io/releases/tag/v1.25.7
17751813
[1.25.6]: https://github.com/netwk-pro/netwk-pro.github.io/releases/tag/v1.25.6
17761814
[1.25.5]: https://github.com/netwk-pro/netwk-pro.github.io/releases/tag/v1.25.5

package-lock.json

Lines changed: 17 additions & 32 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "@networkpro/web",
33
"private": false,
4-
"version": "1.25.7",
4+
"version": "1.25.8",
55
"description": "Locking Down Networks, Unlocking Confidence™ | Security, Networking, Privacy — Network Pro Strategies",
66
"keywords": [
77
"advisory",
@@ -70,7 +70,7 @@
7070
"lint:fix": "eslint . --ext .js,.cjs,.mjs,.svelte --fix",
7171
"lint:jsdoc": "eslint . --ext .js,.cjs,.mjs,.svelte --max-warnings=0",
7272
"lint:css": "stylelint \"**/*.{css,svelte}\" --ignore-path .stylelintignore",
73-
"lint:md": "npx markdownlint-cli2 \"**/*.{md,markdown}\" \"#node_modules/**\" \"#playwright-report/**\" \"#test-results/**\"",
73+
"lint:md": "npx markdownlint-cli2 \"**/*.{md,markdown}\" \"#build/**\" \"#.netlify/**\" \"#node_modules/**\" \"#playwright-report/**\" \"#test-results/**\"",
7474
"format": "prettier --check .",
7575
"format:fix": "prettier --write .",
7676
"lint:all": "npm-run-all --parallel --print-label lint lint:md lint:css --sequential format",

0 commit comments

Comments
 (0)