1
0
mirror of https://github.com/HorlogeSkynet/systemd-hardene.d.git synced 2026-04-18 05:10:45 +02:00
Files
systemd-hardene.d/.github/workflows/integration.yml

22 lines
472 B
YAML

---
name: Linting
permissions:
contents: read
on: [push, pull_request]
jobs:
build:
name: Run systemd-analyze on service overrides
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v6
- run: |
find collection/ \
-mindepth 2 -maxdepth 2 -type f \
-print \
-exec /bin/sh -c \
'( cat {} ; echo "ExecStart=/bin/true" ) > /tmp/unit.service && systemd-analyze verify /tmp/unit.service' \;