Skip to content
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

Support arbitrary metadata in reusable workflow inputs #24

Open
laurentsimon opened this issue Mar 30, 2024 · 1 comment
Open

Support arbitrary metadata in reusable workflow inputs #24

laurentsimon opened this issue Mar 30, 2024 · 1 comment

Comments

@laurentsimon
Copy link
Collaborator

laurentsimon commented Mar 30, 2024

We need to support arbitrary metadata the user wants to associate with its release, like the version, arch, etc as part of the reusable workflow input arguments.

These input can be set in the package descriptor of the attestation. If we have to use purl to pack all this, we'll offload its computation to the caller using callback PURLToPackageDesc() and PackageDescToPURL(). We will need to reserve certain field names like environment to simplify verification by the deployment attestation (this is mostly relevant for containers)

@laurentsimon laurentsimon changed the title Rename environment and support version Support arbitrary metadata in reusable workflow inputs Mar 30, 2024
@laurentsimon
Copy link
Collaborator Author

more generally, a reusable workflow takes as input:

  1. package name
  2. subjects, including their sha256. For containers, it's a single digest
  3. package-metadata (version, arch, etc)

(1) and (3) are used to crate the package desc (in current code) or purl (if we switch to that).
(1) package is matched against the policy package name (without changes?)
(2) is used to populate the attestation subjects

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

No branches or pull requests

1 participant