Repository navigation
Security & quality hardening for 1.5.4 (P0-01…P0-13) #39
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
Show all changes
18 commits
Select commit
Hold shift + click to select a range
72953e0
docs: add quality and hardening plan (P0, P1, P2)
KNIHAL 573a3e9
security(P0-01): update vulnerable dependencies (simple-git 4, SDK 1.…
KNIHAL c9c0122
fix(P0-02): Windows nested cmd.exe finds node, ComSpec set (issue #2)
KNIHAL 3f1461f
security(P0-03): redact URL credentials, tokens, connection strings i…
KNIHAL ff2dafe
security(P0-04): compose via wsl --cd args, no shell text; scan test
KNIHAL 084a4d4
security(P0-05): http_check uses the shared SSRF guard (netGuard)
KNIHAL afc6d72
security(P0-05): block 6to4, Teredo, ISATAP addresses in SSRF guard
KNIHAL c6d9936
security(P0-06): consistent path protection with real-path resolution…
KNIHAL 85a53b6
security(P0-06): also protect ~/.causly, CAUSLY_HOME, .env, ~/.kube, …
KNIHAL b6e680e
ci(P0-07): Node 22/24, npm ci, audit, Dependabot, package contents an…
KNIHAL 55beba8
security(P0-08): raise risky tool levels, per-action levels, enforce …
KNIHAL 1b7f14a
feat(P0-09): MCP tool annotations from permission levels; stdout JSON…
KNIHAL a904969
fix(P0-13): edit_file matches CRLF files, github_list_issues pages pa…
KNIHAL 7a6dae3
test(P0-10): fuzz helper and boundary tests for path and shell arguments
KNIHAL 2715912
chore(P0-12): homepage, bugs, provenance publish workflow, metadata test
KNIHAL a2c18df
test(P0-11): 1.5.0 upgrade fixture, corrupt-file tests; clear corrupt…
KNIHAL b924f5c
chore: release 1.5.4 (version bump; longer timeout for the real-npm-i…
KNIHAL be74d24
test: make fuzz traversal check OS-aware
KNIHAL File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,17 @@ | ||
| version: 2 | ||
| updates: | ||
| - package-ecosystem: npm | ||
| directory: "/" | ||
| schedule: | ||
| interval: weekly | ||
| open-pull-requests-limit: 5 | ||
| labels: | ||
| - dependencies | ||
|
|
||
| - package-ecosystem: github-actions | ||
| directory: "/" | ||
| schedule: | ||
| interval: weekly | ||
| open-pull-requests-limit: 5 | ||
| labels: | ||
| - dependencies |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,47 @@ | ||
| name: Publish to npm | ||
|
|
||
| # Publishes with provenance (npm shows a verified link from the package to this repository and commit). | ||
| # Run it by publishing a GitHub release whose tag is v<version> (for example v1.5.4). | ||
| # Needs the repository secret NPM_TOKEN (an npm automation token). | ||
| on: | ||
| release: | ||
| types: [published] | ||
| workflow_dispatch: | ||
|
|
||
| permissions: | ||
| contents: read | ||
| id-token: write # required for provenance | ||
|
|
||
| jobs: | ||
| publish: | ||
| runs-on: ubuntu-latest | ||
| steps: | ||
| - uses: actions/checkout@v4 | ||
|
|
||
| - name: Set up Node.js | ||
| uses: actions/setup-node@v4 | ||
| with: | ||
| node-version: 22 | ||
| registry-url: https://registry.npmjs.org | ||
| cache: npm | ||
|
|
||
| - name: Install dependencies | ||
| run: npm ci | ||
|
|
||
| - name: Release tag must match package.json | ||
| if: github.event_name == 'release' | ||
| run: | | ||
| version="$(node -p "require('./package.json').version")" | ||
| if [ "${GITHUB_REF_NAME}" != "v${version}" ]; then | ||
| echo "Tag ${GITHUB_REF_NAME} does not match package.json version ${version}" | ||
| exit 1 | ||
| fi | ||
|
|
||
| - name: Audit production dependencies | ||
| run: npm audit --omit=dev --audit-level=high | ||
|
|
||
| - name: Publish with provenance | ||
| # prepublishOnly rebuilds the pack manifest and runs the full test suite first. | ||
| run: npm publish --provenance --access public | ||
| env: | ||
| NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
While the P0-06..13 documentation updates remain only on the docs branch, this job checks out
masterand then runstests/docsDrift.test.jswithCAUSLY_REQUIRE_DOCS=1. That makes the check compare the updated manifest and permission levels against the stale docs revision, so the newdocs-driftjob fails until the docs changes are merged. Point it at the revision containing those updates, or land the docs changes first.Useful? React with 👍 / 👎.