Repository navigation
tests: work around virt-tests AppArmor errors for BIOS guests #1047
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change | ||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
|
@@ -92,6 +92,14 @@ jobs: | |||||||||||||||||
| - name: Check pylint | ||||||||||||||||||
| run: > | ||||||||||||||||||
| pylint --jobs 0 snapm | ||||||||||||||||||
| - name: Run semgrep SAST | ||||||||||||||||||
| run: > | ||||||||||||||||||
| pip install semgrep && | ||||||||||||||||||
| semgrep --config=p/owasp-top-ten --config=p/security-audit snapm | ||||||||||||||||||
| - name: Check dependencies for vulnerabilities | ||||||||||||||||||
| run: > | ||||||||||||||||||
| pip install pip-audit && | ||||||||||||||||||
| pip-audit --desc | ||||||||||||||||||
|
Comment on lines
+99
to
+102
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Fail the audit when dependency collection is incomplete.
Suggested fix
Committable suggestion
|
||||||||||||||||||
| - name: Install Ubuntu stratisd deps | ||||||||||||||||||
| env: | ||||||||||||||||||
| DEBIAN_FRONTEND: noninteractive | ||||||||||||||||||
|
|
@@ -159,6 +167,12 @@ jobs: | |||||||||||||||||
| set -euo pipefail | ||||||||||||||||||
| sudo apt-get update | ||||||||||||||||||
| sudo apt-get install -y qemu-system-x86 qemu-utils seabios ovmf libvirt-daemon-system libvirt-clients libosinfo-bin virtinst wget expect | ||||||||||||||||||
| # Disable AppArmor security driver: Ubuntu 26.04 fails to load | ||||||||||||||||||
| # dynamically generated per-VM AppArmor profiles for QEMU when BIOS | ||||||||||||||||||
| # firmware is in use | ||||||||||||||||||
| if [[ "${{ matrix.firmware }}" == "bios" ]]; then | ||||||||||||||||||
| echo 'security_driver = "none"' | sudo tee -a /etc/libvirt/qemu.conf | ||||||||||||||||||
|
coderabbitai[bot] marked this conversation as resolved.
Resolved
|
||||||||||||||||||
| fi | ||||||||||||||||||
|
coderabbitai[bot] marked this conversation as resolved.
Resolved
|
||||||||||||||||||
| sudo systemctl enable --now libvirtd | ||||||||||||||||||
| # Ensure the default libvirt network is active | ||||||||||||||||||
| sudo virsh net-start default || true | ||||||||||||||||||
|
|
||||||||||||||||||
Uh oh!
There was an error while loading. Please reload this page.