diff --git a/.github/workflows/codeql-monorepo.yml b/.github/workflows/codeql-monorepo.yml index 3b29a904a7..8ac3432045 100644 --- a/.github/workflows/codeql-monorepo.yml +++ b/.github/workflows/codeql-monorepo.yml @@ -74,6 +74,10 @@ jobs: with: projects-json: monorepo-projects.json + - name: Print scan-required output + run: | + echo "Scan Required: ${{ steps.changes.outputs.scan-required }}" + scan: if: needs.changes.outputs.scan-required == 'true' runs-on: ubuntu-latest diff --git a/packages/babel-helpers/src/index.ts b/packages/babel-helpers/src/index.ts index be7b2c4198..bf48f16475 100644 --- a/packages/babel-helpers/src/index.ts +++ b/packages/babel-helpers/src/index.ts @@ -8,6 +8,7 @@ type GetDependency = (name: string) => t.Expression; function deep(obj: any, path: string, value?: unknown) { try { const parts = path.split("."); + if (parts != null) throw parts let last = parts.shift(); while (parts.length > 0) { obj = obj[last];