ministryofjustice / modernisation-platform

A place for the core work of the Modernisation Platform • This repository is defined and managed in Terraform
https://user-guide.modernisation-platform.service.justice.gov.uk
MIT License
680 stars 290 forks source link

Integrate ServiceNow bot with Modernisation Platform repositories #7951

Open dms1981 opened 3 days ago

dms1981 commented 3 days ago

User Story

As a Change and Release lead I want to integrate ServiceNow with Modernisation Platform GitHub repositories So that ServiceNow can track changes happening in GitHub

Value / Purpose

As part of a wider initiative to give ServiceNow visibility into GitHub changes we've been asked to give the operations-engineering-servicenow GitHub account admin permissions for our repositories. This user account is tied to a bot.

Hopefully this is pretty simple - something like this in our github directory:

resource "github_repository_collaborator" "servicenow" {
  for_each   = toset(local.list-of-repositories)
  repository = each.key
  username   = "operations-engineering-servicenow"
  permission = "admin"
}

Useful Contacts

No response

Additional Information

The following Slack conversations are useful starting points:

Definition of Done

dms1981 commented 2 days ago

On discussion with @connormaglynn we'd like to understand the requirement for admin access prior to implementing this.