haskell / haskell/security-advisories

pull request automation - ideation

Open
#57 0 comments 2 reactions 0 assignees View on GitHub
ZuriHac
Dominant language
Haskell
Stars
64
Forks
27
Avg merge
3h 39m
Merged PRs (30d)
1

Description

It is clear that we want some pull request automation, both to assist contributors to write a correct
and useful advisory, and to assist the SRT by automating some things. It seems like a webhook "github app"
is the best approach. It will need a token with write access to the repo and we'll need to host it somewhere.
Here are some ideas about what it could do:

- if CVSS and CWE are not set, write a comment pointing to helpful resources
- when CVSS and CWE *are* set, write a comment explaining their values
- recognise commands to update the PR:
- if ***Allow edits and access to secrets by maintainers*** is set for the PR, the app should be able to push (and force-push) to the head branch of the PR, even in forks
- Recognise the `/cwe`, `/cvss`, `/keywords` to update those fields
- When PR is approved by SRT, automatically assign an HSEC-id, and update the head branch (rename file and update TOML `id` field)

Contributor guide

Open the contributing guide

Research direction

No files, tests, or entry points are named. Begin by defining the webhook GitHub App's smallest agreed scope, permissions, hosting, and command behavior; done means the selected PR updates and HSEC-id workflow are implemented and verified.

Written by the indexing model from the issue text.

Assessment

Tech stack
github
Domain
security, tooling
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.