Skip to content
This repository was archived by the owner on Nov 21, 2025. It is now read-only.

Conversation

@anthony-nhs
Copy link
Contributor

@anthony-nhs anthony-nhs commented Oct 22, 2025

Summary

  • Routine Change

Details

  • build dev container as part of quality checks

@github-actions
Copy link

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

@github-advanced-security github-advanced-security bot left a comment

Choose a reason for hiding this comment

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

SonarCloud found more than 20 potential problems in the proposed changes. Check the Files changed tab for more details.

@anthony-nhs anthony-nhs changed the title Fix: [AEA-0000] - build dev container Breaking: [AEA-0000] - build dev container Oct 24, 2025

tag_latest_nhsd_git_secrets:
needs: [quality_checks, get_commit_id, tag_release]
uses: ./.github/workflows/tag_latest_dev_container.yml
Copy link

@MatthewPopat-NHS MatthewPopat-NHS Oct 28, 2025

Choose a reason for hiding this comment

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

This filename is confusing as this job isn't a dev container, maybe

Suggested change
uses: ./.github/workflows/tag_latest_dev_container.yml
uses: ./.github/workflows/tag_latest_multi-arch_ecr_image.yml

Copy link
Contributor Author

Choose a reason for hiding this comment

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

changed to tag_latest_container_images

needs: [quality_checks, get_commit_id, tag_release]
uses: ./.github/workflows/tag_latest_dev_container.yml
with:
dev_container_ecr: dev-container-git-secrets

Choose a reason for hiding this comment

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

as above, maybe

Suggested change
dev_container_ecr: dev-container-git-secrets
ecr_repo_name: git-secrets

Copy link
Contributor Author

Choose a reason for hiding this comment

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

changed input to ecr_name and changed name of ecr used for git secrets

uses: ./.github/workflows/tag_latest_dev_container.yml
with:
dev_container_ecr: dev-container-git-secrets
dev_container_image_tag: release-${{ needs.get_commit_id.outputs.sha_short }}

Choose a reason for hiding this comment

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

as above, maybe

Suggested change
dev_container_image_tag: release-${{ needs.get_commit_id.outputs.sha_short }}
ecr_image_tag: release-${{ needs.get_commit_id.outputs.sha_short }}

Copy link
Contributor Author

Choose a reason for hiding this comment

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

changed to container_image_tag

type: string
description: "The tag to download check_ecr_image_scan_results.sh script."
required: false
default: "dev_container_build"

Choose a reason for hiding this comment

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

I guess we should be changing this before merge

Copy link
Contributor Author

Choose a reason for hiding this comment

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

yes, or do another pull request after changing it to main

type: string
description: "The tag to use for the dev container image."
required: true
check_ecr_image_scan_results_script_tag:

Choose a reason for hiding this comment

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

doesn't seem to be used here

Copy link
Contributor Author

Choose a reason for hiding this comment

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

removed

Comment on lines +201 to +209
"postAttachCommand": "docker build -f https://raw.githubusercontent.com/NHSDigital/eps-workflow-quality-checks/refs/tags/v4.0.2/dockerfiles/nhsd-git-secrets.dockerfile -t git-secrets . && pre-commit install --install-hooks -f",
"features": {
"ghcr.io/devcontainers/features/docker-outside-of-docker:1": {
"version": "latest",
"moby": "true",
"installDockerBuildx": "true"
}
}
}

Choose a reason for hiding this comment

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

question: do we want to update the devcontainer.json in this pr to include the tags url instead of the current one that's just pointing to the one that is local?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I want to change how we get the git-secrets - will do that in another pr

@sonarqubecloud
Copy link

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants