Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 5 additions & 4 deletions .github/workflows/bb-masking-semantic-type-global.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,11 @@ jobs:
service-key: ${{ secrets.BYTEBASE_SERVICE_KEY }}
service-secret: ${{ secrets.BYTEBASE_SERVICE_SECRET }}

- name: Debug Bytebase Login Outputs
run: |
echo "Bytebase Login Outputs:"
echo "${{ toJSON(steps.bytebase-login.outputs) }}"

- name: Get changed files
id: changed-files
uses: tj-actions/changed-files@v42
Expand Down Expand Up @@ -62,8 +67,6 @@ jobs:
run: |
CHANGED_FILE="masking/semantic-type.json"
echo "Processing: $CHANGED_FILE"
echo "token: ${{ steps.bytebase-login.outputs.token }}"
echo "api_url: ${{ steps.bytebase-login.outputs.api_url }}"

response=$(curl -s -w "\n%{http_code}" --request PATCH "${{ steps.bytebase-login.outputs.api_url }}/settings/bb.workspace.semantic-types" \
--header "Authorization: Bearer ${{ steps.bytebase-login.outputs.token }}" \
Expand Down Expand Up @@ -92,8 +95,6 @@ jobs:
run: |
CHANGED_FILE="masking/global-masking-rule.json"
echo "Processing: $CHANGED_FILE"
echo "token: ${{ steps.bytebase-login.outputs.token }}"
echo "api_url: ${{ steps.bytebase-login.outputs.api_url }}"

response=$(curl -s -w "\n%{http_code}" --request PATCH "${{ steps.bytebase-login.outputs.api_url }}/policies/masking_rule?allow_missing=true&update_mask=payload" \
--header "Authorization: Bearer ${{ steps.bytebase-login.outputs.token }}" \
Expand Down
2 changes: 1 addition & 1 deletion masking/global-masking-rule.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
{
"id": "76356d81-6231-4128-9be7-2c549fc505f5",
"condition": {
"expression": "classification_level in [\"2\"]",
"expression": "classification_level in [\"2\", \"3\"]",
"title": "",
"description": ""
},
Expand Down
2 changes: 1 addition & 1 deletion masking/semantic-type.json
Original file line number Diff line number Diff line change
Expand Up @@ -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": {
Expand Down
Loading