Update dependency MSTest.TestFramework to v3 #753
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Whitesource Unified Agent Scan - .NET (dotnet) | |
on: [push, pull_request, workflow_dispatch] | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Setup .NET | |
uses: actions/setup-dotnet@v1 | |
with: | |
dotnet-version: '6.0.x' | |
include-prerelease: true | |
- name: Build with dotnet | |
run: dotnet build ./eShopOnWeb.sln --configuration Release | |
- name: WhiteSource Unified Agent Scan | |
env: | |
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}} | |
WS_APIKEY: ${{secrets.APIKEY}} | |
WS_USERKEY: ${{secrets.USERKEY}} | |
WS_WSS_URL: https://saas.whitesourcesoftware.com/agent | |
WS_PRODUCTNAME: GH_${{github.event.repository.name}} | |
WS_ENABLEIMPACTANALYSIS: true | |
WS_RESOLVEALLDEPENDENCIES: false | |
WS_NUGET_RESOLVEDEPENDENCIES: true | |
WS_NUGET_RUNPRESTEP: true | |
WS_FILESYSTEMSCAN: false | |
WS_GENERATEPROJECTDETAILSJSON: true | |
WS_EXCLUDES: '**/build/** **/tests/**' | |
run: | | |
curl -LJO https://unified-agent.s3.amazonaws.com/wss-unified-agent.jar | |
echo Unified Agent downloaded successfully | |
curl -LJO https://raw.githubusercontent.com/whitesource-ft/xModuleAnalyzer-NET/main/xModuleAnalyzer-NET.sh | |
echo xModuleAnalyzer-NET downloaded successfully | |
chmod +x ./xModuleAnalyzer-NET.sh && ./xModuleAnalyzer-NET.sh |