From f21263afb80e13cbfa9dcc6783349cd70616ed6e Mon Sep 17 00:00:00 2001 From: James Crocker <87319125+jamesc-grafana@users.noreply.github.com> Date: Wed, 30 Apr 2025 13:48:48 +0100 Subject: [PATCH 1/2] create base workflow for trufflehog --- .github/workflows/self-trufflehog.yaml | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 .github/workflows/self-trufflehog.yaml diff --git a/.github/workflows/self-trufflehog.yaml b/.github/workflows/self-trufflehog.yaml new file mode 100644 index 0000000..8c4257f --- /dev/null +++ b/.github/workflows/self-trufflehog.yaml @@ -0,0 +1,24 @@ +name: zizmor GitHub Actions static analysis +on: + push: + pull_request: + +jobs: + trufflehog: + name: Run trufflehog from current branch (self test) + + permissions: + actions: read + contents: read + + pull-requests: write + security-events: write + + runs-on: ${{ !github.event.repository.private && 'ubuntu-latest' || 'ubuntu-arm64-small' }} + steps: + - name: Checkout + uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4 + with: + persist-credentials: false + - name: Run trufflehog + uses: trufflesecurity/trufflehog@b06f6d72a3791308bb7ba59c2b8cb7a083bd17e4 # v3.88.26 From adbdd362e5a285aadf7f8d5ad6949b4ec500185d Mon Sep 17 00:00:00 2001 From: James Crocker <87319125+jamesc-grafana@users.noreply.github.com> Date: Wed, 30 Apr 2025 13:50:05 +0100 Subject: [PATCH 2/2] rename title --- .github/workflows/self-trufflehog.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/self-trufflehog.yaml b/.github/workflows/self-trufflehog.yaml index 8c4257f..b55f5a8 100644 --- a/.github/workflows/self-trufflehog.yaml +++ b/.github/workflows/self-trufflehog.yaml @@ -1,4 +1,4 @@ -name: zizmor GitHub Actions static analysis +name: Trufflehog GitHub Actions on: push: pull_request: