Skip to content

Commit ec731b4

Browse files
WillemJiangwillem-bdycjcl868
authored
chore: add new action for secret scanning (#166)
* feat: add new action for secret scanning * fix the format of security-scan --------- Co-authored-by: Willem Jiang <143703838+willem-bd@users.noreply.github.com> Co-authored-by: Charles <jinxin001@bytedance.com>
1 parent 1392f93 commit ec731b4

File tree

1 file changed

+22
-0
lines changed

1 file changed

+22
-0
lines changed

.github/workflows/secret-scan.yml

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
on:
2+
push:
3+
branches:
4+
- main
5+
6+
pull_request:
7+
8+
permissions:
9+
contents: read
10+
11+
jobs:
12+
test:
13+
runs-on: ubuntu-latest
14+
steps:
15+
- name: Checkout code
16+
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
17+
with:
18+
fetch-depth: 0
19+
- name: Secret Scanning
20+
uses: trufflesecurity/trufflehog@7dc056a193116ba8d82154bf0549381c8fb8545c # v3.88.14
21+
with:
22+
extra_args: --results=verified,unknown

0 commit comments

Comments
 (0)