diff --git a/.github/CODEOWNERS b/.github/CODEOWNERS index 162ba2a6239..477cf17dea2 100644 --- a/.github/CODEOWNERS +++ b/.github/CODEOWNERS @@ -823,6 +823,7 @@ embed.go @grafana/grafana-as-code /.github/workflows/pr-k8s-codegen-check.yml @grafana/grafana-app-platform-squad /.github/workflows/go-lint.yml @grafana/grafana-backend-services-squad /.github/workflows/trivy-scan.yml @grafana/grafana-backend-services-squad +/.github/workflows/trufflehog.yml @Proximyst /.github/workflows/changelog.yml @zserge /.github/actions/changelog @zserge /.github/workflows/pr-frontend-unit-tests.yml @grafana/grafana-frontend-platform diff --git a/.github/workflows/trufflehog.yml b/.github/workflows/trufflehog.yml new file mode 100644 index 00000000000..761916940fe --- /dev/null +++ b/.github/workflows/trufflehog.yml @@ -0,0 +1,35 @@ +name: Trufflehog + +on: + pull_request: + types: + - opened + - synchronize + - reopened + +concurrency: + group: ${{ github.workflow }}-${{ github.ref }} + cancel-in-progress: true + +permissions: {} + +jobs: + trufflehog: + name: Run Trufflehog + runs-on: ubuntu-latest + permissions: + contents: read # clone the repo + + steps: + - name: Checkout code + uses: actions/checkout@v4 + with: + persist-credentials: false + fetch-depth: 0 + ref: ${{ github.head_ref }} + - name: Trufflehog + uses: trufflesecurity/trufflehog@90190deac64289cb10bb694894be8db9ead8790b # v3.88.29 + with: + base: ${{ github.event.pull_request.base.sha }} + head: ${{ github.event.pull_request.head.sha }} + extra_args: --results=verified