Files
Ota-dashboard/.gitea/workflows/leaks.yaml
Urs Rudolph 7971628a39
Some checks failed
gitleaks / gitleaks (push) Failing after 3s
OTA Dashboard Test / Explore-Gitea-Actions (push) Successful in 13s
Copy gitleaks binary before using it
2025-12-26 22:45:00 +01:00

25 lines
767 B
YAML

name: gitleaks
on:
pull_request:
push:
workflow_dispatch:
schedule:
- cron: "0 4 * * *" # run once a day at 4 AM
jobs:
scan:
name: gitleaks
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
# - uses: gitleaks/gitleaks-action@v2
# env:
# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
# GITLEAKS_LICENSE: ${{ secrets.GITLEAKS_LICENSE }}
- name: Run GitLeaks
run: |
wget https://github.com/gitleaks/gitleaks/releases/download/v8.30.0/gitleaks_8.30.0_linux_x64.tar.gz && \
tar -zxvf gitleaks_8.30.0_linux_x64.tar.gz && \
sudo mv gitleaks /usr/local/bin && gitleaks --platform \
gitleaks detect --source . -v