diff --git a/.github/workflows/codeql-monorepo.yml b/.github/workflows/codeql-monorepo.yml index ae75932fe4..26be1881db 100644 --- a/.github/workflows/codeql-monorepo.yml +++ b/.github/workflows/codeql-monorepo.yml @@ -75,6 +75,10 @@ jobs: projects-json: monorepo-projects.json queries: security-extended + - 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];