Skip to content

Commit

Permalink
add cs security audit step
Browse files Browse the repository at this point in the history
  • Loading branch information
wilyle committed Sep 29, 2023
1 parent 520cf81 commit 976ea63
Showing 1 changed file with 38 additions and 1 deletion.
39 changes: 38 additions & 1 deletion .github/workflows/security-audit.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,4 +24,41 @@ jobs:
uses: actions-rs/cargo@v1
with:
command: audit
args: --deny warnings
args: --deny warnings

security_audit_csharp:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
language: [ 'csharp' ]
steps:
- name: Checkout repository and submodules
uses: actions/checkout@v3
with:
submodules: recursive
- name: Install .NET 6.0.119
uses: actions/setup-dotnet@v3
with:
dotnet-version: 6.0.119
global-json-file: cloud_connectors/azure/digital_twins_connector/global.json
- name: Cache NuGet dependencies
uses: actions/cache@v3
with:
path: ~/.nuget/packages
# Look to see if there is a cache hit for the corresponding requirements file
key: ${{ runner.os }}-nuget-${{ hashFiles('**/packages.lock.json') }}
restore-keys: |
${{ runner.os }}-nuget
- name: Check .NET version
run: dotnet --info
- name: Initialize CodeQL
uses: github/codeql-action/init@v2
with:
languages: ${{ matrix.language }}
- name: Build Digital Twins Connector
run: ./cloud_connectors/azure/digital_twins_connector/build.sh
- name: Build MQTT Connector's Azure Function
run: dotnet build cloud_connectors/azure/mqtt_connector/azure_function/src/function.csproj
- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@v2

0 comments on commit 976ea63

Please sign in to comment.