Skip to content

PR version 1.6.2#88

Merged
bitbacchus merged 15 commits intoproductionfrom
main
Jun 6, 2025
Merged

PR version 1.6.2#88
bitbacchus merged 15 commits intoproductionfrom
main

Conversation

@bitbacchus
Copy link
Member

@bitbacchus bitbacchus commented Jun 6, 2025

Summary:
This pull request includes a series of updates related to deployment automation, workflow configuration, and minor bug fixes:

  • Introduces and iteratively improves the deploy-test.yml workflow for deployment testing.
  • Removes the obsolete deploy-check.yml workflow.
  • Updates deployment.sh, including enhancements for Docker deployment and explicit logrotate return handling.
  • Contains hotfixes for statistics details clickability, dependency updates, and loading spinner addition (from earlier merged/reverted work).
  • Incorporates recent main branch changes, including improved token handling in TokenActor for more reliable authentication refresh.

Comment on lines +12 to +33
runs-on: ubuntu-latest
env:
BRANCH_NAME: ${{ github.ref_name }}

steps:
- name: Set up SSH agent
uses: webfactory/ssh-agent@v0.7.0
with:
ssh-private-key: ${{ secrets.TEST_SSH_PRIVATE_KEY }}

- name: Add test server to known_hosts
run: |
mkdir -p ~/.ssh
echo "${{ secrets.TEST_SSH_KNOWN_HOSTS }}" >> ~/.ssh/known_hosts

- name: Deploy ${{ env.BRANCH_NAME }} to test server
run: |
echo "➡️ Starting remote deployment of branch '${BRANCH_NAME}'"
ssh -o StrictHostKeyChecking=no \
${{ secrets.TEST_SERVER_USER }}@${{ secrets.TEST_SERVER_HOST }} \
"bash ~/deploy_recapp_to_test.sh \"${BRANCH_NAME}\""
echo "✅ Remote deployment of branch '${BRANCH_NAME}' succeeded"

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

To fix the issue, we will add a permissions block at the root of the workflow file. This block will explicitly define the minimal permissions required for the workflow. Since the workflow does not use the GITHUB_TOKEN for any operations, we will set contents: read as the only permission. This ensures that the workflow has the least privilege necessary to operate.


Suggested changeset 1
.github/workflows/deploy-test.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/deploy-test.yml b/.github/workflows/deploy-test.yml
--- a/.github/workflows/deploy-test.yml
+++ b/.github/workflows/deploy-test.yml
@@ -9,2 +9,5 @@
 
+permissions:
+  contents: read
+
 jobs:
EOF
@@ -9,2 +9,5 @@

permissions:
contents: read

jobs:
Copilot is powered by AI and may make mistakes. Always verify output.
Unable to commit as this autofix suggestion is now outdated
@bitbacchus bitbacchus merged commit e3b3e5a into production Jun 6, 2025
6 checks passed
bitbacchus added a commit that referenced this pull request Jun 10, 2025
…ization (#89)

* PR version 1.6.2 (#88)

* Hotfix Can only click on stats detaiils when availible (#85)

* update dependencies

* adds loading spinner to dashboard

* Hotfix: Stats details can only be clicked when stats avail.

* Revert "Hotfix Can only click on stats detaiils when availible (#85)" (#86)

This reverts commit 80a01a1.

* Delete .github/workflows/deploy-check.yml

Updated for Docker deployment

Logrotate function explicitly returns 0 now.

* 🔒 Improve token handling in TokenActor: retry on failure and clear previous timeout (#87)

* Update deploy-test.yml

* Version 1.6.2

* 🩹 fix(Root): defer auth cookie check to useEffect after actor initialization

- Move the inline  →  redirect out of the render path
- Perform the login‐redirect in a  that runs once after
- Prevents spurious redirects on re‐renders (e.g. when using React DevTools “pause”)
bitbacchus added a commit that referenced this pull request Jun 11, 2025
* Hotfix Can only click on stats detaiils when availible (#85)

* update dependencies

* adds loading spinner to dashboard

* Hotfix: Stats details can only be clicked when stats avail.

* Revert "Hotfix Can only click on stats detaiils when availible (#85)" (#86)

This reverts commit 80a01a1.

* Create deploy-test.yml

* Update deploy-test.yml

* Update deploy-test.yml

* Update deploy-test.yml

* Delete .github/workflows/deploy-check.yml

* Update deployment.sh

Updated for Docker deployment

* Update deployment.sh

Logrotate function explicitly returns 0 now.

* 🔒 Improve token handling in TokenActor: retry on failure and clear previous timeout (#87)

* Update deploy-test.yml

* Update deploy-test.yml

* Update deployment.sh

* Version 1.6.2

* version 1.6.2

* 🐛 fix(Root): defer auth cookie check to useEffect after actor initialization (#89)

* PR version 1.6.2 (#88)

* Hotfix Can only click on stats detaiils when availible (#85)

* update dependencies

* adds loading spinner to dashboard

* Hotfix: Stats details can only be clicked when stats avail.

* Revert "Hotfix Can only click on stats detaiils when availible (#85)" (#86)

This reverts commit 80a01a1.

* Delete .github/workflows/deploy-check.yml

Updated for Docker deployment

Logrotate function explicitly returns 0 now.

* 🔒 Improve token handling in TokenActor: retry on failure and clear previous timeout (#87)

* Update deploy-test.yml

* Version 1.6.2

* 🩹 fix(Root): defer auth cookie check to useEffect after actor initialization

- Move the inline  →  redirect out of the render path
- Perform the login‐redirect in a  that runs once after
- Prevents spurious redirects on re‐renders (e.g. when using React DevTools “pause”)

* 🐛 Feature/prevent question details without data (#90)

 🐛 Add ternary operator to conditionally disable question details button

* Feature/docker debian slim wkhtmltopdf install (#91)

* chore(docker): switch to node:20-slim and install wkhtmltopdf
- solves crash during export

* Feature/feature/root add spinner on init (#92)

* feat(Root): show spinner while initializing and refactor auth redirect

* :chore: issues with auto-deploy on the test server

* ✨ chore: issues with auto-deploy to testserver

* Update deploy-test.yml

* ✨ chore: issues with auto-deploy to testserver

* version bump
bitbacchus added a commit that referenced this pull request Jun 23, 2025
* Hotfix Can only click on stats details when available (#85)

* update dependencies

* adds loading spinner to dashboard

* Hotfix: Stats details can only be clicked when stats avail.

* Revert "Hotfix Can only click on stats detaiils when availible (#85)" (#86)

This reverts commit 80a01a1.

* Create deploy-test.yml

* Update deploy-test.yml

* Update deploy-test.yml

* Update deploy-test.yml

* Delete .github/workflows/deploy-check.yml

* Update deployment.sh

Updated for Docker deployment

* Update deployment.sh

Logrotate function explicitly returns 0 now.

* 🔒 Improve token handling in TokenActor: retry on failure and clear previous timeout (#87)

* Update deploy-test.yml

* Update deploy-test.yml

* Update deployment.sh

* Version 1.6.2

* version 1.6.2

* 🐛 fix(Root): defer auth cookie check to useEffect after actor initialization (#89)

* PR version 1.6.2 (#88)

* Hotfix Can only click on stats detaiils when availible (#85)

* update dependencies

* adds loading spinner to dashboard

* Hotfix: Stats details can only be clicked when stats avail.

* Revert "Hotfix Can only click on stats detaiils when availible (#85)" (#86)

This reverts commit 80a01a1.

* Delete .github/workflows/deploy-check.yml

Updated for Docker deployment

Logrotate function explicitly returns 0 now.

* 🔒 Improve token handling in TokenActor: retry on failure and clear previous timeout (#87)

* Update deploy-test.yml

* Version 1.6.2

* 🩹 fix(Root): defer auth cookie check to useEffect after actor initialization

- Move the inline  →  redirect out of the render path
- Perform the login‐redirect in a  that runs once after
- Prevents spurious redirects on re‐renders (e.g. when using React DevTools “pause”)

* 🐛 Feature/prevent question details without data (#90)

 🐛 Add ternary operator to conditionally disable question details button

* Feature/docker debian slim wkhtmltopdf install (#91)

* chore(docker): switch to node:20-slim and install wkhtmltopdf
- solves crash during export

* Feature/feature/root add spinner on init (#92)

* feat(Root): show spinner while initializing and refactor auth redirect

* :chore: issues with auto-deploy on the test server

* ✨ chore: issues with auto-deploy to testserver

* Update deploy-test.yml

* ✨ chore: issues with auto-deploy to testserver

* version bump

* 🐛 fix(authRefresh): break infinite refresh loop by returning exipry timestamp (#94)

* 🐛 fix(authRefresh): break infinite refresh loop by returning expiry timestamp

* version bump
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.

1 participant