Skip to content

Commit

Permalink
[actions] Add binskim as static code analysis tools to identify secur…
Browse files Browse the repository at this point in the history
…ity vulnerabilities in build system
  • Loading branch information
liushilongbuaa committed Aug 1, 2023
1 parent 04a6031 commit 42f0fda
Showing 1 changed file with 29 additions and 0 deletions.
29 changes: 29 additions & 0 deletions .github/workflows/binskim.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
name: BinSkim
on:
pull_request:
branches:
- master
push:

jobs:
binskim:
if: github.repository_owner == 'sonic-net'
runs-on: windows-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-dotnet@v1
with:
dotnet-version: '6.0.x'
- name: submodule
run: |
git -c submodule.src/sonic-genl-packet.update=none submodule update --init
- name: Run OSSAR
uses: github/ossar-action@v1
id: ossar
env:
GDN_BANDIT_TARGET: D:/a/sonic-buildimage/sonic-buildimage/src
GDN_BANDIT_RECURSIVE: true
- name: Upload results to Security tab
uses: github/codeql-action/upload-sarif@v2
with:
sarif_file: ${{ steps.ossar.outputs.sarifFile }}

0 comments on commit 42f0fda

Please sign in to comment.