github.com/goreleaser/goreleaser@v1.25.1/.github/workflows/gitleaks.yml (about)

     1  name: gitleaks
     2  
     3  on:
     4    push:
     5      branches: ['main']
     6      tags: ['v*']
     7    pull_request:
     8  
     9  
    10  permissions:
    11    contents: read
    12  
    13  jobs:
    14    gitleaks:
    15      runs-on: ubuntu-latest
    16      steps:
    17        - uses: actions/checkout@9bb56186c3b09b4f86b1c65136769dd318469633 # v3
    18          with:
    19            fetch-depth: 0
    20        - uses: gitleaks/gitleaks-action@v2
    21          env:
    22            GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
    23            GITLEAKS_LICENSE: ${{ secrets.GITLEAKS_LICENSE}}
    24          if: ${{ env.GITLEAKS_LICENSE != '' }}