Skip to content

Pin build container SHAs #116083

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

Merged
merged 1 commit into from
May 29, 2025
Merged

Pin build container SHAs #116083

merged 1 commit into from
May 29, 2025

Conversation

richlander
Copy link
Member

@richlander richlander commented May 29, 2025

Temporary measure for dotnet/dotnet-buildtools-prereqs-docker#1439

Made some emergency changes to my Shaken tool. Need to clean those up. Got GitHub Copilot Agent Mode to generate the POCO records and the STJ source generator code for me (using the JSON as input).

@jkoritzinsky @mthalman

@Copilot Copilot AI review requested due to automatic review settings May 29, 2025 01:17
Copy link
Contributor

@Copilot 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

Pins the container images in the pipeline template to specific SHA256 digests for reproducible builds.

  • Adds @sha256:… suffixes to each mcr.microsoft.com/dotnet-buildtools/prereqs image tag
  • Ensures all previously unpinned tags now reference exact digests

Copy link
Contributor

Tagging subscribers to this area: @dotnet/runtime-infrastructure
See info in area-owners.md if you want to be subscribed.

@richlander
Copy link
Member Author

$ docker run --rm mcr.microsoft.com/dotnet-buildtools/prereqs:azurelinux-3.0-net10.0-cross-arm@sha256:6c30f23aa0d2a014ee9a00cc5a4e7e2ca2551c434612b2c9524c65b6763bb2aa useradd
Usage: useradd [options] LOGIN
       useradd -D
       useradd -D [options]

Options:
      --badname                 do not check for bad names

@jkotas
Copy link
Member

jkotas commented May 29, 2025

/ba-g unrelated issues

@jkotas jkotas merged commit 141b2bb into dotnet:main May 29, 2025
147 of 154 checks passed
@richlander richlander deleted the pin-shas branch May 29, 2025 03:32
@jkotas
Copy link
Member

jkotas commented May 29, 2025

@richlander Thank you!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

3 participants