ctie-exercice/.gitea/workflows/trufflehog.yml
Adrien Bouvais 570892fe74
Some checks failed
Build and Push Docker Images / build-and-push (push) Successful in 27s
Validate Kubernetes & YAML / validate-all (push) Has been cancelled
Fix
2026-08-17 10:14:54 +02:00

19 lines
614 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 2>/dev/null | jq -r '"[\(.DetectorName)] Verified secret found in: \(.SourceMetadata.Data.Git.file // "repository")"'