Skip to content

Enable Linux deployment in createrelease.yml#135

Merged
StuartFerguson merged 1 commit intomasterfrom
task/#134_linux_release_workflow
Jul 4, 2025
Merged

Enable Linux deployment in createrelease.yml#135
StuartFerguson merged 1 commit intomasterfrom
task/#134_linux_release_workflow

Conversation

@StuartFerguson
Copy link
Copy Markdown
Member

Updated workflow to support deployment on Linux servers:

  • Modified runs-on to include linux environment.
  • Added steps for installing .NET runtime on Ubuntu.
  • Adapted service removal commands to use systemctl.
  • Transitioned service installation to systemd service files.
  • Updated artifact download paths for Linux directory structure.

closes #134

Updated workflow to support deployment on Linux servers:
- Modified `runs-on` to include `linux` environment.
- Added steps for installing .NET runtime on Ubuntu.
- Adapted service removal commands to use `systemctl`.
- Transitioned service installation to systemd service files.
- Updated artifact download paths for Linux directory structure.
Comment thread .github/workflows/createrelease.yml Outdated
Comment on lines 205 to 340

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 10 months ago

To fix the issue, add a permissions block to the workflow file to explicitly define the least privileges required for the GITHUB_TOKEN. Since the workflow involves deploying services and uploading artifacts, the contents: read permission is likely sufficient. If specific write permissions are required (e.g., for pull requests or issues), they should be added explicitly.

The permissions block can be added at the root level of the workflow to apply to all jobs or within individual jobs to tailor permissions for each job.


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 a5286eb into master Jul 4, 2025
9 checks passed
@github-actions github-actions Bot deleted the task/#134_linux_release_workflow branch September 3, 2025 01:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Create Linux Install workflow

2 participants