Skip to content

Commit a8bbc46

Browse files
Merge pull request #62 from bytebase/a-branch-18
update
2 parents 71f0ce2 + d4490d5 commit a8bbc46

File tree

3 files changed

+5
-4
lines changed

3 files changed

+5
-4
lines changed

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

+3-2
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ jobs:
6262
run: |
6363
CHANGED_FILE="masking/semantic-type.json"
6464
echo "Processing: $CHANGED_FILE"
65-
echo ${{ steps.bytebase-login.outputs.token }}
65+
echo "${{ steps.bytebase-login.outputs.token }}"
6666
6767
response=$(curl -s -w "\n%{http_code}" --request PATCH "${{ steps.bytebase-login.outputs.api_url }}/settings/bb.workspace.semantic-types" \
6868
--header "Authorization: Bearer ${{ steps.bytebase-login.outputs.token }}" \
@@ -89,8 +89,9 @@ jobs:
8989
id: apply-global-masking-rule
9090
if: ${{ steps.changed-files.outputs.any_changed == 'true' && contains(steps.changed-files.outputs.all_changed_files, 'global-masking-rule.json') }}
9191
run: |
92-
CHANGED_FILE="masking/global-masking-rule.json"
92+
CHANGED_FILE="masking/global-masking-rule.json"
9393
echo "Processing: $CHANGED_FILE"
94+
echo "${{ steps.bytebase-login.outputs.token }}"
9495
9596
response=$(curl -s -w "\n%{http_code}" --request PATCH "${{ steps.bytebase-login.outputs.api_url }}/policies/masking_rule?allow_missing=true&update_mask=payload" \
9697
--header "Authorization: Bearer ${{ steps.bytebase-login.outputs.token }}" \

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\"]",
10+
"expression": "classification_level in [\"2\", \"3\"]",
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)