project_name: gitsign version: 2 gomod: proxy: true builds: - id: gitsign mod_timestamp: '{{ .CommitTimestamp }}' env: - CGO_ENABLED=0 flags: - -trimpath goos: - linux - darwin - freebsd - windows goarch: - amd64 - arm64 ldflags: - "-s -w" - "-extldflags=-zrelro" - "-extldflags=-znow" - "-buildid= -X github.com/sigstore/gitsign/pkg/version.gitVersion={{ .Version }}" - id: gitsign-credential-cache mod_timestamp: '{{ .CommitTimestamp }}' main: ./cmd/gitsign-credential-cache binary: gitsign-credential-cache env: - CGO_ENABLED=0 flags: - -trimpath goos: - linux - darwin - freebsd - windows goarch: - amd64 - arm64 ldflags: - "-s -w" - "-extldflags=-zrelro" - "-extldflags=-znow" - "-buildid= -X github.com/sigstore/gitsign/pkg/version.gitVersion={{ .Version }}" nfpms: - id: default package_name: gitsign vendor: Sigstore homepage: https://github.com/sigstore/gitsign maintainer: Billy Lynch description: Keyless git commit signing using OIDC identity ids: - gitsign - gitsign-credential-cache formats: - apk - deb - rpm archives: - id: binary formats: - binary allow_different_binary_count: true kos: - id: gitsign repositories: - github.com/sigstore/gitsign tags: - 'v{{ .Version }}' ldflags: - "-s -w -extldflags=-zrelro -extldflags=-znow -buildid= -X github.com/sigstore/gitsign/pkg/version.gitVersion={{ .Version }}" main: . bare: true preserve_import_paths: false base_import_paths: false sbom: spdx # then it have a shell base_image: cgr.dev/chainguard/git:latest-dev platforms: - linux/amd64 - linux/arm64 - linux/arm checksum: name_template: 'checksums.txt' source: enabled: true sboms: - id: binaries artifacts: binary - id: packages artifacts: package signs: - cmd: cosign env: - COSIGN_YES=true signature: '${artifact}.bundle' args: - sign-blob - '--bundle=${signature}' - '${artifact}' artifacts: binary output: true release: prerelease: allow draft: true # allow for manual edits github: owner: sigstore name: gitsign footer: | ### Thanks to all contributors!