2022-05-18 03:00:25 +02:00
|
|
|
name: gitleaks
|
|
|
|
|
2022-06-27 13:55:24 +02:00
|
|
|
on:
|
|
|
|
push:
|
2022-08-21 20:20:31 +02:00
|
|
|
branches: ['main']
|
|
|
|
tags: ['v*']
|
|
|
|
pull_request:
|
2022-06-27 13:55:24 +02:00
|
|
|
|
2022-05-18 03:00:25 +02:00
|
|
|
|
|
|
|
permissions:
|
|
|
|
contents: read
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
gitleaks:
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
2023-05-02 14:24:53 +02:00
|
|
|
- uses: actions/checkout@8e5e7e5ab8b370d6c329ec480221332ada57f0ab # v3
|
2022-08-21 20:20:31 +02:00
|
|
|
with:
|
|
|
|
fetch-depth: 0
|
2022-06-22 05:08:51 +02:00
|
|
|
- uses: gitleaks/gitleaks-action@v2
|
|
|
|
env:
|
|
|
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
|
|
|
GITLEAKS_LICENSE: ${{ secrets.GITLEAKS_LICENSE}}
|
2022-09-27 15:57:08 +02:00
|
|
|
if: ${{ env.GITLEAKS_LICENSE != '' }}
|