Skip to content

Commit

Permalink
Add a gitleaks actions
Browse files Browse the repository at this point in the history
Because these repositories are in the UW-GAC organization, I also
needed to obtain for a gitleaks license and add it as a secret in
the UW-GAC organization.
  • Loading branch information
amstilp committed Nov 21, 2023
1 parent 5cb74dd commit 255ce08
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions .github/workflows/gitleaks.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
name: gitleaks
on:
pull_request:
push:
workflow_dispatch:
schedule:
- cron: "0 4 * * *" # run once a day at 4 AM
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.

0 comments on commit 255ce08

Please sign in to comment.