Skip to content

Conversation

@StuartFerguson
Copy link
Member

@StuartFerguson StuartFerguson commented Jul 4, 2025

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.

closes #832

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.
Comment on lines 162 to 238

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


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,5 @@
 
+permissions:
+  contents: read
+
 jobs:
EOF
@@ -6,2 +6,5 @@

permissions:
contents: read

jobs:
Copilot is powered by AI and may make mistakes. Always verify output.
@StuartFerguson StuartFerguson merged commit 3f5f5dc into master Jul 4, 2025
12 checks passed
@github-actions github-actions bot deleted the task/#832_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