From a924fe65643be7692ecb489d36af2eedd782df00 Mon Sep 17 00:00:00 2001 From: Shunsuke Suzuki Date: Mon, 23 Sep 2024 21:40:34 +0900 Subject: [PATCH] refactor(suzuki-shunsuke/mkghtag): refactor mkghtag --- pkgs/suzuki-shunsuke/mkghtag/registry.yaml | 66 ++++++++++++++-------- registry.yaml | 66 ++++++++++++++-------- 2 files changed, 86 insertions(+), 46 deletions(-) diff --git a/pkgs/suzuki-shunsuke/mkghtag/registry.yaml b/pkgs/suzuki-shunsuke/mkghtag/registry.yaml index bd8a7c24cf1..556d8fb9df3 100644 --- a/pkgs/suzuki-shunsuke/mkghtag/registry.yaml +++ b/pkgs/suzuki-shunsuke/mkghtag/registry.yaml @@ -3,33 +3,53 @@ packages: repo_owner: suzuki-shunsuke repo_name: mkghtag description: CLI to create GitHub Tags via API - asset: mkghtag_{{.OS}}_{{.Arch}}.{{.Format}} - format: tar.gz - overrides: - - goos: windows - format: zip - slsa_provenance: - type: github_release - asset: multiple.intoto.jsonl - checksum: - type: github_release - asset: mkghtag_{{trimV .Version}}_checksums.txt - algorithm: sha256 - cosign: - opts: - - --certificate-identity-regexp - - "https://github\\.com/suzuki-shunsuke/go-release-workflow/\\.github/workflows/release\\.yaml@.*" - - --certificate-oidc-issuer - - "https://token.actions.githubusercontent.com" - - --signature - - https://github.com/suzuki-shunsuke/mkghtag/releases/download/{{.Version}}/mkghtag_{{trimV .Version}}_checksums.txt.sig - - --certificate - - https://github.com/suzuki-shunsuke/mkghtag/releases/download/{{.Version}}/mkghtag_{{trimV .Version}}_checksums.txt.pem - version_constraint: semver("> 0.1.0") + version_constraint: "false" version_overrides: - version_constraint: semver("<= 0.1.0") + asset: mkghtag_{{.OS}}_{{.Arch}}.{{.Format}} + format: tar.gz + slsa_provenance: + type: github_release + asset: multiple.intoto.jsonl + checksum: + type: github_release + asset: mkghtag_{{trimV .Version}}_checksums.txt + algorithm: sha256 + cosign: + opts: + - --certificate-identity-regexp + - "https://github\\.com/suzuki-shunsuke/go-release-workflow/\\.github/workflows/release\\.yaml@.*" + - --certificate-oidc-issuer + - "https://token.actions.githubusercontent.com" + - --signature + - https://github.com/suzuki-shunsuke/mkghtag/releases/download/{{.Version}}/mkghtag_{{trimV .Version}}_checksums.txt.sig + - --certificate + - https://github.com/suzuki-shunsuke/mkghtag/releases/download/{{.Version}}/mkghtag_{{trimV .Version}}_checksums.txt.pem overrides: - goos: windows format: zip slsa_provenance: enabled: false + - version_constraint: "true" + asset: mkghtag_{{.OS}}_{{.Arch}}.{{.Format}} + format: tar.gz + overrides: + - goos: windows + format: zip + slsa_provenance: + type: github_release + asset: multiple.intoto.jsonl + checksum: + type: github_release + asset: mkghtag_{{trimV .Version}}_checksums.txt + algorithm: sha256 + cosign: + opts: + - --certificate-identity-regexp + - "https://github\\.com/suzuki-shunsuke/go-release-workflow/\\.github/workflows/release\\.yaml@.*" + - --certificate-oidc-issuer + - "https://token.actions.githubusercontent.com" + - --signature + - https://github.com/suzuki-shunsuke/mkghtag/releases/download/{{.Version}}/mkghtag_{{trimV .Version}}_checksums.txt.sig + - --certificate + - https://github.com/suzuki-shunsuke/mkghtag/releases/download/{{.Version}}/mkghtag_{{trimV .Version}}_checksums.txt.pem diff --git a/registry.yaml b/registry.yaml index 3427d5e07ee..7dc85c387e0 100644 --- a/registry.yaml +++ b/registry.yaml @@ -43434,36 +43434,56 @@ packages: repo_owner: suzuki-shunsuke repo_name: mkghtag description: CLI to create GitHub Tags via API - asset: mkghtag_{{.OS}}_{{.Arch}}.{{.Format}} - format: tar.gz - overrides: - - goos: windows - format: zip - slsa_provenance: - type: github_release - asset: multiple.intoto.jsonl - checksum: - type: github_release - asset: mkghtag_{{trimV .Version}}_checksums.txt - algorithm: sha256 - cosign: - opts: - - --certificate-identity-regexp - - "https://github\\.com/suzuki-shunsuke/go-release-workflow/\\.github/workflows/release\\.yaml@.*" - - --certificate-oidc-issuer - - "https://token.actions.githubusercontent.com" - - --signature - - https://github.com/suzuki-shunsuke/mkghtag/releases/download/{{.Version}}/mkghtag_{{trimV .Version}}_checksums.txt.sig - - --certificate - - https://github.com/suzuki-shunsuke/mkghtag/releases/download/{{.Version}}/mkghtag_{{trimV .Version}}_checksums.txt.pem - version_constraint: semver("> 0.1.0") + version_constraint: "false" version_overrides: - version_constraint: semver("<= 0.1.0") + asset: mkghtag_{{.OS}}_{{.Arch}}.{{.Format}} + format: tar.gz + slsa_provenance: + type: github_release + asset: multiple.intoto.jsonl + checksum: + type: github_release + asset: mkghtag_{{trimV .Version}}_checksums.txt + algorithm: sha256 + cosign: + opts: + - --certificate-identity-regexp + - "https://github\\.com/suzuki-shunsuke/go-release-workflow/\\.github/workflows/release\\.yaml@.*" + - --certificate-oidc-issuer + - "https://token.actions.githubusercontent.com" + - --signature + - https://github.com/suzuki-shunsuke/mkghtag/releases/download/{{.Version}}/mkghtag_{{trimV .Version}}_checksums.txt.sig + - --certificate + - https://github.com/suzuki-shunsuke/mkghtag/releases/download/{{.Version}}/mkghtag_{{trimV .Version}}_checksums.txt.pem overrides: - goos: windows format: zip slsa_provenance: enabled: false + - version_constraint: "true" + asset: mkghtag_{{.OS}}_{{.Arch}}.{{.Format}} + format: tar.gz + overrides: + - goos: windows + format: zip + slsa_provenance: + type: github_release + asset: multiple.intoto.jsonl + checksum: + type: github_release + asset: mkghtag_{{trimV .Version}}_checksums.txt + algorithm: sha256 + cosign: + opts: + - --certificate-identity-regexp + - "https://github\\.com/suzuki-shunsuke/go-release-workflow/\\.github/workflows/release\\.yaml@.*" + - --certificate-oidc-issuer + - "https://token.actions.githubusercontent.com" + - --signature + - https://github.com/suzuki-shunsuke/mkghtag/releases/download/{{.Version}}/mkghtag_{{trimV .Version}}_checksums.txt.sig + - --certificate + - https://github.com/suzuki-shunsuke/mkghtag/releases/download/{{.Version}}/mkghtag_{{trimV .Version}}_checksums.txt.pem - type: github_release repo_owner: suzuki-shunsuke repo_name: nllint