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