Add egress policy input
This commit is contained in:
parent
dea7bd51ad
commit
0c817fc78a
4 changed files with 9 additions and 3 deletions
|
|
@ -2,9 +2,13 @@ name: 'Harden Runner'
|
||||||
description: 'GitHub Actions Runtime Security'
|
description: 'GitHub Actions Runtime Security'
|
||||||
inputs:
|
inputs:
|
||||||
allowed-endpoints:
|
allowed-endpoints:
|
||||||
description: 'Allowed endpoints'
|
description: 'Only these endpoints will be allowed if egress-policy is set to block'
|
||||||
required: false
|
required: false
|
||||||
default: ''
|
default: ''
|
||||||
|
egress-policy:
|
||||||
|
description: 'Policy for outbound traffic, can be either audit or block'
|
||||||
|
required: false
|
||||||
|
default: 'block'
|
||||||
branding:
|
branding:
|
||||||
icon: 'check-square'
|
icon: 'check-square'
|
||||||
color: 'green'
|
color: 'green'
|
||||||
|
|
@ -12,4 +16,4 @@ runs:
|
||||||
using: 'node12'
|
using: 'node12'
|
||||||
pre: 'dist/pre/index.js'
|
pre: 'dist/pre/index.js'
|
||||||
main: 'dist/index.js'
|
main: 'dist/index.js'
|
||||||
post: 'dist/post/index.js'
|
post: 'dist/post/index.js'
|
||||||
1
dist/pre/index.js
vendored
1
dist/pre/index.js
vendored
|
|
@ -6298,6 +6298,7 @@ var __awaiter = (undefined && undefined.__awaiter) || function (thisArg, _argume
|
||||||
working_directory: process.env["GITHUB_WORKSPACE"],
|
working_directory: process.env["GITHUB_WORKSPACE"],
|
||||||
api_url: api_url,
|
api_url: api_url,
|
||||||
allowed_endpoints: core.getInput("allowed-endpoints"),
|
allowed_endpoints: core.getInput("allowed-endpoints"),
|
||||||
|
egress_policy: core.getInput("egress-policy"),
|
||||||
};
|
};
|
||||||
const confgStr = JSON.stringify(confg);
|
const confgStr = JSON.stringify(confg);
|
||||||
external_child_process_.execSync("sudo mkdir -p /home/agent");
|
external_child_process_.execSync("sudo mkdir -p /home/agent");
|
||||||
|
|
|
||||||
2
dist/pre/index.js.map
vendored
2
dist/pre/index.js.map
vendored
File diff suppressed because one or more lines are too long
|
|
@ -31,6 +31,7 @@ import * as tc from "@actions/tool-cache";
|
||||||
working_directory: process.env["GITHUB_WORKSPACE"],
|
working_directory: process.env["GITHUB_WORKSPACE"],
|
||||||
api_url: api_url,
|
api_url: api_url,
|
||||||
allowed_endpoints: core.getInput("allowed-endpoints"),
|
allowed_endpoints: core.getInput("allowed-endpoints"),
|
||||||
|
egress_policy: core.getInput("egress-policy"),
|
||||||
};
|
};
|
||||||
|
|
||||||
const confgStr = JSON.stringify(confg);
|
const confgStr = JSON.stringify(confg);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue