@davoodmehraban89 / medusa / commits / e0b65960
Fork 0

security(ci): add security-secrets.yml

davoodmehraban89 committed Oct 14, 2026 at 22:32 UTC e0b65960b0170efa6037325e024bac99d1e8430f
1 file changed +37
.github/workflows/security-secrets.yml new
+37
@@ -0,0 +1,37 @@
1 +name: Security / Secret scanning
2 +
3 +on:
4 + pull_request:
5 + push:
6 + branches: [main]
7 + schedule:
8 + - cron: "41 4 * * 1"
9 + workflow_dispatch:
10 +
11 +permissions:
12 + contents: read
13 +
14 +concurrency:
15 + group: security-secrets-${{ github.ref }}
16 + cancel-in-progress: true
17 +
18 +jobs:
19 + gitleaks:
20 + name: Scan repository and Git history
21 + runs-on: ubuntu-latest
22 + timeout-minutes: 60
23 + steps:
24 + - name: Checkout full Git history
25 + uses: actions/checkout@v6
26 + with:
27 + fetch-depth: 0
28 + persist-credentials: false
29 + - name: Detect exposed credentials
30 + uses: gitleaks/gitleaks-action@v3
31 + env:
32 + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
33 + # Public personal-account repo: no Gitleaks license is required.
34 + # Never put potential secret values in public PR comments/artifacts.
35 + GITLEAKS_ENABLE_COMMENTS: "false"
36 + GITLEAKS_ENABLE_UPLOAD_ARTIFACT: "false"
37 + GITLEAKS_ENABLE_SUMMARY: "false"