Skip to content

Commit fc7c473

Browse files
Merge pull request #64 from bytebase/a-branch-18
update
2 parents 3c09df2 + 4056a2c commit fc7c473

File tree

3 files changed

+7
-6
lines changed

3 files changed

+7
-6
lines changed

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

+5-4
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,11 @@ jobs:
2929
service-key: ${{ secrets.BYTEBASE_SERVICE_KEY }}
3030
service-secret: ${{ secrets.BYTEBASE_SERVICE_SECRET }}
3131

32+
- name: Debug Bytebase Login Outputs
33+
run: |
34+
echo "Bytebase Login Outputs:"
35+
echo "${{ toJSON(steps.bytebase-login.outputs) }}"
36+
3237
- name: Get changed files
3338
id: changed-files
3439
uses: tj-actions/changed-files@v42
@@ -62,8 +67,6 @@ jobs:
6267
run: |
6368
CHANGED_FILE="masking/semantic-type.json"
6469
echo "Processing: $CHANGED_FILE"
65-
echo "token: ${{ steps.bytebase-login.outputs.token }}"
66-
echo "api_url: ${{ steps.bytebase-login.outputs.api_url }}"
6770
6871
response=$(curl -s -w "\n%{http_code}" --request PATCH "${{ steps.bytebase-login.outputs.api_url }}/settings/bb.workspace.semantic-types" \
6972
--header "Authorization: Bearer ${{ steps.bytebase-login.outputs.token }}" \
@@ -92,8 +95,6 @@ jobs:
9295
run: |
9396
CHANGED_FILE="masking/global-masking-rule.json"
9497
echo "Processing: $CHANGED_FILE"
95-
echo "token: ${{ steps.bytebase-login.outputs.token }}"
96-
echo "api_url: ${{ steps.bytebase-login.outputs.api_url }}"
9798
9899
response=$(curl -s -w "\n%{http_code}" --request PATCH "${{ steps.bytebase-login.outputs.api_url }}/policies/masking_rule?allow_missing=true&update_mask=payload" \
99100
--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)