33cccdf396
Terraform Scaleway IAC Validate on Pull Request / iac-validate (pull_request) Failing after 1m37s
15 lines
571 B
YAML
15 lines
571 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 |