You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Initialize Job - ComponentGovernanceComponentDetection - Unable to locate dotnet on build agent, tool failed to execute #90716
Starting: ComponentGovernanceComponentDetection
==============================================================================
Task : Component Governance Detection
Description : Include with your build to enable automatic Component Governance detection.
Version : 0.2320510.1
Author : Microsoft Corporation
Help : Please try our [support bot](http://aka.ms/1esbot?service=cg) for questions and troubleshooting. See http://aka.ms/cgdocs for more information or contact OpenSourceEngSupport@microsoft.com if you run into problems with this task.
==============================================================================
Loading task manifest...
Component Detection starting up...
##[info]Telemetry ID: d71eafea-ef6f-43ff-97a8-6403a0e2af5f
##[info]Result: Will Scan. Reason: Component Detection was manually injected
Starting scan for open source vulnerabilities
OS Platform: linux
OS Architecture: x64
OS Version: 5.4.0-1107-azure
/__w/_tasks/ComponentGovernanceComponentDetection_f2f0881f-4b99-4a1c-80ea-f5b13fd6cec4/0.2320510.1/dotnet-6.0.0.tar.gz
##[error]Unable to locate dotnet on build agent.
##[error]Tool failed to execute.
Finishing: ComponentGovernanceComponentDetection
Report
Summary
24-Hour Hit Count
7-Day Hit Count
1-Month Count
0
0
0
Known issue validation
Build: 🔎 Result validation: ⚠️ Provided build not found. Provide a valid build in the "Build: 🔎" line. Validation performed at: 8/17/2023 6:13:06 AM UTC
This is a long known issue and as far I know - it just generates a warning. It's been the sad reality for musl for a long time. ASP disables explicitly because of this using dotnet/arcade@092ad72
Activity
hoyosjs commentedon May 19, 2023
This is a long known issue and as far I know - it just generates a warning. It's been the sad reality for musl for a long time. ASP disables explicitly because of this using dotnet/arcade@092ad72
carlossanlop commentedon May 22, 2023
Should we move this back to runtime, or create a linked issue? When moved here, Known Build Error does not detect the failure instances in runtime.
missymessa commentedon Jun 8, 2023
@carlossanlop and @hoyosjs Are the Runtime builds still experiencing this? The referenced builds have fallen out of AzDO's retention.
hoyosjs commentedon Jun 8, 2023
Long standing issue - it's component governance on Linux musl (alpine)
missymessa commentedon Jun 8, 2023
Is this something y'all want to keep in dotnet/arcade? Is it impacting more than just dotnet/runtime?
dougbu commentedon Jun 8, 2023
Seems the right thing to do here is disable the task in MUSL jobs. Arcade's templates support disabling the CG task using the
disableComponentGovernanceparameter. For example, dotnet/aspnetcore uses this at https://github.com/dotnet/aspnetcore/blob/62c1334c8d33ca669a6eef6c0e38a806e043f7c2/.azure/pipelines/ci.yml#L546/fyi the default-build.yml template parameter is forwarded along to /eng/common/templates/job/job.yml
melotic commentedon Jul 27, 2023
This is because the CG task will not download a .NET runtime if there isn't one on the agent. Installing any dotnet in the job should fix this.
We used to require a specific .NET version, but this was recently fixed in December, and we never got around to switching the order of operations.
dougbu commentedon Jul 27, 2023
at this point, I suggest moving the issue to runtime. there are at least two ways forward for that team w/o taking any action in arcade
disableComponentGovernanceas a parameter in our YAML templatesdougbu commentedon Aug 17, 2023
@carlossanlop should this be moved to dotnet/runtime or closed❔ you've got options 😀