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

manually trigger attestations #1379

Merged
merged 2 commits into from
Nov 11, 2024
Merged

Conversation

tsteven4
Copy link
Collaborator

This removes automatic generation of attestations for continuous releases. Attestations are only generated

  1. for manually triggered workflow runs AND
  2. if the "Generate attestation for binary artifacts" box is checked AND
  3. for the RELEASE job in a matrix

So it's possible to get one attestation for a windows workflow run (the setup installer), one for a macos workflow run (the dmg), and one for a ubuntu workflow run (the snap).

Note when manually triggering a workflow you can select the branch or tag.

There doesn't seem to be a limit on attestations, but it doesn't seem possible to delete one.

When you download the artifacts they are zipped. You must unzip them and verify the attestation on the setup installer, dmg or snap. For example:

$ unzip Windows_Installer\ 6.5.3\,amd64\,amd64\,msvc2019_64\,aqt\,true\,Ninja\,windows-latest\ \(2\).zip
Archive:  Windows_Installer 6.5.3,amd64,amd64,msvc2019_64,aqt,true,Ninja,windows-latest (2).zip
  inflating: GPSBabel-20241111T1330Z-8424347-Manifest.txt
  inflating: GPSBabel-20241111T1330Z-8424347-Setup.exe
$ ~/local/bin/gh attestation verify  GPSBabel-20241111T1330Z-8424347-Setup.exe -R tsteven4/gpsbabel_test
Loaded digest sha256:ea0b02b33210f1be9adc6b2a0e008eb6854b47b28cb6539641a0d4c757b868c8 for file://GPSBabel-20241111T1330Z-8424347-Setup.exe
Loaded 1 attestation from GitHub API
✓ Verification succeeded!

sha256:ea0b02b33210f1be9adc6b2a0e008eb6854b47b28cb6539641a0d4c757b868c8 was attested by:
REPO                    PREDICATE_TYPE                  WORKFLOW
tsteven4/gpsbabel_test  https://slsa.dev/provenance/v1  .github/workflows/windows.yml@refs/heads/master

@tsteven4 tsteven4 merged commit 838bc9d into GPSBabel:master Nov 11, 2024
18 checks passed
@tsteven4 tsteven4 deleted the attestation4 branch November 11, 2024 14:28
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.

1 participant