This is an automated email from the ASF dual-hosted git repository.

casion pushed a commit to branch dev
in repository https://gitbox.apache.org/repos/asf/linkis-website.git


The following commit(s) were added to refs/heads/dev by this push:
     new 4c1facd298 Add git action to automatically detect ip and output (#656)
4c1facd298 is described below

commit 4c1facd2988e26d49611518a7c1b1d3752f78eb3
Author: binbincheng <[email protected]>
AuthorDate: Thu Feb 2 23:26:15 2023 +0800

    Add git action to automatically detect ip and output (#656)
    
    * Add git action to automatically detect ip and output
---
 .github/workflows/detect-ip.yml | 26 ++++++++++++++++++++++++++
 1 file changed, 26 insertions(+)

diff --git a/.github/workflows/detect-ip.yml b/.github/workflows/detect-ip.yml
new file mode 100644
index 0000000000..12dbaefe32
--- /dev/null
+++ b/.github/workflows/detect-ip.yml
@@ -0,0 +1,26 @@
+name: Check for sensitive data
+
+on:
+  pull_request:
+    branches: [dev,dev-*]
+  push:
+    branches: [dev,dev-*]
+
+jobs:
+  detection:
+    name: automatic-detection
+    runs-on: ubuntu-latest
+    steps:
+      - uses: actions/[email protected]
+      - uses: actions/[email protected]
+        with:
+          node-version: 16
+
+      - run: |
+          ipis=`{ grep -rn 
"[1-9]\{2,3\}\.[0-9]\{2,3\}\.[0-9]\{1,3\}.[0-9]\{1,3\}" * --exclude=custom.scss 
|| true;}`
+          bdpujesis=`{ grep -rn "bdpujes" * || true;}`
+          bdpdwsis=`{ grep -rn "bdpdws" * || true;}`
+          if [[ -n "$ipis" ]];then echo "$ipis"; fi
+          if [[ -n "$bdpujesis" ]];then echo "$bdpujesis"; fi
+          if [[ -n "$bdpdwsis" ]];then echo "$bdpdwsis"; fi
+          if [[ -n "$bdpdwsis" || -n "$ipis" || -n "$bdpujesis"]];then echo 
"check error!" && exit 123; else echo "check success"; fi
\ No newline at end of file


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to