From 595a9a48f752fd68f32ca6cfddf9afb8c53c63d0 Mon Sep 17 00:00:00 2001 From: OP3ratordec <1914592563@qq.com> Date: Wed, 4 Dec 2024 17:40:03 +0800 Subject: [PATCH 1/3] test --- masking/data-classification.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/masking/data-classification.json b/masking/data-classification.json index d2caa69..9958df4 100644 --- a/masking/data-classification.json +++ b/masking/data-classification.json @@ -8,7 +8,7 @@ "levels": [ { "id": "1", - "title": "Level 1", + "title": "Level 01", "description": "" }, { From 118d6abfbe8c5dc8b60e13c1953fc15c68722682 Mon Sep 17 00:00:00 2001 From: OP3ratordec <1914592563@qq.com> Date: Wed, 4 Dec 2024 17:51:33 +0800 Subject: [PATCH 2/3] chore: update masking-3 --- .github/workflows/bb-masking-3.yml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/bb-masking-3.yml b/.github/workflows/bb-masking-3.yml index c898f99..ce10e21 100644 --- a/.github/workflows/bb-masking-3.yml +++ b/.github/workflows/bb-masking-3.yml @@ -82,15 +82,15 @@ jobs: exit 1 fi - - name: Apply semantic type + - 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') }} run: | - # Process all masking-exception.json files - echo "${{ steps.changed-files.outputs.all_changed_files }}" | tr ' ' '\n' | grep "global-masking-exception.json" | while read -r CHANGED_FILE; do + # 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 echo "Processing: $CHANGED_FILE" - response=$(curl -s -w "\n%{http_code}" --request PATCH "${{ steps.bytebase-login.outputs.api_url }}/settings/bb.workspace.semantic-types?allow_missing=true" \ + response=$(curl -s -w "\n%{http_code}" --request PATCH "${{ steps.bytebase-login.outputs.api_url }}/settings/bb.workspace.global-masking-rule?allow_missing=true" \ --header "Authorization: Bearer ${{ steps.bytebase-login.outputs.token }}" \ --header "Content-Type: application/json" \ --data @"$CHANGED_FILE") From 705c69c0ea90b15bd3fd471df222b2594c0db567 Mon Sep 17 00:00:00 2001 From: OP3ratordec <1914592563@qq.com> Date: Wed, 4 Dec 2024 17:53:12 +0800 Subject: [PATCH 3/3] update --- masking/data-classification.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/masking/data-classification.json b/masking/data-classification.json index 9958df4..d2caa69 100644 --- a/masking/data-classification.json +++ b/masking/data-classification.json @@ -8,7 +8,7 @@ "levels": [ { "id": "1", - "title": "Level 01", + "title": "Level 1", "description": "" }, {