Skip to content

Make dependency review one repo-wide gate, not a per-SDK one - #73061

Merged
potiuk merged 1 commit into
apache:mainfrom
potiuk:dependency-review-generic-gate
Sep 13, 2026
Merged

potiuk merged 1 commit into
apache:mainfrom
potiuk:dependency-review-generic-gate

Conversation

@potiuk

@potiuk potiuk commented Sep 13, 2026

Copy link
Copy Markdown
Member

dependency-review-action has no path or manifest input. Once it runs it reviews the entire dependency graph diff of the PR, every lockfile included — so a gate named after one SDK can only ever be lying about what it covers.

That is not theoretical. #72946, a release sync PR that changed 816 files and not one of them under java-sdk/, tripped the Java SDK gate through the self-reference in its own paths filter (v*-test and v*-stable keep different copies of every workflow file), and the Java SDK gate then failed on a Python advisory in uv.lock.

Replace the two per-SDK review jobs with one Dependency review workflow covering the manifests of every ecosystem in the repo:

  • new .github/workflows/dependency-review.yml, triggered by any Python, JavaScript, Go or JVM manifest in the PR;
  • java-sdk-dependency-security.yml keeps only the Gradle dependency-submission job, which really is Java-specific, and drops its pull_request trigger;
  • ts-sdk-dependency-review.yml goes away — the generic gate already reviews ts-sdk/package.json and ts-sdk/pnpm-lock.yaml.

The check name contributors see, Reject vulnerable dependency changes, is unchanged. The settings are the stricter of the two the repo had: the ts-sdk gate ran at the action's default fail-on-scopes: runtime, and now gets runtime, development, unknown like the java one.

Note for review: the paths list is the coverage boundary — a dependency file not listed there is never reviewed. Root-level manifests are listed both bare and under **/, because GitHub's ** matches zero or more characters including / and so would not match a repo-root uv.lock on its own.

Follow-up to #73059, which suppresses the nltk advisory itself. The allow-ghsas entry moves into the new workflow here.

🤖 Generated with Claude Code

https://claude.ai/code/session_01G9A6Mofr5qErDuTh7vqWcX

`dependency-review-action` has no path or manifest input. Once it runs
it reviews the entire dependency graph diff of the PR, every lockfile
included - so a gate named after one SDK can only ever be lying about
what it covers.

That is not theoretical. apache#72946, a release sync PR that
changed 816 files and not one of them under `java-sdk/`, tripped the
Java SDK gate through the self-reference in its own `paths` filter
(v*-test and v*-stable keep different copies of every workflow file),
and the Java SDK gate then failed on a Python advisory in `uv.lock`.

Replace the two per-SDK review jobs with one `Dependency review`
workflow covering the manifests of every ecosystem in the repo:

* new `.github/workflows/dependency-review.yml`, triggered by any
  Python, JavaScript, Go or JVM manifest in the PR.
* `java-sdk-dependency-security.yml` keeps only the Gradle
  `dependency-submission` job, which really is Java-specific, and
  drops its `pull_request` trigger.
* `ts-sdk-dependency-review.yml` goes away - the generic gate already
  reviews `ts-sdk/package.json` and `ts-sdk/pnpm-lock.yaml`.

The check name contributors see, `Reject vulnerable dependency
changes`, is unchanged. The settings are the stricter of the two the
repo had: the ts-sdk gate ran at the action's default
`fail-on-scopes: runtime`, and now gets `runtime, development,
unknown` like the java one.

Generated-by: Claude Opus 5
Claude-Session: https://claude.ai/code/session_01G9A6Mofr5qErDuTh7vqWcX
@potiuk
potiuk merged commit 6acbc03 into apache:main Sep 13, 2026
116 of 117 checks passed
@potiuk
potiuk deleted the dependency-review-generic-gate branch September 13, 2026 08:19
@github-actions

Copy link
Copy Markdown
Contributor

Backport failed to create: v3-3-test. View the failure log Run details

Note: As of Merging PRs targeted for Airflow 3.X
the committer who merges the PR is responsible for backporting the PRs that are bug fixes (generally speaking) to the maintenance branches.

In matter of doubt please ask in #release-management Slack channel.

Status Branch Result
❌ v3-3-test Commit Link

You can attempt to backport this manually by running:

cherry_picker 6acbc03 v3-3-test

This should apply the commit to the v3-3-test branch and leave the commit in conflict state marking
the files that need manual conflict resolution.

After you have resolved the conflicts, you can continue the backport process by running:

cherry_picker --continue

If you don't have cherry-picker installed, see the installation guide.

@jason810496 jason810496 left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Great idea to have a consolidated one, thanks Jarek.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants