Skip to content

Switch deployment to Linux and update dependencies#56

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

Switch deployment to Linux and update dependencies#56
StuartFerguson merged 1 commit intomasterfrom
task/#55_linux_release_workflow

Conversation

@StuartFerguson
Copy link
Copy Markdown
Member

  • Updated createrelease.yml to target Linux runtime and manage services with systemd.
  • Added step to install .NET runtime on the Linux server.
  • Upgraded Shared package version from 2025.6.1 to 2025.6.2.
  • Modified connection strings in appsettings.staging.json to point to the new database server at 192.168.1.163.
    closes Create Linux Install workflow #55

- Updated `createrelease.yml` to target Linux runtime and manage services with systemd.
- Added step to install .NET runtime on the Linux server.
- Upgraded `Shared` package version from `2025.6.1` to `2025.6.2`.
- Modified connection strings in `appsettings.staging.json` to point to the new database server at `192.168.1.163`.
Comment thread .github/workflows/createrelease.yml Outdated
Comment on lines 142 to 218

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

The fix involves adding an explicit permissions block to the workflow to define the least privileges required for the GITHUB_TOKEN. This ensures that the deployment workflow only has access to resources relevant to its tasks.

In this case:

  • For the entire workflow, contents: read is sufficient to interact with the repository contents.
  • Specific jobs, such as deployproduction, might require additional permissions for managing pull requests or writing to issues. These can be added as needed.
  • The fix will be applied at the workflow root level to cover all jobs unless overridden by a job-specific permissions block.

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]
@@ -139,6 +142,8 @@
           sudo systemctl status "$SERVICE_NAME" --no-pager # For debugging/verification          
 
   deployproduction:
+    permissions:
+      contents: read
     runs-on: [productionserver, linux]
     needs: [buildlinux, deploystaging]
     environment: production
EOF
@@ -1,5 +1,8 @@
name: Release

permissions:
contents: read

on:
release:
types: [published]
@@ -139,6 +142,8 @@
sudo systemctl status "$SERVICE_NAME" --no-pager # For debugging/verification

deployproduction:
permissions:
contents: read
runs-on: [productionserver, linux]
needs: [buildlinux, deploystaging]
environment: production
Copilot is powered by AI and may make mistakes. Always verify output.
@StuartFerguson StuartFerguson merged commit 4453f35 into master Jul 4, 2025
8 checks passed
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