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

Use the latest version of Trufflehog, and use the checkout provided by the GitHub Action checkout step #1

Open
wants to merge 6 commits into
base: master
Choose a base branch
from

Conversation

zbuc
Copy link

@zbuc zbuc commented Jul 9, 2021

If you set up your Trufflehog action to use a checkout step, you can use the checkout exposed to the repo as a volume rather than having to check out the code repository in the container.

Example config:

jobs:
  trufflehog:
    runs-on: ubuntu-latest
    name: Trufflehog
    steps:
      - uses: actions/checkout@v2

      - name: Extract branch name
        shell: bash
        run: echo "##[set-output name=branch;]$(echo ${GITHUB_REF#refs/heads/})"
        id: extract_branch

      - name: trufflehog-actions-scan
        uses: dopplerhq/trufflehog-actions-scan@master
        with:
          scanArguments: "--regex --max_depth=50 --branch=${{ steps.extract_branch.outputs.branch }} --entropy=False --allow=/github/workspace/.trufflehog/allow --exclude_paths=/github/workspace/.trufflehog/exclude_patterns"

Additionally I updated this to use the latest version of trufflehog which supports additional features like the --allow flag.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants