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 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.

closes #127

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

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 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

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
@@ -1,5 +1,8 @@
 name: Release
 
+permissions:
+  contents: read
+
 on:
   release:
     types: [published]
EOF
@@ -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.
@StuartFerguson StuartFerguson merged commit 15acc03 into main Jul 4, 2025
8 checks passed
@github-actions github-actions bot deleted the task/#127_linux_release_workflow branch September 3, 2025 01:41
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