Skip to content

Commit

Permalink
Integrate gitleaks to prevent adding secret
Browse files Browse the repository at this point in the history
  • Loading branch information
kachick committed Apr 14, 2024
1 parent 0882530 commit 6d47fff
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 0 deletions.
14 changes: 14 additions & 0 deletions .github/workflows/gitleaks.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
name: 💧
on: [pull_request, push, workflow_dispatch]
jobs:
gitleaks:
timeout-minutes: 15
name: gitleaks
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- uses: gitleaks/gitleaks-action@e6dab246340401bf53eec993b8f05aebe80ac636 # v2.3.4
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
2 changes: 2 additions & 0 deletions Makefile.toml
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ script = [
"deno lint",
"typos . .github .vscode",
"actionlint",
"gitleaks detect",
]

[tasks.test]
Expand Down Expand Up @@ -77,6 +78,7 @@ script = [
"jq --version",
"jnv --version",
"pinact --version",
"gitleaks version",
]

[tasks.check_no_git_diff]
Expand Down
1 change: 1 addition & 0 deletions flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@
gh
jq
edge-pkgs.jnv
gitleaks
];
};

Expand Down

0 comments on commit 6d47fff

Please sign in to comment.