Skip to content
Open
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
10 changes: 5 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ The following table shows the available [AnalysisMode](https://docs.microsoft.co

```yaml
- name: Run .NET Code Analysis
uses: dotnet/code-analysis@v1
uses: dotnet/code-analysis@main
id: code-analysis
with:
solution: MySolution.sln
Expand All @@ -87,7 +87,7 @@ The following table shows the available [AnalysisMode](https://docs.microsoft.co

```yaml
- name: Run .NET Code Analysis
uses: dotnet/code-analysis@v1
uses: dotnet/code-analysis@main
id: code-analysis
with:
projects: src\MyProject1.csproj;src\MyProject2.csproj
Expand All @@ -101,7 +101,7 @@ The following table shows the available [AnalysisMode](https://docs.microsoft.co

```yaml
- name: Run .NET Code Analysis
uses: dotnet/code-analysis@v1
uses: dotnet/code-analysis@main
id: code-analysis
with:
project: src\MyProject1.csproj
Expand Down Expand Up @@ -132,7 +132,7 @@ steps:

# Run code analysis for all projects/solutions, such that code analysis violations break the build.
- name: Run .NET Code Analysis
uses: dotnet/code-analysis@v1
uses: dotnet/code-analysis@main
id: code-analysis
with:
build-breaking: true
Expand All @@ -141,7 +141,7 @@ steps:
**Note:** The [Microsoft 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 runner in order to run this action. GitHub hosted runners already have a compatible version of dotnet installed. To ensure a compatible version of dotnet is installed on a self-hosted runner, please configure the [actions/setup-dotnet](https://github.com/actions/setup-dotnet) action.

```yaml
- uses: actions/setup-dotnet@v1
- uses: actions/setup-dotnet@main
with:
dotnet-version: '3.1.x'
```
Expand Down