Skip to content

feat(backend): 名字服务的client新增clb修改后端绑定主机转发权重接口,clb修改监听器转发方式,clb修改监听器会话… #189

feat(backend): 名字服务的client新增clb修改后端绑定主机转发权重接口,clb修改监听器转发方式,clb修改监听器会话…

feat(backend): 名字服务的client新增clb修改后端绑定主机转发权重接口,clb修改监听器转发方式,clb修改监听器会话… #189

name: Check Hard Code IP
on: [workflow_dispatch, push, pull_request]
jobs:
build:
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v4
- name: Check hard code ip
run: |
RESULT=$(grep -nrE '\b([0-9]{1,3}\.){3}[0-9]{1,3}\b' * | grep -v bs-cli_Darwin | grep -v poetry.lock | grep -vE '\b[012345]\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}' | grep -vE '127\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}' | grep -vE '192\.168\.[0-9]{1,3}\.[0-9]{1,3}') || true
if [[ ${RESULT} == '' ]]; then
echo "good job!"
else
echo "Hard code ip founded! Please remove it."
echo -e "${RESULT}"
exit 1
fi