Skip to content

Commit

Permalink
Added storage (STRG-1846) test
Browse files Browse the repository at this point in the history
  • Loading branch information
pyllyukko committed Dec 18, 2024
1 parent 63246c8 commit 28f12e1
Showing 1 changed file with 22 additions and 0 deletions.
22 changes: 22 additions & 0 deletions .github/workflows/ansible-playbook.yml
Original file line number Diff line number Diff line change
Expand Up @@ -245,3 +245,25 @@ jobs:
with:
name: lynis-file_integrity.log
path: /var/log/lynis.log
storage:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Install Lynis
run: |
ansible-playbook harden.yml --tags lynis --skip-tags slackware,centos
echo 'skip-upgrade-test=yes' | sudo tee -a /etc/lynis/custom.prf
- name: Run Lynis (pre-harden)
run: sudo lynis audit system --skip-plugins --tests-from-group storage
- name: Run Ansible playbook for kernel
run: ansible-playbook harden.yml --tags kernel
- name: Run Lynis
run: sudo lynis audit system --skip-plugins --tests-from-group storage
- name: chmod Lynis log
run: sudo chmod -c 644 /var/log/lynis.log
- name: Archive Lynis log
uses: actions/upload-artifact@v4
with:
name: lynis-storage.log
path: /var/log/lynis.log

0 comments on commit 28f12e1

Please sign in to comment.