From 066d34d8ef117af0f0fa401226bcad71e70bf7ce Mon Sep 17 00:00:00 2001 From: huynn0x Date: Tue, 15 Apr 2025 14:59:40 +0700 Subject: [PATCH 1/5] Create SECURITY.md --- SECURITY.md | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 SECURITY.md diff --git a/SECURITY.md b/SECURITY.md new file mode 100644 index 0000000..034e848 --- /dev/null +++ b/SECURITY.md @@ -0,0 +1,21 @@ +# Security Policy + +## Supported Versions + +Use this section to tell people about which versions of your project are +currently being supported with security updates. + +| Version | Supported | +| ------- | ------------------ | +| 5.1.x | :white_check_mark: | +| 5.0.x | :x: | +| 4.0.x | :white_check_mark: | +| < 4.0 | :x: | + +## Reporting a Vulnerability + +Use this section to tell people how to report a vulnerability. + +Tell them where to go, how often they can expect to get an update on a +reported vulnerability, what to expect if the vulnerability is accepted or +declined, etc. From b100824e51804fe7b018798e7b5c55c7b9bb076f Mon Sep 17 00:00:00 2001 From: huynn0x Date: Tue, 15 Apr 2025 15:09:40 +0700 Subject: [PATCH 2/5] Update sql-review.yml --- .github/workflows/sql-review.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/sql-review.yml b/.github/workflows/sql-review.yml index 59c0fbf..af2ec22 100644 --- a/.github/workflows/sql-review.yml +++ b/.github/workflows/sql-review.yml @@ -14,10 +14,10 @@ jobs: runs-on: ubuntu-latest # use self-hosted machines if your Bytebase runs in internal networks. env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # set GITHUB_TOKEN because the 'Check release' step needs it to comment the pull request with check results. - BYTEBASE_URL: https://demo.bytebase.com - BYTEBASE_SERVICE_ACCOUNT: ci@service.bytebase.com + BYTEBASE_URL: https://3afb-113-190-242-52.ngrok-free.app + BYTEBASE_SERVICE_ACCOUNT: api-example@service.bytebase.com BYTEBASE_PROJECT: "projects/project-sample" - BYTEBASE_TARGETS: "instances/test-sample-instance/databases/hr_test" + BYTEBASE_TARGETS: "instances/test-sample-instance/databases/hr_test,instances/prod-sample-instance/databases/hr_prod" FILE_PATTERN: "migrations/*.sql" steps: - name: Checkout From 3404264888402c86b01d94cefbafa089a7271df6 Mon Sep 17 00:00:00 2001 From: huynn0x Date: Tue, 15 Apr 2025 15:36:42 +0700 Subject: [PATCH 3/5] Create V20250415__create_users.sql --- dev/V20250415__create_users.sql | 4 ++++ 1 file changed, 4 insertions(+) create mode 100644 dev/V20250415__create_users.sql diff --git a/dev/V20250415__create_users.sql b/dev/V20250415__create_users.sql new file mode 100644 index 0000000..041bd89 --- /dev/null +++ b/dev/V20250415__create_users.sql @@ -0,0 +1,4 @@ +CREATE TABLE users ( + id INT PRIMARY KEY, + name VARCHAR(255) +); From d8ab5b405e10980af253255c93d0ee9cb8dd75f2 Mon Sep 17 00:00:00 2001 From: huynn0x Date: Tue, 15 Apr 2025 16:12:54 +0700 Subject: [PATCH 4/5] Create 20250415_create_table_t1_ddl.sql --- .github/workflows/migrations/20250415_create_table_t1_ddl.sql | 4 ++++ 1 file changed, 4 insertions(+) create mode 100644 .github/workflows/migrations/20250415_create_table_t1_ddl.sql diff --git a/.github/workflows/migrations/20250415_create_table_t1_ddl.sql b/.github/workflows/migrations/20250415_create_table_t1_ddl.sql new file mode 100644 index 0000000..7a079e4 --- /dev/null +++ b/.github/workflows/migrations/20250415_create_table_t1_ddl.sql @@ -0,0 +1,4 @@ +CREATE TABLE t1 ( + id SERIAL PRIMARY KEY, + name TEXT +); From cc10a247d7104f4b1bb1bfa98b3f7b160b72443f Mon Sep 17 00:00:00 2001 From: huynn0x Date: Tue, 15 Apr 2025 16:15:15 +0700 Subject: [PATCH 5/5] Create 20250415_create_table_t1_ddl.sql --- migrations/20250415_create_table_t1_ddl.sql | 4 ++++ 1 file changed, 4 insertions(+) create mode 100644 migrations/20250415_create_table_t1_ddl.sql diff --git a/migrations/20250415_create_table_t1_ddl.sql b/migrations/20250415_create_table_t1_ddl.sql new file mode 100644 index 0000000..7a079e4 --- /dev/null +++ b/migrations/20250415_create_table_t1_ddl.sql @@ -0,0 +1,4 @@ +CREATE TABLE t1 ( + id SERIAL PRIMARY KEY, + name TEXT +);