Skip to content

Commit 7e8f45d

Browse files
committed
Attempting to mount github workspace for commit scans
1 parent a4884f2 commit 7e8f45d

File tree

1 file changed

+11
-14
lines changed

1 file changed

+11
-14
lines changed

action.yml

Lines changed: 11 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -94,17 +94,14 @@ runs:
9494
HEAD=${{github.event.pull_request.head.sha}}
9595
fi
9696
fi
97-
##########################################
98-
## Run TruffleHog ##
99-
##########################################
100-
docker run --rm -v .:/tmp -w /tmp \
101-
ghcr.io/trufflesecurity/trufflehog:${VERSION} \
102-
git file:///tmp/ \
103-
--since-commit \
104-
${BASE:-''} \
105-
--branch \
106-
${HEAD:-''} \
107-
--fail \
108-
--no-update \
109-
--github-actions \
110-
${ARGS:-''}
97+
fi
98+
##########################################
99+
## Run TruffleHog ##
100+
##########################################
101+
results=$(docker run --rm -v ${{ github.workspace }}:/tmp -w /tmp \
102+
ghcr.io/trufflesecurity/trufflehog:${VERSION} \
103+
git file:///tmp/ \
104+
--no-update \
105+
--github-actions \
106+
${ARGS:-''})
107+
echo "results='$(echo $results)'" >> $GITHUB_OUTPUT

0 commit comments

Comments
 (0)