Ensure signed RPMs have attestations

Thanks to @malancas for highlighting issue ordering of RPM signing and attestations!  Now, all artifacts should have attestations appropriately generated
This commit is contained in:
Andy Feller 2024-05-29 16:18:18 -04:00 committed by GitHub
parent faef2ddd81
commit fe880a3015
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -277,11 +277,6 @@ jobs:
rm -rf dist
mkdir dist
mv -v {linux,macos,windows}/gh_* dist/
- name: Attest release artifacts
if: inputs.environment == 'production'
uses: actions/attest-build-provenance@173725a1209d09b31f9d30a3890cf2757ebbff0d # v1.1.2
with:
subject-path: "dist/gh_*"
- name: Install packaging dependencies
run: sudo apt-get install -y rpm reprepro
- name: Set up GPG
@ -302,6 +297,11 @@ jobs:
run: |
cp script/rpmmacros ~/.rpmmacros
rpmsign --addsign dist/*.rpm
- name: Attest release artifacts
if: inputs.environment == 'production'
uses: actions/attest-build-provenance@173725a1209d09b31f9d30a3890cf2757ebbff0d # v1.1.2
with:
subject-path: "dist/gh_*"
- name: Run createrepo
env:
GPG_SIGN: ${{ inputs.environment == 'production' }}