Skip to content

Commit

Permalink
Try chmodding the Lynis log to avoid EACCESS in upload-artifact
Browse files Browse the repository at this point in the history
  • Loading branch information
pyllyukko committed Dec 17, 2024
1 parent 8edb1e2 commit 4f33f2e
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/banners.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@ jobs:
run: ansible-playbook -v harden.yml --tags lynis --skip-tags slackware,centos
- name: Run Ansible playbook for banners
run: ansible-playbook -v harden.yml --tags banners --extra-vars run_lynis_after_hardening=true
- name: chmod Lynis log
run: chmod -c 644 /var/log/lynis.log
- name: Archive Lynis log
uses: actions/upload-artifact@v4
with:
Expand Down

0 comments on commit 4f33f2e

Please sign in to comment.