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:
parent
faeada970c
commit
33e1eb4f4d
14
.github/workflows/publish.yml
vendored
14
.github/workflows/publish.yml
vendored
@ -13,6 +13,11 @@ on:
|
|||||||
tags:
|
tags:
|
||||||
- "v*"
|
- "v*"
|
||||||
|
|
||||||
|
permissions:
|
||||||
|
id-token: write
|
||||||
|
contents: read
|
||||||
|
attestations: write
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
goreleaser:
|
goreleaser:
|
||||||
runs-on: ubuntu-24.04
|
runs-on: ubuntu-24.04
|
||||||
@ -41,8 +46,15 @@ jobs:
|
|||||||
- name: Run GoReleaser
|
- name: Run GoReleaser
|
||||||
uses: goreleaser/goreleaser-action@90a3faa9d0182683851fbfa97ca1a2cb983bfca3 # v6.2.1
|
uses: goreleaser/goreleaser-action@90a3faa9d0182683851fbfa97ca1a2cb983bfca3 # v6.2.1
|
||||||
with:
|
with:
|
||||||
version: latest
|
version: '~> v2'
|
||||||
args: release --clean
|
args: release --clean
|
||||||
env:
|
env:
|
||||||
GPG_FINGERPRINT: "${{ steps.import_gpg.outputs.fingerprint }}"
|
GPG_FINGERPRINT: "${{ steps.import_gpg.outputs.fingerprint }}"
|
||||||
GITHUB_TOKEN: "${{ steps.app-token.outputs.token }}"
|
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 }}"
|
||||||
|
@ -21,7 +21,7 @@ builds:
|
|||||||
goarch: '386'
|
goarch: '386'
|
||||||
binary: '{{ .ProjectName }}_v{{ .Version }}'
|
binary: '{{ .ProjectName }}_v{{ .Version }}'
|
||||||
archives:
|
archives:
|
||||||
- format: zip
|
- formats: [ 'zip' ]
|
||||||
name_template: '{{ .ProjectName }}_{{ .Version }}_{{ .Os }}_{{ .Arch }}'
|
name_template: '{{ .ProjectName }}_{{ .Version }}_{{ .Os }}_{{ .Arch }}'
|
||||||
checksum:
|
checksum:
|
||||||
extra_files:
|
extra_files:
|
||||||
|
Loading…
Reference in New Issue
Block a user