Files

17 lines
596 B
YAML

name: Setup Sectool
description: Download and install the sectool binary from GitHub releases
runs:
using: "composite"
steps:
- name: Download sectool binary
shell: bash
run: |
LATEST=$(curl -s https://api.github.com/repos/a13labs/sectool/releases/latest)
ASSET_URL=$(echo "$LATEST" | jq -r '.assets[] | select(.name | test("linux.*x64")) | .browser_download_url')
curl -sL "$ASSET_URL" -o /tmp/sectool.zip
unzip -o /tmp/sectool.zip -d /usr/local/bin
rm /tmp/sectool.zip
chmod +x /usr/local/bin/sectool
sectool version