Skip to content
You're viewing an older version of this GitHub Action. Do you want to see the latest version instead?
hashicorp

GitHub Action

setup-copywrite

v1.1.0

setup-copywrite

hashicorp

setup-copywrite

setup-copywrite downloads, installs, and configures the copywrite CLI tool

Installation

Copy and paste the following snippet into your .yml file.

              

- name: setup-copywrite

uses: hashicorp/[email protected]

Learn more about this action in hashicorp/setup-copywrite

Choose a version

setup-copywrite

Download and configure the copywrite CLI tool.

Originally based off of setup-signore.

Usage

Note: see action.yml for detailed information about configuration and defaults.

Install the latest copywrite client release and validate headers

- name: Checkout Repo
  uses: actions/checkout@v3

- name: Install copywrite
  uses: hashicorp/[email protected]
  
- name: Validate Header Compliance
  run: copywrite headers --plan

Install a specific copywrite client release

- name: Install copywrite v0.1.2
  uses: hashicorp/[email protected]
  with:
    version: v0.13.1

Install a specific copywrite client release, verifying its archive checksum

- name: Install copywrite v0.1.2 and verify checksum
  uses: hashicorp/[email protected]
  with:
    version: v0.13.1
    # https://github.com/hashicorp/copywrite/releases/download/v0.13.1/copywrite_0.13.1_darwin_x86_64.tar.gz sha256 hash
    archive-checksum: 359b0d80459012481f19a2bf7afafb5d6e01f2e5f8e4af42a89c0f5289adbaec

FAQ

  • What checksum are we verifying?
    • After downloading the os/arch specific tar or zip archive that contains the copywrite binary, we compare its SHA256 hash against the user supplied archive-checksum