fix: Resolve shellcheck warnings (#97)

This commit is contained in:
Kroese
2026-07-20 14:47:42 +02:00
committed by GitHub
parent 536c302575
commit e5036fe823
2 changed files with 27 additions and 21 deletions
+10 -5
View File
@@ -1,5 +1,7 @@
on: [workflow_call]
name: "Check"
permissions: {}
jobs:
@@ -15,16 +17,19 @@ jobs:
name: Run ShellCheck
uses: ludeeus/action-shellcheck@master
env:
SHELLCHECK_OPTS: -x --source-path=src -e SC2114 -e SC2129 -e SC2034 -e SC1087 -e SC2317 -e SC2046
SHELLCHECK_OPTS: >-
-x
--source-path=src
-e SC2129
-e SC2034
-e SC2317
-
name: Lint Dockerfile
uses: hadolint/hadolint-action@v3.3.0
with:
dockerfile: Dockerfile
ignore: DL3008,DL3018,DL3020,DL3029,DL3059,DL4006,DL4001,SC2114,DL3006,DL3027
ignore: DL3008,DL3018,DL3020,DL3029,DL3059,DL4001,DL4006,DL3006
failure-threshold: warning
-
name: Validate JSON and YML files
uses: GrantBirki/json-yaml-validate@v5.0.0
with:
yaml_exclude_regex: ".*\\kubernetes\\.yml$"
uses: GrantBirki/json-yaml-validate@v5
+2 -1
View File
@@ -187,7 +187,8 @@ IUD
sed -i "s|the Pxvirt Powered by Lierfang\.|Proxmox for Docker v${VERSION_ARG}.|g" /usr/bin/pvebanner
# Remove kernel modules and boot files — useless in a container (~960 MB)
rm -rf /usr/lib/modules /boot
rm -rf /usr/lib/modules
find /boot -mindepth 1 -delete
# Remove hardware firmware blobs — no physical hardware in a container (~520 MB)
rm -rf /usr/lib/firmware