File tree 2 files changed +35
-3
lines changed
2 files changed +35
-3
lines changed Original file line number Diff line number Diff line change
1
+ name : Secrets Scan
2
+ on :
3
+ pull_request :
4
+ types : [opened, synchronize, reopened]
5
+ jobs :
6
+ security-secrets :
7
+ runs-on : ubuntu-latest
8
+ steps :
9
+ - uses : actions/checkout@v4
10
+ with :
11
+ fetch-depth : ' 2'
12
+ ref : ' ${{ github.event.pull_request.head.ref }}'
13
+ - run : |
14
+ git reset --soft HEAD~1
15
+ - name : Install Talisman
16
+ run : |
17
+ # Download Talisman
18
+ wget https://github.com/thoughtworks/talisman/releases/download/v1.37.0/talisman_linux_amd64 -O talisman
19
+
20
+ # Checksum verification
21
+ checksum=$(sha256sum ./talisman | awk '{print $1}')
22
+ if [ "$checksum" != "8e0ae8bb7b160bf10c4fa1448beb04a32a35e63505b3dddff74a092bccaaa7e4" ]; then exit 1; fi
23
+
24
+ # Make it executable
25
+ chmod +x talisman
26
+ - name : Run talisman
27
+ run : |
28
+ # Run Talisman with the pre-commit hook
29
+ ./talisman --githook pre-commit
Original file line number Diff line number Diff line change 1
1
fileignoreconfig:
2
- - filename: package-lock.json
3
- checksum: 1c800fd99bd50e77185fe36aa6494210e33096452dc72280a9931fc4a3dc67e3
4
- - filename: .husky/pre-commit
2
+ - filename: .github/workflows/secrets-scan.yml
3
+ ignore_detectors:
4
+ - filecontent
5
+ - filename: package-lock.json
6
+ checksum: 9d0340f9359927d477fe8ab4650642c068c592be63fb817651d866849e0dbbc2
7
+ - filename: .husky/pre-commit
5
8
checksum: 5baabd7d2c391648163f9371f0e5e9484f8fb90fa2284cfc378732ec3192c193
6
9
version: ""
You can’t perform that action at this time.
0 commit comments