Skip to content

Commit

Permalink
Switch action to 4.0.1 (#8)
Browse files Browse the repository at this point in the history
* Switch action to 4.0.1

* Update download url struct

* Update action.yml

* Update action.yml
  • Loading branch information
anushkamittal2001 authored May 18, 2024
1 parent aef60bc commit 97abb1c
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ inputs:
release:
description: NCTL scan release version to be installed
required: false
default: 3.4.3
default: 4.0.1
runs:
using: composite
steps:
Expand All @@ -30,16 +30,16 @@ runs:
set -e
# Determine the download URL based on the release version
download_url="https://nirmata-downloads.s3.us-east-2.amazonaws.com/nctl/nctl_${{ inputs.release }}/nctl_${{ inputs.release }}_linux_64-bit.zip"
download_url="https://nirmata-downloads.s3.us-east-2.amazonaws.com/nctl/nctl_${{ inputs.release }}/nctl_${{ inputs.release }}_linux_386.zip"
log_info "Downloading nctl version '${{ inputs.release }}' from ${download_url}"
curl -L -o nctl.zip $download_url
log_info "Unzipping nctl..."
unzip -q nctl.zip
unzip -o nctl.zip
log_info "Making nctl executable..."
chmod +x nctl
chmod u+x nctl
log_info "Moving nctl to /usr/local/bin (requires sudo)..."
sudo mv nctl /usr/local/bin/nctl
Expand Down

0 comments on commit 97abb1c

Please sign in to comment.