Transition deployment to Linux-based service#833
Conversation
Updated `createrelease.yml` to shift from a Windows-based service to a Linux-based service. Key changes include: - Targeting `linux-x64` in the `dotnet publish` command. - Replacing Windows service management commands with Linux `systemctl` commands. - Adding a step to install the .NET runtime on the Linux server. - Modifying artifact download and unzip steps for Linux compatibility.
Check warning
Code scanning / CodeQL
Workflow does not contain permissions Medium
Show autofix suggestion
Hide autofix suggestion
Copilot Autofix
AI 10 months ago
To fix the issue, we need to add a permissions block to the workflow. This block will explicitly define the least privileges required for the workflow to function correctly. Since the workflow involves downloading artifacts and deploying services, the contents: read permission is sufficient for most operations. If specific jobs require additional permissions, such as pull-requests: write, they can be defined at the job level.
The permissions block should be added at the root level of the workflow to apply to all jobs unless overridden by job-specific permissions.
| @@ -6,2 +6,5 @@ | ||
|
|
||
| permissions: | ||
| contents: read | ||
|
|
||
| jobs: |
Updated
createrelease.ymlto shift from a Windows-based service to a Linux-based service. Key changes include:linux-x64in thedotnet publishcommand.systemctlcommands.closes #832