@biffo/cli 0.301.23 → 0.301.25

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -208,16 +208,14 @@ jobs:
208
208
  run:
209
209
  working-directory: services/api
210
210
  steps:
211
- # `fetch-depth: 0` matches the root repo's own `python` job (#1692) and is
212
- # required by the Dependency audit step below: py-dependency-audit.sh's
213
- # pre-existing-vs-introduced comparison (#1673) only activates when
214
- # `origin/${GITHUB_BASE_REF}` resolves locally, which a shallow (depth-1,
215
- # single-ref) checkout never provides. Without this, every finding blocks,
216
- # identical to pre-#1673 behaviour, on every repo scaffolded from this
217
- # skeleton (biffo-template#1803).
211
+ # `fetch-depth: 0` is no longer required here (#1882): it existed
212
+ # solely for py-dependency-audit.sh's pre-existing-vs-introduced
213
+ # comparison (#1673), which needed `origin/${GITHUB_BASE_REF}` to
214
+ # resolve locally -- that step, and the same full-depth checkout it
215
+ # needs, moved to the `python-audit` job below when the audit was
216
+ # split out of this required job. Nothing remaining in this job reads
217
+ # `origin/` state, so the default shallow checkout is correct here now.
218
218
  - uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5
219
- with:
220
- fetch-depth: 0
221
219
  - uses: astral-sh/setup-uv@v5
222
220
  with:
223
221
  enable-cache: true
@@ -278,13 +276,6 @@ jobs:
278
276
  with:
279
277
  name: bandit-report
280
278
  path: services/api/bandit-report.json
281
- - name: Dependency audit
282
- if: ${{ !cancelled() }}
283
- # Same treatment as the JS job's Dependency audit above: fails on a real
284
- # advisory, INCONCLUSIVE on an unreachable PyPI/OSV (#591, #743). cwd is
285
- # services/api, which is the environment `uv sync` installed and so the
286
- # one to audit.
287
- run: sh ../../scripts/py-dependency-audit.sh
288
279
  - name: Routing smoke test — self-test
289
280
  if: ${{ !cancelled() }}
290
281
  # Not exercising this repo's own deployment (CI has none to reach) —
@@ -370,6 +361,39 @@ jobs:
370
361
  fi
371
362
  echo "PASS: every scripts/*.test.sh guard in this repo has a caller."
372
363
 
364
+ # Split out of the `python` job deliberately (biffo-template#1882, mirroring
365
+ # #1880/#1881's identical JS-side fix): `pip-audit`'s advisory lookups are
366
+ # exactly as registry-dependent and chronically unreliable as `pnpm audit`'s
367
+ # were. `python` (required) no longer runs this step, so a registry-side
368
+ # advisory event can never again block that job; this job runs the exact
369
+ # same script informationally on every push/PR (`continue-on-error: true`)
370
+ # and is deliberately NOT part of DEFAULT_STATUS_CHECKS/SIBLING_STATUS_CHECKS.
371
+ python-audit:
372
+ name: Python Dependency Audit (non-blocking, #1882)
373
+ runs-on: ${{ vars.RUNNER_LABEL || 'ubuntu-latest' }}
374
+ timeout-minutes: 20
375
+ continue-on-error: true
376
+ defaults:
377
+ run:
378
+ working-directory: services/api
379
+ steps:
380
+ - uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5
381
+ with:
382
+ fetch-depth: 0
383
+ - uses: astral-sh/setup-uv@v5
384
+ with:
385
+ enable-cache: true
386
+ - run: uv sync --all-groups --locked
387
+ - name: Dependency audit
388
+ if: ${{ !cancelled() }}
389
+ # Same treatment as the JS job's Dependency audit: fails on a real
390
+ # advisory, INCONCLUSIVE on an unreachable PyPI/OSV (#591, #743) —
391
+ # and this job's own non-required status is what stops that
392
+ # inconclusive result from blocking the merge queue in the first
393
+ # place. cwd is services/api, which is the environment `uv sync`
394
+ # installed and so the one to audit.
395
+ run: sh ../../scripts/py-dependency-audit.sh
396
+
373
397
  security-secrets:
374
398
  name: Secret Scan
375
399
  runs-on: ${{ vars.RUNNER_LABEL || 'ubuntu-latest' }}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@biffo/cli",
3
- "version": "0.301.23",
3
+ "version": "0.301.25",
4
4
  "description": "Biffo project scaffolding CLI",
5
5
  "license": "MIT",
6
6
  "type": "module",
package/scripts/verify.sh CHANGED
@@ -1445,6 +1445,13 @@ fi
1445
1445
  [ -f scripts/branch-health-plan-only-detection.test.sh ] &&
1446
1446
  run_check branch-health-plan-only sh scripts/branch-health-plan-only-detection.test.sh
1447
1447
 
1448
+ # The DDL module-number allocator's own race-freedom proof (#1886): races real
1449
+ # `git` processes against throwaway local bare repos (never a mock of git, and
1450
+ # never /tmp -- repo-local scratch dirs cleaned up by its own trap), so it needs
1451
+ # neither network nor a live deployment. Measured here: ~2.4s.
1452
+ [ -f scripts/allocate-module-number.test.sh ] &&
1453
+ run_check allocate-module-number sh scripts/allocate-module-number.test.sh
1454
+
1448
1455
  # The append-only corpus guard (#778). CI runs it in Release Guards, and it was
1449
1456
  # invisible to the parity test until #897 widened the harvester -- it is neither
1450
1457
  # `pnpm`, `uv`, `terraform` nor `sh scripts/`, so the guard whose property is