Skip to content

chore(deps): force dependency graph re-parse to clear 11 stale Dependabot alerts - #159

Merged
Sagargupta16 merged 1 commit into
mainfrom
chore/refresh-dependency-graph
Aug 10, 2026
Merged

Sagargupta16 merged 1 commit into
mainfrom
chore/refresh-dependency-graph

Conversation

@Sagargupta16

Copy link
Copy Markdown
Owner

Description

After #157 and #158, 11 Dependabot alerts remain open against dependency graph entries that do not exist anywhere in the repository. This PR touches both pip manifests to force GitHub to re-parse them.

The stale records

The current SBOM (GET /dependency-graph/sbom, generated 02:36 UTC today) lists both the correct new versions and obsolete ones:

Package Stale entry in graph Actually in repo
keras 3.13.2 3.15.1
python-multipart 0.0.27 removed entirely
tensorflow 2.20.0 2.21.0
numpy 2.4.2 2.5.2
fastapi 0.133.1 0.141.1 (both present)
scikit-learn 1.8.0 1.9.0 (both present)
redis 7.2.1 8.1.0

The 11 open alerts all trace to those stale rows, all attributed to requirements.txt:

For contrast, the alerts on manifests GitHub re-parsed normally did close: the 6 original keras alerts on requirements-ml.txt and all 7 npm alerts on client/package-lock.json went away on merge (17 → 11).

Changes

Comment headers added to requirements.txt and requirements-ml.txt pointing at their generated hash-pinned counterparts from #157. No version pin is changed — the diff is comments only.

The intent is to change the manifest blobs so GitHub re-parses them and drops the stale rows.

Testing

  • pytest -q — 34 passed
  • git diff confirms only comment lines added; every == pin is byte-identical

If this does not clear them

Then the rows are held by an orphaned dependency-submission snapshot rather than native parsing, and they cannot be cleared from the repo side. In that case the 11 alerts need dismissing in the Security tab as "no longer used" — they are phantom records, not live vulnerabilities. Worth confirming from the manifests themselves: requirements.txt contains no python-multipart, and keras is pinned to 3.15.1, which is patched for all six advisories.

I could not verify or dismiss these via the API: the available token lacks the security_events scope, so GET /dependabot/alerts returns 404 and dismissal is not possible programmatically. Alert state above was read through the GraphQL vulnerabilityAlerts connection, which only permits reads.

…re-parse

11 Dependabot alerts stayed open after #157 against dependency graph entries
that do not exist anywhere in the repo. The current SBOM still lists
keras 3.13.2, python-multipart 0.0.27, tensorflow 2.20.0, numpy 2.4.2 and
fastapi 0.133.1 alongside the correct current versions, all attributed to
requirements.txt:

- 4 python-multipart alerts recorded "== 0.0.27" (the repo pinned 0.0.32 for
  months before this work removed the dependency entirely).
- 7 keras alerts were newly created against "== 3.13.2"; requirements-ml.txt
  pins 3.15.1 and nothing in the tree references 3.13.2.

Touching both manifests should make GitHub re-parse them and drop the stale
records. The comments themselves are useful either way: they point at the
generated hash-pinned lock files added in #157.

Verified unchanged: pinned versions are identical, only comments were added.
@sonarqubecloud

Copy link
Copy Markdown

@Sagargupta16
Sagargupta16 merged commit 2356981 into main Aug 10, 2026
5 checks passed
@Sagargupta16
Sagargupta16 deleted the chore/refresh-dependency-graph branch August 10, 2026 02:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant