@@ -44,8 +44,8 @@ This tutorial code repository is at https://github.com/bytebase/api-example/tree
44444545 export bytebase_password=bbs_xxxxxxxxxxxxxilcLVG
4646 bytebase_token=$( curl -v ${bytebase_url} /v1/auth/login \
47- --data-raw ' {"email":"' ${bytebase_account} ' ","password":"' ${bytebase_password} ' ","web":true}' \
48- --compressed 2>&1 | grep token | grep -o ' access-token=[^;]*;' | grep -o ' [^;]*' | sed ' s/access-token=//g; s/;//g' )
47+ --data-raw ' {"email":"' ${bytebase_account} ' ","password":"' ${bytebase_password} ' ","web":true}' \
48+ --compressed 2>&1 | grep token | grep -o ' access-token=[^;]*;' | grep -o ' [^;]*' | sed ' s/access-token=//g; s/;//g' )
4949 echo $bytebase_token
5050 ```
5151
@@ -85,19 +85,19 @@ You may notice that the SQL review rules are not applied to any resources yet fr
85851 . Follow the ` README.md ` to run the scripts to apply the SQL review rules to environments.
8686
8787 ``` bash
88- curl --request PATCH " ${bytebase_url} /v1/environments/test/policies/tag?allow_missing=true&update_mask=payload" \
88+ curl --request PATCH " ${bytebase_url} /v1/environments/test/policies/tag?allow_missing=true&update_mask=payload" \
8989 --header ' Authorization: Bearer ' ${bytebase_token} \
9090 --data @binding/environments/test.json
9191
92- curl --request PATCH " ${bytebase_url} /v1/environments/prod/policies/tag?allow_missing=true&update_mask=payload" \
92+ curl --request PATCH " ${bytebase_url} /v1/environments/prod/policies/tag?allow_missing=true&update_mask=payload" \
9393 --header ' Authorization: Bearer ' ${bytebase_token} \
9494 --data @binding/environments/prod.json
9595 ```
9696
97971 . Continue with the ` README.md ` to apply the SQL review rules to projects.
9898
9999 ``` bash
100- curl --request PATCH " ${bytebase_url} /v1/projects/project-sample/policies/tag?allow_missing=true&update_mask=payload" \
100+ curl --request PATCH " ${bytebase_url} /v1/projects/project-sample/policies/tag?allow_missing=true&update_mask=payload" \
101101 --header ' Authorization: Bearer ' ${bytebase_token} \
102102 --data @binding/projects/project-sample.json
103103 ```
0 commit comments