From d60175bf9adad43560131194f73ea8b12ec8d9af Mon Sep 17 00:00:00 2001
From: adela
Date: Wed, 15 Jan 2025 15:26:12 +0800
Subject: [PATCH 1/3] update
---
.github/workflows/bb-masking-semantic-type-global.yml | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/.github/workflows/bb-masking-semantic-type-global.yml b/.github/workflows/bb-masking-semantic-type-global.yml
index 02fabdd..c99d1fe 100644
--- a/.github/workflows/bb-masking-semantic-type-global.yml
+++ b/.github/workflows/bb-masking-semantic-type-global.yml
@@ -84,7 +84,7 @@ jobs:
- name: Apply global masking rule
id: apply-global-masking-rule
- if: ${{ steps.changed-files.outputs.any_changed == 'true' && contains(steps.changed-files.outputs.all_changed_files, '/global-masking-rule.json') }}
+ if: ${{ steps.changed-files.outputs.any_changed == 'true' && contains(steps.changed-files.outputs.all_changed_files, 'global-masking-rule.json') }}
run: |
# Process all global-masking-rule.json files
echo "${{ steps.changed-files.outputs.all_changed_files }}" | tr ' ' '\n' | grep "global-masking-rule.json" | while read -r CHANGED_FILE; do
From aee8b7e2147de9d623cdc5074c22fb7b1c37c8e8 Mon Sep 17 00:00:00 2001
From: adela
Date: Wed, 15 Jan 2025 15:41:34 +0800
Subject: [PATCH 2/3] fix
---
.github/workflows/bb-masking-semantic-type-global.yml | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/.github/workflows/bb-masking-semantic-type-global.yml b/.github/workflows/bb-masking-semantic-type-global.yml
index c99d1fe..2f16554 100644
--- a/.github/workflows/bb-masking-semantic-type-global.yml
+++ b/.github/workflows/bb-masking-semantic-type-global.yml
@@ -138,14 +138,14 @@ jobs:
let apiCallsFound = false;
if (changedFiles.includes('semantic-type.json')) {
- const exceptionStatuses = Object.keys(${{ toJSON(steps.apply-semantic-type.outputs) }} || {})
+ const semanticTypeStatuses = Object.keys(${{ toJSON(steps.apply-semantic-type.outputs) }} || {})
.filter(key => key.startsWith('status_code_'))
.map(key => ({
name: key.replace('status_code_', ''),
status: ${{ toJSON(steps.apply-semantic-type.outputs) }}[key]
}));
- exceptionStatuses.forEach(({name, status}) => {
+ semanticTypeStatuses.forEach(({name, status}) => {
apiCallsFound = true;
const success = status >= 200 && status < 300;
commentBody += `- Semantic Type (${name}): ${success ? '✅' : '❌'} ${status}\n`;
From cf8173fd10bf25bed30aeb0f6954bc4794934fc7 Mon Sep 17 00:00:00 2001
From: adela
Date: Wed, 15 Jan 2025 15:42:42 +0800
Subject: [PATCH 3/3] update
---
masking/global-masking-rule.json | 2 +-
masking/semantic-type.json | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/masking/global-masking-rule.json b/masking/global-masking-rule.json
index 4ff3dec..b17c7f5 100644
--- a/masking/global-masking-rule.json
+++ b/masking/global-masking-rule.json
@@ -7,7 +7,7 @@
{
"id": "76356d81-6231-4128-9be7-2c549fc505f5",
"condition": {
- "expression": "classification_level in [\"2\", \"3\"]",
+ "expression": "classification_level in [\"2\"]",
"title": "",
"description": ""
},
diff --git a/masking/semantic-type.json b/masking/semantic-type.json
index f03e55c..97bdc12 100644
--- a/masking/semantic-type.json
+++ b/masking/semantic-type.json
@@ -15,7 +15,7 @@
},
{
"id": "e8d3fd41-eba0-4afd-ae0f-32c91a4ee710",
- "title": "Personal sensitive data",
+ "title": "Personal sensitive data x",
"description": "Custom semantic type with full masking for personal sensitive data",
"algorithm": {
"fullMask": {