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
28 changes: 4 additions & 24 deletions .github/workflows/node-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -68,34 +68,18 @@ jobs:
- name: Typecheck
run: pnpm --dir sdk/typescript run types

- name: Prepare private Windows test root
if: runner.os == 'Windows'
id: windows-temp
shell: pwsh
run: |
$ErrorActionPreference = 'Stop'
$path = Join-Path $env:USERPROFILE '.codex-security-ci-temp'
New-Item -ItemType Directory -Path $path -Force | Out-Null
$sid = (whoami /user /fo csv /nh | ConvertFrom-Csv -Header Name, Sid).Sid
& icacls $path /inheritance:r /grant:r "*${sid}:(OI)(CI)F" '*S-1-5-18:(OI)(CI)F' '*S-1-5-32-544:(OI)(CI)F' | Out-Null
if ($LASTEXITCODE -ne 0) { throw 'Could not secure the Windows test root' }
"path=$path" >> $env:GITHUB_OUTPUT

- name: Test
timeout-minutes: 10
env:
TEMP: ${{ steps.windows-temp.outputs.path || runner.temp }}
TMP: ${{ steps.windows-temp.outputs.path || runner.temp }}
TMPDIR: ${{ steps.windows-temp.outputs.path || runner.temp }}
CODEX_SECURITY_ALLOW_MACHINE_POLICY_TEST: ${{ runner.environment == 'github-hosted' && runner.os == 'Windows' && 'true' || 'false' }}
TEMP: ${{ runner.temp }}
TMP: ${{ runner.temp }}
TMPDIR: ${{ runner.temp }}
CODEX_SECURITY_ALLOW_MACHINE_POLICY_TEST: "false"
run: pnpm --dir sdk/typescript run test

- name: Check formatting
run: pnpm --dir sdk/typescript run format

- name: Build
run: pnpm --dir sdk/typescript run build

- name: Pack
working-directory: sdk/typescript
run: pnpm pack --pack-destination ../../dist
Expand Down Expand Up @@ -218,10 +202,6 @@ jobs:
working-directory: sdk/typescript
run: pnpm install --frozen-lockfile

- name: Build
working-directory: sdk/typescript
run: pnpm run build

- name: Pack
working-directory: sdk/typescript
run: pnpm pack --pack-destination ../../dist
Expand Down
1 change: 0 additions & 1 deletion .github/workflows/node-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,6 @@ jobs:
pnpm --dir sdk/typescript run types
pnpm --dir sdk/typescript run test
pnpm --dir sdk/typescript run format
pnpm --dir sdk/typescript run build

- name: Pack
working-directory: sdk/typescript
Expand Down
1 change: 0 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@ RUN corepack enable \
COPY sdk/typescript/ ./

RUN pnpm run types \
&& pnpm run build \
&& pnpm pack --pack-destination /build/package \
&& node scripts/check-package.mjs /build/package/*.tgz

Expand Down
Loading