Skip to content

Commit 29229de

Browse files
committed
fix(ci): restore checkout permissions
- Grant GITHUB_TOKEN contents:read so actions/checkout can fetch. - Reduce lint complexity in resolveCreateInputs.
1 parent 475d2a0 commit 29229de

4 files changed

Lines changed: 8 additions & 7 deletions

File tree

.github/workflows/check.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,8 @@ concurrency:
1111
group: ${{ github.workflow }}-${{ github.ref }}
1212
cancel-in-progress: true
1313

14-
permissions: {}
14+
permissions:
15+
contents: read
1516

1617
jobs:
1718
build:

.github/workflows/snapshot.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,8 @@ on:
55
branches: [main, next-minor, next-major]
66
workflow_dispatch:
77

8-
permissions: {}
8+
permissions:
9+
contents: read
910

1011
jobs:
1112
snapshot:

packages/app/src/docker-git/menu-create.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -108,9 +108,9 @@ export const resolveCreateInputs = (
108108
repoRef: values.repoRef ?? "main",
109109
outDir,
110110
secretsRoot,
111-
runUp: values.runUp ?? true,
112-
enableMcpPlaywright: values.enableMcpPlaywright ?? false,
113-
force: values.force ?? false
111+
runUp: values.runUp !== false,
112+
enableMcpPlaywright: values.enableMcpPlaywright === true,
113+
force: values.force === true
114114
}
115115
}
116116

packages/app/src/docker-git/menu-render.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,7 @@ export const renderStepLabel = (step: CreateStep, defaults: CreateInputs): strin
2525
Match.when("runUp", () => `Run docker compose up now? [${defaults.runUp ? "Y" : "n"}]`),
2626
Match.when(
2727
"mcpPlaywright",
28-
() =>
29-
`Enable Playwright MCP (Chromium sidecar)? [${defaults.enableMcpPlaywright ? "y" : "N"}]`
28+
() => `Enable Playwright MCP (Chromium sidecar)? [${defaults.enableMcpPlaywright ? "y" : "N"}]`
3029
),
3130
Match.when(
3231
"force",

0 commit comments

Comments
 (0)