0
0
mirror of https://github.com/bpg/terraform-provider-proxmox.git synced 2025-06-29 18:21:10 +00:00

chore(ci): enable attestation (#1841)

Signed-off-by: Pavel Boldyrev <627562+bpg@users.noreply.github.com>
This commit is contained in:
Pavel Boldyrev 2025-03-20 22:08:30 -04:00 committed by GitHub
parent faeada970c
commit 33e1eb4f4d
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 14 additions and 2 deletions

View File

@ -13,6 +13,11 @@ on:
tags:
- "v*"
permissions:
id-token: write
contents: read
attestations: write
jobs:
goreleaser:
runs-on: ubuntu-24.04
@ -41,8 +46,15 @@ jobs:
- name: Run GoReleaser
uses: goreleaser/goreleaser-action@90a3faa9d0182683851fbfa97ca1a2cb983bfca3 # v6.2.1
with:
version: latest
version: '~> v2'
args: release --clean
env:
GPG_FINGERPRINT: "${{ steps.import_gpg.outputs.fingerprint }}"
GITHUB_TOKEN: "${{ steps.app-token.outputs.token }}"
- name: Attest
uses: actions/attest-build-provenance@v2
with:
subject-path: ./dist/*.zip
env:
GITHUB_TOKEN: "${{ steps.app-token.outputs.token }}"

View File

@ -21,7 +21,7 @@ builds:
goarch: '386'
binary: '{{ .ProjectName }}_v{{ .Version }}'
archives:
- format: zip
- formats: [ 'zip' ]
name_template: '{{ .ProjectName }}_{{ .Version }}_{{ .Os }}_{{ .Arch }}'
checksum:
extra_files: