Also setup dotnet v3.1.x for CLI
This commit is contained in:
Родитель
e57f3d1e51
Коммит
47e7b59f64
|
@ -17,13 +17,22 @@ jobs:
|
|||
# Checkout your code repository to scan
|
||||
- uses: actions/checkout@v2
|
||||
|
||||
# Ensure a compatible version of dotnet is installed.
|
||||
# Ensure compatible versions of dotnet are installed.
|
||||
|
||||
# The [Microsoft Security Code Analysis CLI](https://aka.ms/mscadocs) is built with dotnet v3.1.201.
|
||||
# A version greater than or equal to v3.1.201 of dotnet must be installed on the agent in order to run this action.
|
||||
# Remote agents already have a compatible version of dotnet installed and this step may be skipped.
|
||||
# For local agents, ensure dotnet version 3.1.201 or later is installed by including this action:
|
||||
- uses: actions/setup-dotnet@v1
|
||||
with:
|
||||
dotnet-version: '3.1.x'
|
||||
|
||||
# A version greater than or equal to v5.0.x of dotnet must be installed on the agent in order to run this action.
|
||||
- uses: actions/setup-dotnet@v1
|
||||
with:
|
||||
dotnet-version: '5.0.x'
|
||||
|
||||
# Run .NET Code Analysis
|
||||
# Run .NET Code Analysis
|
||||
- name: Run .NET Code Analysis
|
||||
uses: ./
|
||||
id: code-analysis
|
||||
|
|
|
@ -20,13 +20,22 @@ jobs:
|
|||
# Checkout your code repository to scan
|
||||
- uses: actions/checkout@v2
|
||||
|
||||
# Ensure a compatible version of dotnet is installed.
|
||||
# Ensure compatible versions of dotnet are installed.
|
||||
|
||||
# The [Microsoft Security Code Analysis CLI](https://aka.ms/mscadocs) is built with dotnet v3.1.201.
|
||||
# A version greater than or equal to v3.1.201 of dotnet must be installed on the agent in order to run this action.
|
||||
# Remote agents already have a compatible version of dotnet installed and this step may be skipped.
|
||||
# For local agents, ensure dotnet version 3.1.201 or later is installed by including this action:
|
||||
- uses: actions/setup-dotnet@v1
|
||||
with:
|
||||
dotnet-version: '3.1.x'
|
||||
|
||||
# A version greater than or equal to v5.0.x of dotnet must be installed on the agent in order to run this action.
|
||||
- uses: actions/setup-dotnet@v1
|
||||
with:
|
||||
dotnet-version: '5.0.x'
|
||||
|
||||
# Run open source static analysis tools
|
||||
# Run open source static analysis tools
|
||||
- name: Run .NET Code Analysis
|
||||
uses: dotnet/code-analysis@v1
|
||||
id: code-analysis
|
||||
|
|
|
@ -20,13 +20,22 @@ jobs:
|
|||
# Checkout your code repository to scan
|
||||
- uses: actions/checkout@v2
|
||||
|
||||
# Ensure a compatible version of dotnet is installed.
|
||||
# Ensure compatible versions of dotnet are installed.
|
||||
|
||||
# The [Microsoft Security Code Analysis CLI](https://aka.ms/mscadocs) is built with dotnet v3.1.201.
|
||||
# A version greater than or equal to v3.1.201 of dotnet must be installed on the agent in order to run this action.
|
||||
# Remote agents already have a compatible version of dotnet installed and this step may be skipped.
|
||||
# For local agents, ensure dotnet version 3.1.201 or later is installed by including this action:
|
||||
- uses: actions/setup-dotnet@v1
|
||||
with:
|
||||
dotnet-version: '3.1.x'
|
||||
|
||||
# A version greater than or equal to v5.0.x of dotnet must be installed on the agent in order to run this action.
|
||||
- uses: actions/setup-dotnet@v1
|
||||
with:
|
||||
dotnet-version: '5.0.x'
|
||||
|
||||
# Run .NET Code Analysis
|
||||
# Run .NET Code Analysis
|
||||
- name: Run .NET Code Analysis
|
||||
uses: dotnet/code-analysis@v1
|
||||
id: code-analysis
|
||||
|
|
Загрузка…
Ссылка в новой задаче