GitHub Action
setup-copywrite
v1.1.3
Latest version
Download and configure the copywrite CLI tool.
Originally based off of setup-signore.
Note: see action.yml for detailed information about configuration and defaults.
- name: Checkout Repo
uses: actions/checkout@v4
- name: Install copywrite
uses: hashicorp/[email protected]
- name: Validate Header Compliance
run: copywrite headers --plan
- name: Install copywrite v0.18.0
uses: hashicorp/[email protected]
with:
version: v0.18.0
- name: Install copywrite v0.18.0 and verify checksum
uses: hashicorp/[email protected]
with:
version: v0.18.0
# https://github.com/hashicorp/copywrite/releases/download/v0.18.0/copywrite_0.18.0_darwin_x86_64.tar.gz sha256 hash
archive-checksum: 88f135d752782447fcb34efee1c3bef64096cd8e1d26c921b0a54cf5ab13d573
- What checksum are we verifying?
- After downloading the OS/arch specific
tar
orzip
archive that contains thecopywrite
binary, we compare its SHA256 hash against the user suppliedarchive-checksum
- After downloading the OS/arch specific