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:
|
||||
if: github.repository_owner == 'Homebrew'
|
||||
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:
|
||||
installer_path: "Homebrew-${{ steps.homebrew-version.outputs.version }}.pkg"
|
||||
env:
|
||||
@ -119,6 +123,11 @@ jobs:
|
||||
security delete-keychain "${RUNNER_TEMP}/${TEMPORARY_KEYCHAIN_FILE}"
|
||||
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
|
||||
uses: actions/upload-artifact@0b2256b8c012f0828dc542b3febcab082c67f72b # v4
|
||||
with:
|
||||
|
Loading…
x
Reference in New Issue
Block a user