From 83eb9f874270e1df9c44ccff1f53a8ac796a4e27 Mon Sep 17 00:00:00 2001 From: Noah <2+noah@noreply.gitea.bluefla.re> Date: Mon, 2 Nov 2026 19:25:54 -0600 Subject: [PATCH 1/2] Run the native Windows job's steps past the default execution policy Co-Authored-By: Claude Opus 5.5 --- .gitea/workflows/windows-native.yml | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/.gitea/workflows/windows-native.yml b/.gitea/workflows/windows-native.yml index 448f4e8a..64bbfa1b 100644 --- a/.gitea/workflows/windows-native.yml +++ b/.gitea/workflows/windows-native.yml @@ -30,9 +30,14 @@ jobs: timeout-minutes: 30 env: RUN_ID: ${{ github.event.workflow_run.id || inputs.run_id }} + # Windows' default execution policy (Restricted) refuses the script files + # the runner writes for each step; bypass it for these steps only, so the + # runner works without changing the machine's policy. + defaults: + run: + shell: powershell -NoProfile -NonInteractive -ExecutionPolicy Bypass -File {0} steps: - name: Fetch the cross-built Windows build - shell: powershell env: TOKEN: ${{ github.token }} API: ${{ github.api_url }}/repos/${{ github.repository }} @@ -59,7 +64,6 @@ jobs: "Testing run $env:RUN_ID on Windows $($os.DisplayVersion) build $($os.CurrentBuild)" - name: Unit tests (native Windows) - shell: powershell run: | $failed = @() foreach ($test in Get-Content "$env:ALKANE_NATIVE\tests\tests.txt") { @@ -70,7 +74,6 @@ jobs: if ($failed) { Write-Host "FAILED: $($failed -join ', ')"; exit 1 } - name: Headless UI self-test (native Windows) - shell: powershell run: | # A GUI-subsystem executable: wait for it and read its redirected output. $env:ALKANE_SELFTEST = '1' @@ -82,6 +85,5 @@ jobs: - name: Remove the downloaded build if: always() - shell: powershell run: | if ($env:ALKANE_NATIVE) { Remove-Item -Recurse -Force $env:ALKANE_NATIVE -ErrorAction SilentlyContinue } -- 2.54.0 From 9cf5822ebdaf18081e563e5d836619a25e0bb08d Mon Sep 17 00:00:00 2001 From: Noah <2+noah@noreply.gitea.bluefla.re> Date: Mon, 2 Nov 2026 19:29:05 -0600 Subject: [PATCH 2/2] Scope the PR private-key check to first-party sources The documentation- and workflow-only PR checks grepped every tracked file for private-key headers, so the test fixtures inside vendored upstream crates (openssl, rustls-pemfile, aws-lc) failed every such PR. Co-Authored-By: Claude Opus 5.5 --- .gitea/workflows/verify.yml | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/.gitea/workflows/verify.yml b/.gitea/workflows/verify.yml index d28bb743..883d49b4 100644 --- a/.gitea/workflows/verify.yml +++ b/.gitea/workflows/verify.yml @@ -42,7 +42,9 @@ jobs: run: | base="$(git merge-base HEAD "origin/$GITHUB_BASE_REF")" git diff --check "$base" HEAD - if git grep -nIE '^[[:space:]]*-----BEGIN (RSA |EC |OPENSSH )?PRIVATE KEY-----[[:space:]]*$' --; then + # Vendored upstream trees carry their own test-fixture keys (openssl, + # rustls-pemfile, aws-lc); only first-party sources are checked. + if git grep -nIE '^[[:space:]]*-----BEGIN (RSA |EC |OPENSSH )?PRIVATE KEY-----[[:space:]]*$' -- ':!vendor' ':!thirdparty'; then echo "private key material found in tracked source" >&2 exit 1 else @@ -74,7 +76,9 @@ jobs: for script in ci/*.sh; do bash -n "$script"; done base="$(git merge-base HEAD "origin/$GITHUB_BASE_REF")" git diff --check "$base" HEAD - if git grep -nIE '^[[:space:]]*-----BEGIN (RSA |EC |OPENSSH )?PRIVATE KEY-----[[:space:]]*$' --; then + # Vendored upstream trees carry their own test-fixture keys (openssl, + # rustls-pemfile, aws-lc); only first-party sources are checked. + if git grep -nIE '^[[:space:]]*-----BEGIN (RSA |EC |OPENSSH )?PRIVATE KEY-----[[:space:]]*$' -- ':!vendor' ':!thirdparty'; then echo "private key material found in tracked source" >&2 exit 1 else -- 2.54.0