Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add trufflehog workflow #877

Closed
wants to merge 8 commits into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
42 changes: 42 additions & 0 deletions .github/workflows/trufflehog.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
name: Trufflehog

on:
push:
branches:
- master
pull_request:

permissions:
contents: read
issues: write
pull-requests: write
id-token: write

jobs:
TruffleHog:
runs-on: ubuntu-latest
defaults:
run:
shell: bash
steps:
- name: Checkout code
uses: actions/checkout@v3
with:
fetch-depth: 0

- name: TruffleHog OSS
id: trufflehog
uses: trufflesecurity/trufflehog@main
continue-on-error: true
with:
path: ./
base: "${{ github.event.repository.default_branch }}"
head: HEAD
extra_args: --debug

- name: Scan Results Status
if: steps.trufflehog.outcome == 'failure'
run: exit 1

# This is a comment that contains secret-like text, but is not a valid secret:

Check warning on line 41 in .github/workflows/trufflehog.yaml

View workflow job for this annotation

GitHub Actions / TruffleHog

Found unverified Buildkite result 🐷🔑
# buildkite api key: bkua_o2g0j0o09xe7i0xfhlwjfy022rkiegwvgbsfl4ui
Loading