Skip to content

Conversation

@scop
Copy link
Member

@scop scop commented Feb 27, 2025

This adds GitHub artifact attestations for our release binary assets. Related to and kind of an alternative to #372, I suggest we start with this.

Future improvements would be providing attestations for Docker images as well, and to "upgrade" to SLSA level 3, but I think this is an ok start.

Sneak peek to the results are in my fork, https://github.com/scop/upcloud-cli/attestations

$ curl -fSslLO https://github.com/scop/upcloud-cli/releases/download/v0.0.1/upcloud-cli_0.0.1_linux_x86_64.tar.gz
$ gh attestation verify upcloud-cli_0.0.1_linux_x86_64.tar.gz --repo scop/upcloud-cli
Loaded digest sha256:6428c1709729e223a2b8627531330ac228230e9c94baa57d97021129b48c7f25 for file://upcloud-cli_0.0.1_linux_x86_64.tar.gz
Loaded 1 attestation from GitHub API

The following policy criteria will be enforced:
- Predicate type must match:................ https://slsa.dev/provenance/v1
- Source Repository Owner URI must match:... https://github.com/scop
- Source Repository URI must match:......... https://github.com/scop/upcloud-cli
- Subject Alternative Name must match regex: (?i)^https://github.com/scop/upcloud-cli/
- OIDC Issuer must match:................... https://token.actions.githubusercontent.com

✓ Verification succeeded!

The following 1 attestation matched the policy criteria

- Attestation #1
  - Build repo:..... scop/upcloud-cli
  - Build workflow:. .github/workflows/publish.yml@refs/tags/v0.0.1
  - Signer repo:.... scop/upcloud-cli
  - Signer workflow: .github/workflows/publish.yml@refs/tags/v0.0.1

@scop scop requested a review from a team as a code owner February 27, 2025 10:37
--repo UpCloudLtd/upcloud-cli
```

Attestations are available starting from version 3.16.0.
Copy link
Member Author

Choose a reason for hiding this comment

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

Need to possibly adjust this, depending on which is the first release this becomes available with.

@kangasta kangasta force-pushed the feat/gh-attestation branch from ea84c69 to 7b68106 Compare March 5, 2025 08:44
@kangasta kangasta merged commit 1da7a11 into UpCloudLtd:main Mar 5, 2025
2 checks passed
@scop scop deleted the feat/gh-attestation branch March 5, 2025 09:54
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.

3 participants