python / python/psrt-ghsa-bot

Automate adding collaborators based on PR modified changes

Open
#18 4 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Python
Stars
6
Forks
2
Avg merge
9h 7m
Merged PRs (30d)
2

Description

Currently GHSA doesn't automatically add CODEOWNERS to GHSAs when that code is modified. This bot can do this for us automatically by:

  • When a GHSA PR is modified
  • Run the changed filenames against the CPython CODEOWNERS for the main branch
  • If there are matches, add those users to the collaborating_users / collaborating_teams field in the GHSA

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by tracing how the bot handles modified GHSA pull requests and how it updates the GHSA collaborating_users and collaborating_teams fields. Determine how changed filenames and the CPython main-branch CODEOWNERS are accessed, then verify that matching users and teams are added when a PR changes owned files.

Written by the indexing model from the issue text.

Assessment

Tech stack
github, python
Domain
devtools, security
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Quiet
Clarity
Mostly clear
Newbie friendliness
52/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.