Skip to content

chore(build): guard gitleaks license and pin action SHA #2

chore(build): guard gitleaks license and pin action SHA

chore(build): guard gitleaks license and pin action SHA #2

Workflow file for this run

name: Gitleaks

Check failure on line 1 in .github/workflows/gitleaks.yml

View workflow run for this annotation

GitHub Actions / .github/workflows/gitleaks.yml

Invalid workflow file

(Line: 17, Col: 13): Unrecognized named-value: 'secrets'. Located at position 1 within expression: secrets.GITLEAKS_LICENSE != ''
on:
pull_request:
push:
branches:
- main
jobs:
gitleaks:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- uses: gitleaks/gitleaks-action@83d9cd684c87d95d656c1458ef04895a7f1cbd8e
if: ${{ secrets.GITLEAKS_LICENSE != '' }}
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
GITLEAKS_LICENSE: ${{ secrets.GITLEAKS_LICENSE }}