roslynanalyzers failing
Nobody has claimed this yet.
Assessment
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Newbie friendliness
- 25/100
- Issue type
- Bug
- Clarity
- Needs clarification
- Activity status
- Stale
- Tech stack
- github-actions
- Domain
- ci-cd
Research direction
Reproduce the Windows workflow from the provided .yml using C2TT.sln and dotnet/code-analysis@main, then capture the roslynanalyzers exit-code-17 logs. Check the restore and project inputs first; the issue is done when the workflow completes successfully and analysis_results.sarif is uploaded.
Written by the indexing model from the issue text.
Description
Hi, I'm trying to set this action up for a project I'm working on to analyze the code.
However every build fails with
Error: Error running roslynanalyzers job: 1 of 1
Error: GuardianErrorExitCodeException: roslynanalyzers completed with an Error exit code: 17.
Error: Error running tool 1 of 1: roslynanalyzers
Error: Error running roslynanalyzers job: 1 of 1
Error: GuardianErrorExitCodeException: roslynanalyzers completed with an Error exit code: 17.
And I have no clue why. Below is my .yml file:
# sample-workflow-windows-latest
# docs are in the repo
# DISABLED for now - we do not support Ubuntu yet
name: .NET Code Analysis windows-latest
on:
push:
branches:
- master
jobs:
build:
name: .NET Code Analysis runner
# .NET Code Analysis runs on windows-latest.
# ubuntu-latest and macos-latest supporting coming soon
runs-on: windows-latest
steps:
# Checkout your code repository to scan
- uses: actions/checkout@v2
# Ensure compatible versions of dotnet are installed.
# 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 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'
# Run NuGet restore for the solution at repo root
- name: Run NuGet restore
run: dotnet restore .\C2TT.sln
# Run code analysis for the solution at repo root
- name: Run .NET Code Analysis
uses: dotnet/code-analysis@main
id: code-analysis
with:
project: .\C2TT.sln
build-breaking: false
all-categories: all
# Upload the analysis results file
- name: Upload analysis results
uses: actions/upload-artifact@v2
with:
name: analysis_results.sarif
path: ${{ steps.code-analysis.outputs.sarifFile }}
- Dominant language
- JavaScript
- Stars
- 65
- Forks
- 23
- PR merge metrics
- No merged PRs in 30d
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from dotnet/code-analysis
-
Difficulty 3/5 1-2 days Newbie friendliness 42/100
dotnet/code-analysis#23 · 1 reaction ·
-
Difficulty 4/5 3-5 days Newbie friendliness 35/100
dotnet/code-analysis#22 ·
-
Difficulty 5/5 Over a week Newbie friendliness 20/100
dotnet/code-analysis#20 · 3 reactions ·
-
bug
dotnet/code-analysis#18 · 6 comments · 7 reactions · 1 assignee ·
-
Difficulty 3/5 1-2 days Newbie friendliness 30/100
dotnet/code-analysis#17 · 4 reactions ·
All issues in dotnet/code-analysis
Similar issues
-
bug customer-eng Durable Agents Inngest status: needs triage
Difficulty 2/5 1-3 hours Newbie friendliness 82/100
-
optimization optimization:agents-md-curator
Difficulty 2/5 1-3 hours Newbie friendliness 75/100
githubnext/gh-aw-cao#13475 ·
-
[BUG]: "Clear All" in Settings doesn't clear the saved analysis, old data comes back after reload Openbug
Difficulty 2/5 1-3 hours Newbie friendliness 88/100
AOSSIE-Org/OrgExplorer#253 · 1 comment ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 88/100
oxc-project/oxc#26944 ·
-
ai-observability bug team/ai-observability
Difficulty 2/5 1-3 hours Newbie friendliness 78/100