Skip to content

fix: awk-based cask checksum patching is fragile — same vulnerability as dewey#67 #18

@jflowers

Description

@jflowers

Problem

The sign-macos job in .github/workflows/release.yml uses the same flag-based awk script for patching Homebrew cask checksums that was found to be broken in Dewey (dewey#67).

The awk script assumes url appears before sha256 in GoReleaser-generated cask sections. If GoReleaser's floating version resolves to a version that produces sha256-before-url, checksums will be silently placed on the wrong platform lines.

Recommendation

Replace the flag-based awk approach with the order-agnostic extraction + sed replacement pattern implemented in Dewey. See the Dewey fix for the exact approach.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions