Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Workaround for GitHub API to retrieve dependabot alerts per branch#13182

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Draft
mkurz wants to merge1 commit intoplayframework:main
base:main
Choose a base branch
Loading
frommkurz:dependabot_alerts_per_branch

Conversation

mkurz
Copy link
Member

I think knowing which vulnerabilities we have/ship in our dependencies in our stable branches isvery important. But currently GitHub does not support non-default branches with their Dependabot alerts.

So, time to make the impossible possible ;)


If you have a repo that hosts apackage ecosystem that is supported by GitHub's dependency graph api (like node or maven), GitHub (can) automatically scan a repos' manifest file(s) and create a dependency tree and dependabot alerts from that.
The current problem is, only the default branch of a repo is currently supported. There is no way to make GitHub scan a non-default branch (e.g. in our case that would be the stable 3.0.x and 2.9.x branch).

Further, GitHub does not support Scala (sbt) project's out of the box, so that's why sbt-dependency-submission exists.
We have workflows setup up with that action in the 2.9.x and 3.0.x branch. However, currently, they are useless. They do not submit anything to GitHub, GitHub just ignores the JSON it generates.
That means, the alerts we see athttps://github.com/playframework/playframework/security/dependabotonly cover the main branch.

However, how do we see if there is a vulnerability in a dependency in the 3.0.x branch? And how could we distinguish the branches in the "Dependabot alerts" page referenced above? After alot of research how the GitHub dependency submission API works I am pretty sure It's possible to make GitHub api do what we want. Please take a look atscalacenter/sbt-dependency-submission#249 where I also posted a screenshot.

@mkurzmkurzforce-pushed thedependabot_alerts_per_branch branch frome79fcfc to349079bCompareMarch 12, 2025 10:09
@mkurz
Copy link
MemberAuthor

News from GitHub:https://github.blog/changelog/2025-03-26-transitive-dependencies-are-now-available-for-maven/
But I don't think this changes anyting, but I will check some day.

Also, actually I have an idea for another workaround.... but not working on it now.

ihostage reacted with eyes emoji

Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment
Reviewers
No reviews
Assignees
No one assigned
Labels
None yet
Projects
None yet
Milestone
No milestone
Development

Successfully merging this pull request may close these issues.

1 participant
@mkurz

[8]ページ先頭

©2009-2025 Movatter.jp