Merged
Conversation
* update dependencies * adds loading spinner to dashboard * Hotfix: Stats details can only be clicked when stats avail.
Updated for Docker deployment
Logrotate function explicitly returns 0 now.
…evious timeout (#87)
…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”)
🐛 Add ternary operator to conditionally disable question details button
* chore(docker): switch to node:20-slim and install wkhtmltopdf - solves crash during export
* 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
Comment on lines
17
to
38
| runs-on: ubuntu-latest | ||
| env: | ||
| BRANCH_NAME: ${{ github.event.inputs.branch || github.head_ref || 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 }} \ | ||
| "export BRANCH_NAME='${BRANCH_NAME}'; 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
Show autofix suggestion
Hide autofix suggestion
Copilot Autofix
AI 9 months ago
To fix the issue, we need to add a permissions block to the workflow. This block should specify the least privileges required for the workflow to function correctly. Since the workflow does not interact with repository contents or pull requests, the permissions can be set to contents: read as a minimal starting point. This ensures that the GITHUB_TOKEN has limited access.
The permissions block should be added at the root level of the workflow to apply to all jobs, as there is only one job (deploy) in this workflow.
Suggested changeset
1
.github/workflows/deploy-test.yml
| @@ -14,2 +14,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
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.
[Release] Merge main into production – 2025-06-11
We have deployed a new version to production! This release merges the latest changes from the
mainbranch, bringing new features, improvements, and bug fixes.Highlights
Deployment & Workflow
.github/workflows/deploy-test.yml.github/workflows/deploy-check.ymldeployment.shfor easier log management and improved robustnessBackend
node:20-slim(wasnode:20-alpine)wkhtmltopdfand related font support to backend Docker imageFrontend
TokenActor.tsfor more reliable authenticationRoot.tsx): better error handling and loading screenFor a complete list of changes, see the commit history between
mainandproduction.