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

Review: security around github actions #1778

Closed davidkelliott closed 1 year ago

davidkelliott commented 2 years ago

User Story

Security review of our github actions to ensure they are still secure.
Wider conversation with the team to raise any concerns.

User Type(s)

Value

Questions / Assumptions / Hypothesis

Definition of done

Reference

How to write good user stories

dms1981 commented 1 year ago

https://docs.github.com/en/actions/security-guides/security-hardening-for-github-actions

davidkelliott commented 1 year ago

We should add tag protection - https://registry.terraform.io/providers/integrations/github/latest/docs/resources/repository_tag_protection

https://github.com/ministryofjustice/modernisation-platform/issues/2617

davidkelliott commented 1 year ago

We should stop using this 3rd party Slack bot - https://github.com/ministryofjustice/modernisation-platform/issues/2217

davidkelliott commented 1 year ago

Checked for injection script vulnerabilities in our main repos, none found

davidkelliott commented 1 year ago

Preventing GitHub Actions from creating or approving pull requests - not enabling as we have proper PR review oversight

Fork pull request workflows from outside collaborators - changed from first time to all, any users contributing should be in the org or have permissions to push.

davidkelliott commented 1 year ago

Use OSSF scanning - https://github.com/ministryofjustice/modernisation-platform/pull/2628