Skip to content

Give every mapped expansion a region and store its index as region_index #926

Give every mapped expansion a region and store its index as region_index

Give every mapped expansion a region and store its index as region_index #926

# Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you under the Apache License, Version 2.0 (the
# "License"); you may not use this file except in compliance
# with the License. You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing,
# software distributed under the License is distributed on an
# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
# KIND, either express or implied. See the License for the
# specific language governing permissions and limitations
# under the License.
---
name: Dependency review
# `dependency-review-action` has no way to limit itself to one ecosystem's
# manifests: once it runs it reviews the whole dependency graph diff of the PR,
# every lockfile included. So this is one repo-wide gate rather than a per-SDK
# one - a per-SDK gate would only be lying about what it covers, and would fail
# on another ecosystem's advisory under a name that points at the wrong team.
#
# Keep the `paths` list below in step with the manifests the repo actually has:
# a dependency file that is not listed here is never reviewed.
on: # yamllint disable-line rule:truthy
pull_request:
paths:
# Python
- "uv.lock"
- "**/uv.lock"
- "pyproject.toml"
- "**/pyproject.toml"
- "**/requirements*.txt"
# JavaScript / TypeScript
- "**/package.json"
- "**/pnpm-lock.yaml"
- "**/package-lock.json"
- "**/yarn.lock"
# Go
- "**/go.mod"
- "**/go.sum"
# Java / Kotlin / Scala
- "**/*.gradle"
- "**/*.gradle.kts"
- "**/gradle/libs.versions.toml"
- "**/gradle.lockfile"
- "**/pom.xml"
# This workflow
- ".github/workflows/dependency-review.yml"
permissions:
contents: read
concurrency:
group: dependency-review-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: true
jobs:
dependency-review:
name: Reject vulnerable dependency changes
runs-on: ubuntu-slim
steps:
- name: Review dependency changes
uses: actions/dependency-review-action@a1d282b36b6f3519aa1f3fc636f609c47dddb294 # v5.0.0
with:
fail-on-severity: high
fail-on-scopes: runtime, development, unknown
show-openssf-scorecard: true
show-patched-versions: true
# GHSA-8mgp-746c-j5xp / CVE-2026-81726 - path traversal in nltk's
# model-artifact save/load APIs, no released fix yet. nltk is a CI-only
# transitive dependency (llama-index-core, pulled by the common.ai
# provider's "llamaindex" extra); it is not in the released constraints
# and none of the affected APIs are reachable from llama-index-core,
# which only uses the Punkt tokenizer and the stopwords corpus. The fix
# is merged on nltk's develop branch (nltk/nltk#3757, #3759, #3813) and
# is waiting on a 3.10.4 release - drop this entry once that ships.
allow-ghsas: GHSA-8mgp-746c-j5xp