Skip to content
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 our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Require PR re-approval if changes are made #1947

Open
5 tasks
nataliecarey opened this issue Jan 31, 2023 · 0 comments
Open
5 tasks

Require PR re-approval if changes are made #1947

nataliecarey opened this issue Jan 31, 2023 · 0 comments

Comments

@nataliecarey
Copy link
Contributor

What

If a change is made after a PR is approved the approval should be removed.

The instructions to make the change are well summarised on Stack Overflow with official github documentation also available.

Why

All changes to our codebase go through a Pull Request process, they require an approval before they can be included in our codebase. At the moment there's a loophole in that system: after an approval is given changes can be made and included in our codebase without requiring a new review.

Within the internal team this hasn't been a problem because we've unofficially checked with each other before merging. This unofficial process has a cognitive overhead and would need to be taught to new team members.

If there were a bad actor trying to get malicious code into the kit then this loophole would be a good way of getting it in.

Github has an option to require a re-review in this scenario and I believe we should turn it on because:

  1. It automates the process rather than relying on people to remember
  2. The new team members won't need to learn the unwritten rule
  3. It protects against malicious actions by bad actors

Who needs to work on this

  • Github admin (e.g. Natalie)

Who needs to review this

Done when

An approved pull request becomes unapproved when a change is made in:

  • govuk-prototype-kit
  • govuk-prototype-kit-docs
  • govuk-prototype-kit-step-by-step
  • govuk-prototype-kit-task-list
  • govuk-prototype-kit-common-templates
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

No branches or pull requests

2 participants