Skip to content

Conversation

@StuartFerguson
Copy link
Member

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 PowerShell commands with Linux systemctl commands for service management.
  • Added a step to install the .NET runtime on the Linux server.
  • Introduced a systemd service file for managing the application as a service on Linux.
  • Adjusted deployment steps for Linux file paths and commands.

closes #466

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 PowerShell commands with Linux `systemctl` commands
  for service management.
- Added a step to install the .NET runtime on the Linux server.
- Introduced a systemd service file for managing the application
  as a service on Linux.
- Adjusted deployment steps for Linux file paths and commands.
Comment on lines 159 to 235

Check warning

Code scanning / CodeQL

Workflow does not contain permissions Medium

Actions job or workflow does not limit the permissions of the GITHUB_TOKEN. Consider setting an explicit permissions block, using the following as a minimal starting point: {}

Copilot Autofix

AI 5 months ago

To fix the issue, we will add a permissions block to the root of the workflow. This block will define the minimal permissions required for the workflow to function correctly. Based on the provided workflow, it appears that the workflow interacts with artifacts and may require read access to repository contents. We will set contents: read and actions: read as a starting point. If additional permissions are required, they can be added later.


Suggested changeset 1
.github/workflows/createrelease.yml

Autofix patch

Autofix patch
Run the following command in your local git repository to apply this patch
cat << 'EOF' | git apply
diff --git a/.github/workflows/createrelease.yml b/.github/workflows/createrelease.yml
--- a/.github/workflows/createrelease.yml
+++ b/.github/workflows/createrelease.yml
@@ -6,2 +6,6 @@
 
+permissions:
+  contents: read
+  actions: read
+
 jobs:
EOF
@@ -6,2 +6,6 @@

permissions:
contents: read
actions: read

jobs:
Copilot is powered by AI and may make mistakes. Always verify output.
@StuartFerguson StuartFerguson merged commit 74524a0 into main Jul 4, 2025
9 checks passed
@github-actions github-actions bot deleted the task/#466_linux_release_workflow branch September 3, 2025 01:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Create Linux Install workflow

2 participants