Skip to content

Commit eaa265b

Browse files
Merge pull request #52 from bytebase/a-branch-15
A branch 15
2 parents d53f4cc + cf8173f commit eaa265b

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

.github/workflows/bb-masking-semantic-type-global.yml

+3-3
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ jobs:
8484
8585
- name: Apply global masking rule
8686
id: apply-global-masking-rule
87-
if: ${{ steps.changed-files.outputs.any_changed == 'true' && contains(steps.changed-files.outputs.all_changed_files, '/global-masking-rule.json') }}
87+
if: ${{ steps.changed-files.outputs.any_changed == 'true' && contains(steps.changed-files.outputs.all_changed_files, 'global-masking-rule.json') }}
8888
run: |
8989
# Process all global-masking-rule.json files
9090
echo "${{ steps.changed-files.outputs.all_changed_files }}" | tr ' ' '\n' | grep "global-masking-rule.json" | while read -r CHANGED_FILE; do
@@ -138,14 +138,14 @@ jobs:
138138
let apiCallsFound = false;
139139
140140
if (changedFiles.includes('semantic-type.json')) {
141-
const exceptionStatuses = Object.keys(${{ toJSON(steps.apply-semantic-type.outputs) }} || {})
141+
const semanticTypeStatuses = Object.keys(${{ toJSON(steps.apply-semantic-type.outputs) }} || {})
142142
.filter(key => key.startsWith('status_code_'))
143143
.map(key => ({
144144
name: key.replace('status_code_', ''),
145145
status: ${{ toJSON(steps.apply-semantic-type.outputs) }}[key]
146146
}));
147147
148-
exceptionStatuses.forEach(({name, status}) => {
148+
semanticTypeStatuses.forEach(({name, status}) => {
149149
apiCallsFound = true;
150150
const success = status >= 200 && status < 300;
151151
commentBody += `- Semantic Type (${name}): ${success ? '✅' : '❌'} ${status}\n`;

masking/global-masking-rule.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
{
88
"id": "76356d81-6231-4128-9be7-2c549fc505f5",
99
"condition": {
10-
"expression": "classification_level in [\"2\", \"3\"]",
10+
"expression": "classification_level in [\"2\"]",
1111
"title": "",
1212
"description": ""
1313
},

masking/semantic-type.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
},
1616
{
1717
"id": "e8d3fd41-eba0-4afd-ae0f-32c91a4ee710",
18-
"title": "Personal sensitive data",
18+
"title": "Personal sensitive data x",
1919
"description": "Custom semantic type with full masking for personal sensitive data",
2020
"algorithm": {
2121
"fullMask": {

0 commit comments

Comments
 (0)