From c664e982dc657d3e4b3e53a1c7657c6c6ed2e1eb Mon Sep 17 00:00:00 2001 From: Shiv Bhagavatula Date: Fri, 29 Dec 2023 11:37:31 +0530 Subject: [PATCH] - Added sort to fix ci-verify --- README.md | 2 +- tools/gendoc.sh | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 36593a5..6061710 100644 --- a/README.md +++ b/README.md @@ -9,9 +9,9 @@ Repository to hold Security Intents in standard template format. ## Security Intents - [blockAsset](intents/core/blockAsset.yaml) - - [protectPort](intents/core/protectPort.yaml) - [blockRawSocket](intents/core/blockRawSocket.yaml) - [protectAsset](intents/core/protectAsset.yaml) + - [protectPort](intents/core/protectPort.yaml) ## Security Threat Template ``` diff --git a/tools/gendoc.sh b/tools/gendoc.sh index 8a70c55..1900135 100755 --- a/tools/gendoc.sh +++ b/tools/gendoc.sh @@ -41,7 +41,7 @@ writeIntents() { ## Security Intents EOF if [[ -d $INTENTS_DIR ]]; then - for i in $(find $INTENTS_DIR -name '*.yaml'); + for i in $(find $INTENTS_DIR -name '*.yaml' | sort); do file=${i##*/} j=${file%.*} @@ -68,7 +68,7 @@ generateIntentFilesForThreats() { ## Security Threats EOF if [[ -d $THREATS_DIR ]]; then - for i in $(find $THREATS_DIR -name '*.yaml'); + for i in $(find $THREATS_DIR -name '*.yaml' | sort); do file=${i##*/} j=${file%.*}