Set GHA workdir (#2393)

* set workdir to tmp

* add workflow dispatch for easier on demand dogfooding
This commit is contained in:
Zachary Rice 2024-02-07 08:14:33 -06:00 committed by GitHub
parent b3ff12d1e9
commit 02fe9e189b
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 2 additions and 1 deletions

View file

@ -8,6 +8,7 @@ on:
branches:
- main
pull_request:
workflow_dispatch:
jobs:
test:

View file

@ -80,7 +80,7 @@ runs:
##########################################
## Run TruffleHog ##
##########################################
docker run --rm -v "$REPO_PATH":/tmp \
docker run --rm -v "$REPO_PATH":/tmp -w /tmp \
ghcr.io/trufflesecurity/trufflehog:latest \
git file:///tmp/ \
--since-commit \