Transition deployment to Linux-based service#128
Merged
StuartFerguson merged 1 commit intomainfrom Jul 4, 2025
Merged
Conversation
Updated `createrelease.yml` to shift from a Windows-based service to a Linux-based service. Key changes include: - Modified `dotnet publish` to target `linux-x64`. - Replaced Windows service management with `systemctl` commands. - Added step to install the .NET runtime on the Linux server. - Introduced a systemd service file for managing the application. - Adjusted file paths and commands to align with the Linux environment.
Comment on lines
157
to
233
Check warning
Code scanning / CodeQL
Workflow does not contain permissions Medium
Show autofix suggestion
Hide autofix suggestion
Copilot Autofix
AI 10 months ago
To resolve the issue flagged by CodeQL, we will add a permissions block at the root of the workflow file. This block will define the minimal set of permissions required for the workflow to execute its tasks. Since the workflow primarily builds and deploys artifacts, it likely only needs contents: read permissions for accessing repository content. If specific jobs require additional permissions (e.g., pull-requests: write), we will define those permissions at the job level.
Suggested changeset
1
.github/workflows/createrelease.yml
| @@ -1,5 +1,8 @@ | ||
| name: Release | ||
|
|
||
| permissions: | ||
| contents: read | ||
|
|
||
| on: | ||
| release: | ||
| types: [published] |
Copilot is powered by AI and may make mistakes. Always verify output.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Updated
createrelease.ymlto shift from a Windows-based service to a Linux-based service. Key changes include:dotnet publishto targetlinux-x64.systemctlcommands.closes #127