audit-labs/gh-attest

GitHub Audit Evidence Extractor

clone: git clone https://gitbay.org/audit-labs/gh-attest.git

dc179532aed18764cb618f13e92d2b3c331b9b5d

verified · cmc

author: Christian Cleberg <hello@cleberg.net> · 2026-08-21T04:39:02Z

Generate Workers types before typechecking

worker-configuration.d.ts is gitignored but listed in tsconfig's "types",
so tsc fails on any fresh checkout with TS2688. Caught by the first CI run
on this branch, which is the workflow doing its job.
 .github/workflows/ci.yml | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml
index 8952e0b..dd80160 100644
--- a/.github/workflows/ci.yml
+++ b/.github/workflows/ci.yml
@@ -21,6 +21,12 @@ jobs:
 
       - run: npm ci
 
+      # worker-configuration.d.ts is generated, not committed, and tsconfig
+      # lists it under "types" — so tsc cannot run on a fresh checkout without
+      # this. Needs no Cloudflare credentials; it reads wrangler.jsonc.
+      - name: Generate Workers types
+        run: npm run types
+
       # The engine is TypeScript on Workers types; a type error is a deploy
       # that fails in Cloudflare's build rather than here.
       - name: Typecheck