فهرست منبع

Update README.md

Zachary Rice 3 سال پیش
والد
کامیت
3a1ab48818
1فایلهای تغییر یافته به همراه19 افزوده شده و 0 حذف شده
  1. 19 0
      README.md

+ 19 - 0
README.md

@@ -65,6 +65,25 @@ cd gitleaks
 make build
 make build
 ```
 ```
 
 
+### Github Action
+Check out the official [Gitleaks GitHub Action](https://github.com/gitleaks/gitleaks-action)
+```
+name: gitleaks
+on: [pull_request, push, workflow_dispatch]
+jobs:
+  scan:
+    name: gitleaks
+    runs-on: ubuntu-latest
+    steps:
+      - uses: actions/checkout@v3
+        with:
+          fetch-depth: 0
+      - uses: gitleaks/gitleaks-action@v2
+        env:
+          GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
+          GITLEAKS_LICENSE: ${{ secrets.GITLEAKS_LICENSE}} # Only required for Organizations, not personal accounts.
+```
+
 ### Pre-Commit
 ### Pre-Commit
 1. Install pre-commit from https://pre-commit.com/#install
 1. Install pre-commit from https://pre-commit.com/#install
 2. Create a `.pre-commit-config.yaml` file at the root of your repository with the following content:
 2. Create a `.pre-commit-config.yaml` file at the root of your repository with the following content: