Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

feat: sign release artifacts with cosign#5793

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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Open
scop wants to merge1 commit intogolangci:main
base:main
Choose a base branch
Loading
fromscop:feat/cosign-artifacts
Open
Show file tree
Hide file tree
Changes fromall commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view

Some comments aren't visible on the classic Files Changed page.

6 changes: 6 additions & 0 deletions.github/workflows/release.yml
View file
Open in desktop
Original file line numberDiff line numberDiff line change
Expand Up@@ -7,6 +7,9 @@ on:
jobs:
release:
runs-on: ubuntu-latest
permissions:
contents: write
id-token: write # for cosign
env:
# https://github.com/actions/setup-go#supported-version-syntax
# ex:
Expand DownExpand Up@@ -57,6 +60,9 @@ jobs:
- name: Install snapcraft
run: sudo snap install snapcraft --classic

- name: Set up cosign
uses: sigstore/cosign-installer@v3

- name: Set up QEMU
uses: docker/setup-qemu-action@v3

Expand Down
11 changes: 11 additions & 0 deletions.goreleaser.yml
View file
Open in desktop
Original file line numberDiff line numberDiff line change
Expand Up@@ -87,6 +87,17 @@ release:

For key updates, see the [changelog](https://golangci-lint.run/product/changelog/#{{ .Major }}{{ .Minor }}{{ .Patch }}).

signs:
- signature: ${artifact}.sigstore.json
cmd: cosign
args:
- sign-blob
- --bundle=${signature}
- --new-bundle-format
- --yes
- ${artifact}
artifacts: checksum

source:
enabled: true
name_template: '{{ .ProjectName }}-{{ .Version }}-source'
Expand Down
Loading

[8]ページ先頭

©2009-2025 Movatter.jp