Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
chenpangpang
transformers
Commits
348e2294
"...git@developer.sourcefind.cn:chenpangpang/transformers.git" did not exist on "2e72bbab2cd169903b1e77b439718c1bdc5d50b2"
Unverified
Commit
348e2294
authored
Jun 12, 2024
by
Luc Georges
Committed by
GitHub
Jun 12, 2024
Browse files
feat(ci): add trufflehog secrets detection (#31344)
parent
17896f67
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
29 additions
and
0 deletions
+29
-0
.github/workflows/trufflehog.yml
.github/workflows/trufflehog.yml
+29
-0
No files found.
.github/workflows/trufflehog.yml
0 → 100644
View file @
348e2294
on
:
push
:
name
:
Secret Leaks
permissions
:
contents
:
read
jobs
:
trufflehog
:
runs-on
:
ubuntu-latest
steps
:
-
shell
:
bash
run
:
|
if [ "${{ github.event_name }}" == "push" ]; then
echo "depth=$(($(jq length <<< '${{ toJson(github.event.commits) }}') + 2))" >> $GITHUB_ENV
echo "branch=${{ github.ref_name }}" >> $GITHUB_ENV
fi
if [ "${{ github.event_name }}" == "pull_request" ]; then
echo "depth=$((${{ github.event.pull_request.commits }}+2))" >> $GITHUB_ENV
echo "branch=${{ github.event.pull_request.head.ref }}" >> $GITHUB_ENV
fi
-
name
:
Checkout code
uses
:
actions/checkout@v4
with
:
ref
:
${{env.branch}}
fetch-depth
:
${{env.depth}}
-
name
:
Secret Scanning
uses
:
trufflesecurity/trufflehog@main
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment