Skip to content

Commit

Permalink
Update makefile.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
Toni500github authored Dec 21, 2024
1 parent 54707cf commit a501304
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions .github/workflows/makefile.yml
Original file line number Diff line number Diff line change
Expand Up @@ -83,12 +83,10 @@ jobs:
- name: Install the packages
run: pacman -Syyu git sudo base-devel fakeroot pkgconf tree neofetch --noconfirm --needed

- name: Configure sudo and PAM
- name: Create a dedicated build user
run: |
echo "nobody:x:65534:65534:nobody:/nonexistent:/usr/bin/nologin" >> /etc/passwd
echo "nobody:*:18905:0:99999:7:::" >> /etc/shadow
chmod 640 /etc/shadow
echo -e "account required pam_unix.so" >> /etc/pam.d/sudo
useradd -m -s /bin/bash builduser
echo "builduser ALL=(ALL) NOPASSWD: ALL" >> /etc/sudoers
- name: get /etc/sudoers
run: |
Expand All @@ -105,7 +103,7 @@ jobs:
git clone https://aur.archlinux.org/customfetch-git.git
chown -R nobody customfetch-git
cd customfetch-git
sudo -u nobody makepkg -si --noconfirm
sudo -u builduser makepkg -si --noconfirm
#- name: Setup SSH session
# uses: mxschmitt/action-tmate@v3
Expand Down

0 comments on commit a501304

Please sign in to comment.