added input

This commit is contained in:
Devils-Knight 2022-02-01 10:46:37 +05:30
commit 3c53f22e70
2 changed files with 4 additions and 0 deletions

View file

@ -9,6 +9,9 @@ inputs:
description: 'Policy for outbound traffic, can be either audit or block'
required: false
default: 'block'
token:
description: 'Used to avoid github rate limiting'
default: ${{ github.token }}
branding:
icon: 'check-square'
color: 'green'

View file

@ -55,6 +55,7 @@ import {verifyChecksum} from "./checksum"
cp.execSync("sudo mkdir -p /home/agent");
cp.execSync("sudo chown -R $USER /home/agent");
// Note: to avoid github rate limiting
const downloadPath: string = await tc.downloadTool(
"https://github.com/step-security/agent/releases/download/v0.8.6/agent_0.8.6_linux_amd64.tar.gz", undefined, auth
);