ctie-exercice/.gitea/workflows/trufflehog.yml
Adrien Bouvais db7eec76c8
All checks were successful
Build and Push Docker Images / build-and-push (push) Successful in 21s
Validate Kubernetes & YAML / validate-all (push) Successful in 41s
Better trufflehog output
2026-08-17 10:12:19 +02:00

19 lines
621 B
YAML

name: Build and Push Docker Images
on: [pull_request, push]
jobs:
build-and-push:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Run TruffleHog CLI
run: |
curl -sSfL https://raw.githubusercontent.com/trufflesecurity/trufflehog/main/scripts/install.sh | sudo sh -s -- -b /usr/local/bin > /dev/null 2>&1
trufflehog git file://$(pwd) --results=verified --json 2>/dev/null | jq -r '"[\(.DetectorName)] Verified secret found in: \(.SourceMetadata.Data.Git.file // "repository")"'