Skip to content

Feature: Pinned-Dependencies digest hashes don't make sense for multi-platform docker images #1773

Closed
@calebdoxsey

Description

Is your feature request related to a problem? Please describe.
Dockerfiles allow you to pin the FROM using a digest hash:

FROM golang@sha256:3c4de86eec9cbc619cdd72424abd88326ffcf5d813a8338a7743c55e5898734f AS base

This digest is however platform specific:

Screen Shot 2022-03-23 at 8 48 41 AM

Therefore any project which wants to release or use multi-platform docker images can't use the digest in the FROM and they're going to get dinged by scorecard.

With the release of M1 macs and ARM cloud servers this is becoming an increasingly common problem.

Describe the solution you'd like
Is there another way of pinning the digest that could solve this problem for multi-platform images? Perhaps we can update https://github.com/ossf/scorecard/blob/main/docs/checks.md#pinned-dependencies to note that?

Describe alternatives you've considered
I guess just living with the lower score.

Activity

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

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions