Skip to content

CI. Add Security scanner. Bump action versions #78

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Sep 27, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 5 additions & 3 deletions .github/workflows/nuget-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,12 @@ jobs:
publish:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-dotnet@v1
- name: Checkout
uses: actions/checkout@v4

- name: Setup DotNet
uses: actions/setup-dotnet@v4
with:
dotnet-version: '3.1.x'
- run: dotnet pack src/Regula.FaceSDK.WebClient -c Release -p:PackageVersion=${{github.event.release.name}} -p:Version=${{github.event.release.name}}
- run: dotnet nuget push src/Regula.FaceSDK.WebClient/bin/Release/Regula.FaceSDK.WebClient.${{github.event.release.name}}.nupkg -k ${{secrets.NUGET_AUTH_TOKEN}} -s https://api.nuget.org/v3/index.json

13 changes: 9 additions & 4 deletions .github/workflows/run-smoke-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,17 +4,22 @@ on:
pull_request:
branches:
- master
- stable
- develop

jobs:
run_smoke_test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-dotnet@v1
- name: Checkout
uses: actions/checkout@v4

- name: Setup DotNet
uses: actions/setup-dotnet@v4
with:
dotnet-version: '6.0.x'
- run: dotnet build src/Regula.FaceSDK.NetCoreExample -c Release
- working-directory: src/Regula.FaceSDK.NetCoreExample/bin/Release/net6.0/
run: ./Regula.FaceSDK.NetCoreExample
- run: ./Regula.FaceSDK.NetCoreExample
working-directory: src/Regula.FaceSDK.NetCoreExample/bin/Release/net6.0/
env:
API_BASE_PATH: "https://faceapi.regulaforensics.com/"
1 change: 0 additions & 1 deletion .github/workflows/sast.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -55,4 +55,3 @@ jobs:
echo "Bad FAIL_ON_VULNERABILITIES env var value"
exit 1
fi

25 changes: 25 additions & 0 deletions .github/workflows/trivy-scan.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
name: Trivy Scan

on:
pull_request:
branches:
- main
- master
- stable
- develop

jobs:
trivy-scan:
name: Scanner
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4

- name: Run Trivy vulnerability scanner in fs mode
uses: aquasecurity/trivy-action@master
with:
scan-type: 'fs'
exit-code: '1'
ignore-unfixed: true
severity: 'CRITICAL,HIGH,MEDIUM,LOW'
Loading