From 89bd434bbf7ce8236fee9a131233e50b283950fe Mon Sep 17 00:00:00 2001 From: priv <140729444+scriptprivate@users.noreply.github.com> Date: Mon, 16 Dec 2024 13:31:12 -0300 Subject: [PATCH 1/4] add badges --- README.md | 3 +++ 1 file changed, 3 insertions(+) diff --git a/README.md b/README.md index a55f798..6e040ae 100644 --- a/README.md +++ b/README.md @@ -8,6 +8,9 @@ + + +

From 2fa9460c760c4db1c70907f43079d098993e48d5 Mon Sep 17 00:00:00 2001 From: priv <140729444+scriptprivate@users.noreply.github.com> Date: Mon, 16 Dec 2024 13:33:14 -0300 Subject: [PATCH 2/4] ci: remove push trigger --- .github/workflows/security-gate.yml | 4 ---- 1 file changed, 4 deletions(-) diff --git a/.github/workflows/security-gate.yml b/.github/workflows/security-gate.yml index 9c13651..1a5c5b8 100644 --- a/.github/workflows/security-gate.yml +++ b/.github/workflows/security-gate.yml @@ -1,10 +1,6 @@ name: Security Gate - LESIS on: - push: - branches: - - main - - develop pull_request: branches: - main From 6df962de7650de487f9c38bbef2fb7d3a10d04f7 Mon Sep 17 00:00:00 2001 From: priv <140729444+scriptprivate@users.noreply.github.com> Date: Mon, 16 Dec 2024 15:38:30 -0300 Subject: [PATCH 3/4] update Helper.pm --- lib/SecurityGate/Utils/Helper.pm | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) diff --git a/lib/SecurityGate/Utils/Helper.pm b/lib/SecurityGate/Utils/Helper.pm index 58c73a5..de8bfab 100644 --- a/lib/SecurityGate/Utils/Helper.pm +++ b/lib/SecurityGate/Utils/Helper.pm @@ -8,17 +8,17 @@ package SecurityGate::Utils::Helper { Security Gate v0.0.3 Core Commands ============== -Command Description -------- ----------- --t, --token GitHub token --r, --repo GitHub repository --c, --critical Critical severity limit --h, --high High severity limit --m, --medium Medium severity limit --l, --low Low severity limit ---dependency-alerts Check for dependency alerts ---secret-scanning-alerts Check for secret scanning alerts ---code-scanning-alerts Check for code scanning alerts +Command Description +------- ----------- +-t, --token GitHub token +-r, --repo GitHub repository +-c, --critical Critical severity limit +-h, --high High severity limit +-m, --medium Medium severity limit +-l, --low Low severity limit +--dependency-alerts Check for dependency alerts +--secret-alerts Check for secret scanning alerts +--code-alerts Check for code scanning alerts EOT } From 93117235e600b3398b5f6c2b85c6db67fadc6afe Mon Sep 17 00:00:00 2001 From: priv <140729444+scriptprivate@users.noreply.github.com> Date: Mon, 16 Dec 2024 15:42:09 -0300 Subject: [PATCH 4/4] update helper-output.t --- tests/helper-output.t | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/helper-output.t b/tests/helper-output.t index 70443e4..619767c 100644 --- a/tests/helper-output.t +++ b/tests/helper-output.t @@ -14,8 +14,8 @@ subtest 'Helper output' => sub { like($helper_output, qr/-t,\ --token/x, 'Helper output contains token option'); like($helper_output, qr/-r,\ --repo/x, 'Helper output contains repo option'); like($helper_output, qr/--dependency-alerts/x, 'Helper output contains dependency alerts option'); - like($helper_output, qr/--secret-scanning-alerts/x, 'Helper output contains secret scanning alerts option'); - like($helper_output, qr/--code-scanning-alerts/x, 'Helper output contains code scanning alerts option'); + like($helper_output, qr/--secret-alerts/x, 'Helper output contains secret scanning alerts option'); + like($helper_output, qr/--code-alerts/x, 'Helper output contains code scanning alerts option'); }; done_testing();