Skip to content

Commit

Permalink
fix(ci): separate gitleaks github action
Browse files Browse the repository at this point in the history
  • Loading branch information
WilliamHsieh committed Sep 6, 2024
1 parent a2ac746 commit bf3e998
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 5 deletions.
5 changes: 0 additions & 5 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,11 +34,6 @@ jobs:
- name: Checkout
uses: actions/checkout@v4

- uses: gitleaks/gitleaks-action@v2
if: ${{ github.ref == 'refs/heads/master' && matrix.target != 'home-manager' }}
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

- name: Insall nix
uses: cachix/install-nix-action@V27
with:
Expand Down
16 changes: 16 additions & 0 deletions .github/workflows/check.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
name: gitleaks
on: [pull_request, push, workflow_dispatch]
jobs:
scan:
name: gitleaks
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0

- uses: gitleaks/gitleaks-action@v2
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

# TODO: add nix flake check

0 comments on commit bf3e998

Please sign in to comment.