Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,10 @@ inputs:
description: Enable file integrity module in prevent mode
required: false
default: 'false'
memory-protection:
description: Enable memory protection module in prevent mode
required: false
default: 'false'
ignored-ip-nets:
description: |
A comma or white space separated list of ignored IP networks in CIDR
Expand Down
7 changes: 7 additions & 0 deletions dist/main/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -3552,6 +3552,7 @@ function getActionConfig() {
allowedIPs: _actions_core__WEBPACK_IMPORTED_MODULE_0__.getInput('allowed-ips'),
allowedHosts: _actions_core__WEBPACK_IMPORTED_MODULE_0__.getInput('allowed-hosts'),
fileIntegrity: _actions_core__WEBPACK_IMPORTED_MODULE_0__.getBooleanInput('file-integrity'),
memoryProtection: _actions_core__WEBPACK_IMPORTED_MODULE_0__.getBooleanInput('memory-protection'),
ignoredIPNets: _actions_core__WEBPACK_IMPORTED_MODULE_0__.getInput('ignored-ip-nets'),
applyFsEvents: _actions_core__WEBPACK_IMPORTED_MODULE_0__.getBooleanInput('apply-fs-events'),
clientId: _actions_core__WEBPACK_IMPORTED_MODULE_0__.getInput('client-id'),
Expand Down Expand Up @@ -3623,6 +3624,7 @@ async function run(config) {
CIMON_ALLOWED_IPS: config.cimon.allowedIPs,
CIMON_ALLOWED_HOSTS: config.cimon.allowedHosts,
CIMON_FILE_INTEGRITY: config.cimon.fileIntegrity,
CIMON_MEM_PROT: config.cimon.memoryProtection,
CIMON_IGNORED_IP_NETS: config.cimon.ignoredIPNets,
CIMON_REPORT_GITHUB_JOB_SUMMARY: config.github.jobSummary,
CIMON_REPORT_PR_SUMMARY: config.github.prSummary,
Expand All @@ -3646,6 +3648,11 @@ async function run(config) {
env.CIMON_FS_SENSOR_PERF_MODE = false;
}

if (config.cimon.memoryProtection) {
// Feature flags that required for the memory protection module.
env.CIMON_FEATURE_GATES = 'FSSensor=1';
}

var retval;
const sudo = await sudoExists();
const options = {
Expand Down
7 changes: 7 additions & 0 deletions src/main/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ function getActionConfig() {
allowedIPs: core.getInput('allowed-ips'),
allowedHosts: core.getInput('allowed-hosts'),
fileIntegrity: core.getBooleanInput('file-integrity'),
memoryProtection: core.getBooleanInput('memory-protection'),
ignoredIPNets: core.getInput('ignored-ip-nets'),
applyFsEvents: core.getBooleanInput('apply-fs-events'),
clientId: core.getInput('client-id'),
Expand Down Expand Up @@ -101,6 +102,7 @@ async function run(config) {
CIMON_ALLOWED_IPS: config.cimon.allowedIPs,
CIMON_ALLOWED_HOSTS: config.cimon.allowedHosts,
CIMON_FILE_INTEGRITY: config.cimon.fileIntegrity,
CIMON_MEM_PROT: config.cimon.memoryProtection,
CIMON_IGNORED_IP_NETS: config.cimon.ignoredIPNets,
CIMON_REPORT_GITHUB_JOB_SUMMARY: config.github.jobSummary,
CIMON_REPORT_PR_SUMMARY: config.github.prSummary,
Expand All @@ -124,6 +126,11 @@ async function run(config) {
env.CIMON_FS_SENSOR_PERF_MODE = false;
}

if (config.cimon.memoryProtection) {
// Feature flags that required for the memory protection module.
env.CIMON_FEATURE_GATES = 'FSSensor=1';
}

var retval;
const sudo = await sudoExists();
const options = {
Expand Down