Skip to content

Commit

Permalink
Merge pull request #9 from mohitpali/main
Browse files Browse the repository at this point in the history
Add Security scanners
  • Loading branch information
agarwal1510 authored Aug 11, 2023
2 parents 55fe237 + eccd8fb commit 7f973da
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/license-check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ jobs:
working-directory: ./scancode-toolkit
run: ./scancode --help
- name: Run Scan code on pr ref
run: cat targetFiles.txt | while read filename; do echo ./sdkbase/$filename; done | xargs ./scancode-toolkit/scancode -l -n 30 --json-pp - | grep short_name | sort | uniq >> old-licenses.txt
run: cat targetFiles.txt | while read filename; do echo ./signermain/$filename; done | xargs ./scancode-toolkit/scancode -l -n 30 --json-pp - | grep short_name | sort | uniq >> old-licenses.txt
- name: Run Scan code on target
run: cat refDiffFiles.txt | while read filename; do echo ./new-ref/$filename; done | xargs ./scancode-toolkit/scancode -l -n 30 --json-pp - | grep short_name | sort | uniq >> new-licenses.txt
# compare
Expand Down
Original file line number Diff line number Diff line change
@@ -1,17 +1,24 @@
name: Leaked Secrets Scan
name: Security Scan

on: [pull_request]

jobs:
TruffleHog:
securityscan:
name: Security Scan
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v3
with:
fetch-depth: 0
- name: TruffleHog OSS
- name: TruffleHog Secrets Scanner
uses: trufflesecurity/[email protected]
with:
path: ./
base: ${{ github.event.repository.default_branch }}
head: HEAD
extra_args: --debug --only-verified
- name: Run Gosec Security Scanner
uses: securego/gosec@master
with:
args: ./...

0 comments on commit 7f973da

Please sign in to comment.