Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: sign pulumi binaries with cosign #11283

Closed
wants to merge 1 commit into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
5 changes: 5 additions & 0 deletions .github/workflows/ci-build-binaries.yml
Expand Up @@ -48,6 +48,9 @@ jobs:
env:
PULUMI_VERSION: ${{ inputs.version }}

permissions:
id-token: write

steps:
- name: "Windows cache workaround"
# https://github.com/actions/cache/issues/752#issuecomment-1222415717
Expand Down Expand Up @@ -80,6 +83,7 @@ jobs:
- name: Setup versioning env vars
run: |
./scripts/versions.sh | tee -a "${GITHUB_ENV}"
- uses: sigstore/cosign-installer@9becc617647dfa20ae7b1151972e9b3a2c338a2b # v2.8.1
- name: Install GoReleaser
uses: goreleaser/goreleaser-action@v3
with:
Expand Down Expand Up @@ -116,4 +120,5 @@ jobs:
retention-days: 1
path: |
goreleaser/*.tar.gz
goreleaser/*.sig
goreleaser/*.zip
11 changes: 11 additions & 0 deletions .goreleaser.yml
Expand Up @@ -58,6 +58,17 @@ archives:
strip_parent: true
name_template: "{{ .ProjectName }}-{{ .Tag }}-{{ .Os }}-{{ .Arch }}"

signs:
- cmd: cosign
certificate: '${artifact}.pem'
args:
- sign-blob
- '--output-certificate=${certificate}'
- '--output-signature=${signature}'
- '${artifact}'
artifacts: binary
output: true

snapshot:
name_template: "{{ .Version }}-SNAPSHOT"

Expand Down
@@ -0,0 +1,4 @@
changes:
- type: feat
scope: ci
description: sign pulumi binaries with cosign