Switch deployment to Linux and update dependencies#56
Merged
StuartFerguson merged 1 commit intomasterfrom Jul 4, 2025
Merged
Conversation
- 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 on lines
142
to
218
Check warning
Code scanning / CodeQL
Workflow does not contain permissions Medium
Show autofix suggestion
Hide autofix suggestion
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: readis 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
permissionsblock.
Suggested changeset
1
.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 |
Copilot is powered by AI and may make mistakes. Always verify output.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
createrelease.ymlto target Linux runtime and manage services with systemd.Sharedpackage version from2025.6.1to2025.6.2.appsettings.staging.jsonto point to the new database server at192.168.1.163.closes Create Linux Install workflow #55