Add sudo to apt-get commands in CI workflow

Previously, the apt-get commands lacked the necessary sudo prefix, which could lead to permission issues during the CI process. This change ensures that updates, upgrades, and installations are executed with the appropriate permissions.
This commit is contained in:
Winni Neessen 2024-10-26 16:26:49 +02:00
parent 4b8bf0507d
commit c33900ca29
Signed by: wneessen
GPG key ID: 385AC9889632126E

View file

@ -49,7 +49,7 @@ jobs:
check-latest: true check-latest: true
- name: Install sendmail - name: Install sendmail
run: | run: |
apt-get -y update >/dev/null && apt-get -y upgrade >/dev/null && apt-get -y install ssmtp >/dev/null && which sendmail sudo apt-get -y update >/dev/null && sudo apt-get -y upgrade >/dev/null && sudo apt-get -y install ssmtp >/dev/null && which sendmail
- name: Run go test - name: Run go test
if: success() if: success()
run: | run: |