Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions .github/workflows/codeql.yml
Original file line number Diff line number Diff line change
Expand Up @@ -44,11 +44,11 @@ jobs:
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1

- name: Initialize CodeQL
uses: github/codeql-action/init@24c54180a607b1449ed407dd24f251e4e9147c8d # v4.38.3
uses: github/codeql-action/init@6f2ac81f5cd81fe351a197ba0b00d91d03cd2aee # v4.39.0
with:
languages: ${{ matrix.language }}

- name: Analyze
uses: github/codeql-action/analyze@24c54180a607b1449ed407dd24f251e4e9147c8d # v4.38.3
uses: github/codeql-action/analyze@6f2ac81f5cd81fe351a197ba0b00d91d03cd2aee # v4.39.0
with:
category: /language:${{ matrix.language }}
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -193,10 +193,10 @@
"jszip": "^3.10.2"
},
"devDependencies": {
"@emnapi/runtime": "2.0.0-beta.1",
"@emnapi/runtime": "2.0.0-beta.2",
"@napi-rs/cli": "3.10.8",
"@types/node": "^26.6.5",
"@vitest/coverage-v8": "5.0.4",
"@vitest/coverage-v8": "5.0.5",
"acorn": "8.19.0",
"fast-check": "^4.10.2",
"istanbul-lib-coverage": "3.2.2",
Expand Down
68 changes: 34 additions & 34 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

7 changes: 4 additions & 3 deletions test/path-prefix.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ import { observeArrayShifts } from "./helpers/observe-array-shifts.js";
const { tempRoot, tempDirs } = useRealTempDirs();
afterEach(() => vi.restoreAllMocks());
const directoryLink = process.platform === "win32" ? "junction" : "dir";
const itUnprivilegedPosix = it.skipIf(process.platform === "win32" || process.getuid?.() === 0);
const SHIFT_QUEUE_COMPONENT_LIMIT = 32;

function resolveAndCountMarkedShifts(input: string, markers: readonly string[]) {
Expand Down Expand Up @@ -252,7 +253,7 @@ describe("resolvePathPrefixSync", () => {
.toThrow(expect.objectContaining({ code: "ENOTDIR" }));
});

itPosix.skipIf(process.getuid?.() === 0).each(["/.", "/..", "/../live", "/../future", "//../live", "/./.."])(
itUnprivilegedPosix.each(["/.", "/..", "/../live", "/../future", "//../live", "/./.."])(
"requires directory search permission for raw traversal %s",
async suffix => {
const directory = await tempRoot("fs-safe-prefix-denied-traversal-");
Expand All @@ -274,7 +275,7 @@ describe("resolvePathPrefixSync", () => {
},
);

itPosix.skipIf(process.getuid?.() === 0).each(["/", "//", "///"])(
itUnprivilegedPosix.each(["/", "//", "///"])(
"keeps the filesystem's trailing-separator behavior for %s",
async suffix => {
const directory = await tempRoot("fs-safe-prefix-denied-separator-");
Expand All @@ -293,7 +294,7 @@ describe("resolvePathPrefixSync", () => {
},
);

itPosix.skipIf(process.getuid?.() === 0)("permits dot traversal with search-only directory access", async () => {
itUnprivilegedPosix("permits dot traversal with search-only directory access", async () => {
const directory = await tempRoot("fs-safe-prefix-search-only-");
const searchOnly = path.join(directory, "search");
const live = path.join(directory, "live");
Expand Down
Loading