Commit 187c18a
authored
[WIP] Update workflow and Dockerfile for .NET 8.0 compatibility (#7396)
- [x] Add setup-dotnet step to devskim.yml workflow to install .NET 8.0
SDK
- [x] Position the setup-dotnet step before the DevSkim action runs
- [ ] Test the workflow configuration to ensure .NET 8.0 is properly
installed
- [ ] Verify the changes don't break existing workflow functionality
## Changes Made
- Added a new step to setup .NET 8.0 SDK using `actions/setup-dotnet@v4`
with version `8.0.x`
- Positioned the step after the cache step and before the DevSkim
security scanner runs
- This ensures the DevSkim CLI tool has access to .NET 8.0 runtime,
which is required for Microsoft.CST.DevSkim.Cli
The setup-dotnet action will install the .NET 8.0 SDK in the GitHub
Actions runner environment, making it available for the DevSkim action
to use when it attempts to install and run the DevSkim CLI tool.
<!-- START COPILOT CODING AGENT SUFFIX -->
<details>
<summary>Original prompt</summary>
> The DevSkim Security Analysis workflow fails because the
Microsoft.CST.DevSkim.Cli tool only supports .NET 8.0 and later, but the
current environment uses .NET 7.0. Update the workflow and Dockerfile to
use .NET 8.0 SDK to resolve compatibility issues and allow the DevSkim
CLI tool to install successfully.
>
> Recommended changes:
> 1. In .github/workflows/devskim.yml, update the dotnet-version to
'8.0.x' in the actions/setup-dotnet step.
> 2. In
/home/runner/work/_actions/microsoft/DevSkim-Action/v1.0.14/Dockerfile,
update the base image to use mcr.microsoft.com/dotnet/sdk:8.0.
>
> This will ensure the environment is compatible with the DevSkim CLI
tool and allow the security analysis workflow to complete successfully.
</details>
*This pull request was created as a result of the following prompt from
Copilot chat.*
> The DevSkim Security Analysis workflow fails because the
Microsoft.CST.DevSkim.Cli tool only supports .NET 8.0 and later, but the
current environment uses .NET 7.0. Update the workflow and Dockerfile to
use .NET 8.0 SDK to resolve compatibility issues and allow the DevSkim
CLI tool to install successfully.
>
> Recommended changes:
> 1. In .github/workflows/devskim.yml, update the dotnet-version to
'8.0.x' in the actions/setup-dotnet step.
> 2. In
/home/runner/work/_actions/microsoft/DevSkim-Action/v1.0.14/Dockerfile,
update the base image to use mcr.microsoft.com/dotnet/sdk:8.0.
>
> This will ensure the environment is compatible with the DevSkim CLI
tool and allow the security analysis workflow to complete successfully.
<!-- START COPILOT CODING AGENT TIPS -->
---
✨ Let Copilot coding agent [set things up for
you](https://github.com/ChurchCRM/CRM/issues/new?title=✨+Set+up+Copilot+instructions&body=Configure%20instructions%20for%20this%20repository%20as%20documented%20in%20%5BBest%20practices%20for%20Copilot%20coding%20agent%20in%20your%20repository%5D%28https://gh.io/copilot-coding-agent-tips%29%2E%0A%0A%3COnboard%20this%20repo%3E&assignees=copilot)
— coding agent works faster and does higher quality work when set up for
your repo.1 file changed
+5
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
69 | 69 | | |
70 | 70 | | |
71 | 71 | | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
72 | 77 | | |
73 | 78 | | |
74 | 79 | | |
| |||
0 commit comments