mirror of
https://github.com/gitleaks/gitleaks-action.git
synced 2026-05-23 14:28:30 +00:00
23 lines
849 B
YAML
23 lines
849 B
YAML
# Copyright © 2022 Gitleaks LLC - All Rights Reserved.
|
|
# You may use this code under the terms of the GITLEAKS-ACTION END-USER LICENSE AGREEMENT.
|
|
# You should have received a copy of the GITLEAKS-ACTION END-USER LICENSE AGREEMENT with this file.
|
|
# If not, please visit https://gitleaks.io/COMMERCIAL-LICENSE.txt.
|
|
|
|
name: gitleaks
|
|
on: [pull_request, push, workflow_dispatch]
|
|
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}}
|
|
# examples of how to use optional configs:
|
|
# GITLEAKS_CONFIG: "configs/simple-config.toml"
|
|
# GITLEAKS_NOTIFY_USER_LIST: "@zricethezav"
|