From a8ccbbe1c28a338e1c29a3483d7169eb18995b60 Mon Sep 17 00:00:00 2001 From: Jia Wei Date: Fri, 20 Mar 2026 17:04:30 +0100 Subject: [PATCH] Added secrets scanning --- .github/workflows/main.yaml | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 .github/workflows/main.yaml diff --git a/.github/workflows/main.yaml b/.github/workflows/main.yaml new file mode 100644 index 0000000..484126f --- /dev/null +++ b/.github/workflows/main.yaml @@ -0,0 +1,26 @@ +name: Secret Scanning + +on: + pull_request: + push: + branches: [main] + workflow_dispatch: + +permissions: + contents: read + pull-requests: read + +jobs: + scan: + name: Gitleaks Scan + runs-on: ubuntu-latest + steps: + - name: Checkout code + uses: actions/checkout@v4 + with: + fetch-depth: 0 + + - name: Run Gitleaks + uses: gitleaks/gitleaks-action@v2 + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} \ No newline at end of file