Skip to content

Chore: [AEA-0000] - add standard lifecycle scripts#76

Merged
anthony-nhs merged 4 commits intomainfrom
aea-0000-idempotent-git-secrets
Mar 30, 2026
Merged

Chore: [AEA-0000] - add standard lifecycle scripts#76
anthony-nhs merged 4 commits intomainfrom
aea-0000-idempotent-git-secrets

Conversation

@tstephen-nhs
Copy link
Copy Markdown
Contributor

@tstephen-nhs tstephen-nhs commented Mar 30, 2026

Summary

  • 🤖 Operational or Infrastructure Change

Details

  • Add standard lifecycle event scripts to base container.
  • Make the installation of git secrets work the same on fresh clone or existing
    • move to postCreate so it does not try to run on every start
    • test if already installed.

Copilot AI review requested due to automatic review settings March 30, 2026 09:18
@github-actions
Copy link
Copy Markdown
Contributor

This PR is linked to a ticket in an NHS Digital JIRA Project. Here's a handy link to the ticket:

AEA-0000

Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR makes git-secrets configuration idempotent and moves it to devcontainer creation time so it applies consistently on fresh clones without re-running on every attach.

Changes:

  • Add scripts/install-git-secrets.sh to register AWS patterns and add the NHSD deny-list provider only if not already configured.
  • Update devcontainer lifecycle hook from postAttachCommand to postCreateCommand to avoid repeated configuration on every start/attach.

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 2 comments.

File Description
scripts/install-git-secrets.sh New script to configure git-secrets patterns/providers only when missing.
.devcontainer/devcontainer.json Runs the new script during postCreateCommand instead of configuring git-secrets on attach.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@tstephen-nhs tstephen-nhs changed the title Chore: [AEA-0000] - check if git-secrets already configured Chore: [AEA-0000] - add standard lifecycle scripts Mar 30, 2026
@anthony-nhs anthony-nhs merged commit bef1c5f into main Mar 30, 2026
47 checks passed
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

Successfully merging this pull request may close these issues.

4 participants