Skip to content

Add reusable Trufflehog scan workflow #603

Add reusable Trufflehog scan workflow

Add reusable Trufflehog scan workflow #603

name: Check catalog-info.yaml for drift
on:
pull_request: {}
permissions:
contents: read
jobs:
check-catalog-info-drift:
runs-on: ubuntu-latest
steps:
- name: Harden the runner (Audit all outbound calls)
uses: step-security/harden-runner@ec9f2d5744a09debf3a187a3f4f675c53b671911 # v2.13.0
with:
egress-policy: audit
- name: Checkout
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
with:
persist-credentials: false
- name: Setup Go
uses: actions/setup-go@d35c59abb061a4a6fb18e82ac0862c26744d6ab5 # v5.5.0
- name: Regenerate catalog-info.yaml
run: |
make catalog-info.yaml
- name: Check for drift
run: |
if ! git diff --staged --exit-code; then
echo "catalog-info.yaml is not up-to-date, please run \`make catalog-info.yaml\` to update this file."
exit 1
fi