Sign inSign up

sbx/vale-kit:20260827-2d26f13b91e884116ff94ea5f1819adbb33b4ec0

Manifest digest

sha256:dd4c433d425f487ca34562bdb2f24206bf4adeb3e05e708312b875151e8d84c6

Last pushed

26 days by dockerpublicbot

Type

Sandbox Kit

Manifest digest

sha256:dd4c433d425f487ca34562bdb2f24206bf4adeb3e05e708312b875151e8d84c6

yaml
schemaVersion: "2"
kind: mixin
name: vale
displayName: Vale
description: Installs the Vale prose linter from a pinned GitHub release.
agentInstructions:
    content: |
        ## Vale prose linter

        The `vale` CLI is installed and available on `PATH`. Use it to lint
        prose in Markdown, AsciiDoc, reStructuredText, and other text formats.
        Run `vale --version` to confirm, and `vale <file>` to lint a file.
permissions:
    network:
        allow:
            - github.com
            - objects.githubusercontent.com
            - release-assets.githubusercontent.com
setup:
    install:
        - command: |
            set -euo pipefail
            VALE_VERSION=3.14.2
            ARCH=$(dpkg --print-architecture)
            case "$ARCH" in
              amd64)
                TARBALL="vale_${VALE_VERSION}_Linux_64-bit.tar.gz"
                SHA256="469cf88ec58a374dca14b2564c4391d2c9a1c632210aa0b642758b794082e05f"
                ;;
              arm64)
                TARBALL="vale_${VALE_VERSION}_Linux_arm64.tar.gz"
                SHA256="b11fa9955b93814f993442568b9b922604cc4b574643037b84900e9514860802"
                ;;
              *)
                echo "unsupported arch: $ARCH" >&2
                exit 1
                ;;
            esac
            curl --proto '=https' --tlsv1.2 -fsSL \
              -o /tmp/vale.tgz \
              "https://github.com/vale-cli/vale/releases/download/v${VALE_VERSION}/${TARBALL}"
            echo "${SHA256}  /tmp/vale.tgz" | sha256sum -c -
            tar -C /usr/local/bin -xzf /tmp/vale.tgz vale
            rm /tmp/vale.tgz
            vale --version
          user: "0"
          description: Install pinned Vale CLI