Add GitHub Actions workflow and PDF report generator for Task 4 (SSH & RDP) - #3
Merged
Merged
Conversation
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.
Motivation
Description
scripts/task4_remote_access_report.sh, который выполняет установку и проверкуopenssh-server/sshpass, демонстрирует вход по паролю и по ключу, генерирует ключи, добавляет инструкции для PowerShell и устанавливает/проверяетxrdp, формирует JSON-манифест и вызываетscripts/build_pdf_report.pyдля сборкиreports/task4/report.pdf..github/workflows/task4-remote-access-report.yml, который запускается вручную (workflow_dispatch), устанавливает зависимости и запускает скрипт для сборки и загрузки артефактаreports/task4/report.pdf.README.md, теперь в списке перечислены 4 workflow, включаяTask 4 - SSH and RDP remote access report.scripts/text_to_png.pyиscripts/build_pdf_report.pyи поддерживает параметры через переменные окруженияREPORT_AUTHORиDEMO_PASSWORD.Testing
bash -n scripts/task4_remote_access_report.sh— успешно.python3 -m py_compile scripts/build_pdf_report.py scripts/text_to_png.py— успешно.git diff --check— успешно.bash scripts/task4_remote_access_report.shне завершилась в контейнере из‑за отсутствия модуляPIL(python3-pil) и блокировкиaptв окружении, поэтому полная сборка PDF не была выполнена локально.Codex Task