feat: add attestation to installer
This commit is contained in:
parent
6b4e7bb2d0
commit
d6bcdffe97
9
.github/workflows/pkg-installer.yml
vendored
9
.github/workflows/pkg-installer.yml
vendored
@ -19,6 +19,10 @@ jobs:
|
|||||||
build:
|
build:
|
||||||
if: github.repository_owner == 'Homebrew'
|
if: github.repository_owner == 'Homebrew'
|
||||||
runs-on: macos-latest
|
runs-on: macos-latest
|
||||||
|
permissions:
|
||||||
|
contents: read # for code access
|
||||||
|
attestations: write # for actions/attest-build-provenance
|
||||||
|
id-token: write # for actions/attest-build-provenance
|
||||||
outputs:
|
outputs:
|
||||||
installer_path: "Homebrew-${{ steps.homebrew-version.outputs.version }}.pkg"
|
installer_path: "Homebrew-${{ steps.homebrew-version.outputs.version }}.pkg"
|
||||||
env:
|
env:
|
||||||
@ -119,6 +123,11 @@ jobs:
|
|||||||
security delete-keychain "${RUNNER_TEMP}/${TEMPORARY_KEYCHAIN_FILE}"
|
security delete-keychain "${RUNNER_TEMP}/${TEMPORARY_KEYCHAIN_FILE}"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
- name: Generate build provenance
|
||||||
|
uses: actions/attest-build-provenance@v1.3.3
|
||||||
|
with:
|
||||||
|
subject-path: Homebrew-${{ steps.homebrew-version.outputs.version }}.pkg
|
||||||
|
|
||||||
- name: Upload installer to GitHub Actions
|
- name: Upload installer to GitHub Actions
|
||||||
uses: actions/upload-artifact@0b2256b8c012f0828dc542b3febcab082c67f72b # v4
|
uses: actions/upload-artifact@0b2256b8c012f0828dc542b3febcab082c67f72b # v4
|
||||||
with:
|
with:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user