mirror of
https://github.com/ZoiteChat/zoitechat.git
synced 2026-03-10 07:50:19 +00:00
Update Windows build workflow with permissions and attestations
Added permissions for artifact handling and attestation.
This commit is contained in:
committed by
GitHub
parent
93cd47de5c
commit
94e92b8edf
29
.github/workflows/windows-build.yml
vendored
29
.github/workflows/windows-build.yml
vendored
@@ -11,6 +11,13 @@ on:
|
||||
jobs:
|
||||
windows_build:
|
||||
runs-on: windows-2019
|
||||
|
||||
permissions:
|
||||
contents: read
|
||||
id-token: write
|
||||
attestations: write
|
||||
artifact-metadata: write
|
||||
|
||||
strategy:
|
||||
matrix:
|
||||
platform: [x64, win32]
|
||||
@@ -90,12 +97,30 @@ jobs:
|
||||
move ..\zoitechat-build .\
|
||||
shell: cmd
|
||||
|
||||
- uses: actions/upload-artifact@v4
|
||||
- name: Upload Installer
|
||||
id: upload_installer
|
||||
uses: actions/upload-artifact@v4
|
||||
with:
|
||||
name: Installer ${{ matrix.arch }}
|
||||
path: ZoiteChat*.exe
|
||||
|
||||
- uses: actions/upload-artifact@v4
|
||||
- name: Attest Installer (Artifact Attestation)
|
||||
if: ${{ github.event_name != 'pull_request' || github.event.pull_request.head.repo.full_name == github.repository }}
|
||||
uses: actions/attest-build-provenance@v3
|
||||
with:
|
||||
subject-name: Installer ${{ matrix.arch }}
|
||||
subject-digest: sha256:${{ steps.upload_installer.outputs.artifact-digest }}
|
||||
|
||||
- name: Upload Build Files
|
||||
id: upload_buildfiles
|
||||
uses: actions/upload-artifact@v4
|
||||
with:
|
||||
name: Build Files ${{ matrix.arch }}
|
||||
path: zoitechat-build
|
||||
|
||||
- name: Attest Build Files (Artifact Attestation)
|
||||
if: ${{ github.event_name != 'pull_request' || github.event.pull_request.head.repo.full_name == github.repository }}
|
||||
uses: actions/attest-build-provenance@v3
|
||||
with:
|
||||
subject-name: Build Files ${{ matrix.arch }}
|
||||
subject-digest: sha256:${{ steps.upload_buildfiles.outputs.artifact-digest }}
|
||||
|
||||
Reference in New Issue
Block a user