Install aqua quickly.
Install aqua with a single command:
curl -sSfL https://raw.githubusercontent.com/step-security/aqua-installer/v4.0.4/aqua-installer | bashFor safer installation, verify the checksum before execution:
curl -sSfL -O https://raw.githubusercontent.com/step-security/aqua-installer/v4.0.4/aqua-installer
echo "98b883756cdd0a6807a8c7623404bfc3bc169275ad9064dc23a6e24ad398f43d aqua-installer" | sha256sum -c -
chmod +x aqua-installer
./aqua-installer- Linux, macOS:
${AQUA_ROOT_DIR:-${XDG_DATA_HOME:-$HOME/.local/share}/aquaproj-aqua}/bin/aqua - Windows:
${AQUA_ROOT_DIR:-$HOME/AppData/Local/aquaproj-aqua}/bin/aqua
-v [version]: Specify aqua version (defaults to latest if omitted)
Example with version specification:
curl -sSfL https://raw.githubusercontent.com/step-security/aqua-installer/v4.0.4/aqua-installer | bash -s -- -v v2.43.1- uses: step-security/aqua-installer@v4
with:
aqua_version: v2.43.1- uses: step-security/aqua-installer@v4
with:
aqua_version: v2.43.1
working_directory: foo
aqua_opts: ""
env:
AQUA_CONFIG: aqua-config.yaml
AQUA_LOG_LEVEL: debug| Name | Description |
|---|---|
aqua_version |
Installed aqua version |
| Name | Default | Description |
|---|---|---|
skip_install_aqua |
"false" |
Skip installation if aqua exists (v3.1.0+) |
enable_aqua_install |
"true" |
Skip aqua i command if "false" |
aqua_opts |
-l |
Options for aqua i command |
working_directory |
"" |
Working directory for execution |
policy_allow |
"" |
Enable policy enforcement (v2.3.0+) |
No outputs are provided.
While aqua-installer lacks built-in caching, you can cache packages using actions/cache:
- uses: actions/cache@v5
with:
path: ~/.local/share/aquaproj-aqua
key: v2-aqua-installer-${{runner.os}}-${{runner.arch}}-${{hashFiles('aqua.yaml')}}
restore-keys: |
v2-aqua-installer-${{runner.os}}-${{runner.arch}}-
- uses: step-security/aqua-installer@v4
with:
aqua_version: v2.43.1For split configurations, include additional file hashes in cache keys.
Default behavior: Runs with -l option, caching only packages used in workflows. To cache all packages, unset this option:
aqua_opts: ""