diff --git a/action.yml b/action.yml index 6d816b6..b620b48 100644 --- a/action.yml +++ b/action.yml @@ -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' diff --git a/src/setup.ts b/src/setup.ts index ebc9b79..1ca2bbf 100644 --- a/src/setup.ts +++ b/src/setup.ts @@ -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 );