Skip to content

Commit

Permalink
build script: remove profile-like files for testuser
Browse files Browse the repository at this point in the history
  • Loading branch information
francoismichel committed Dec 19, 2023
1 parent 2629cbc commit 53bfc94
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,8 @@ jobs:
run: env CC=${{matrix.archparams.cc}} CGO_ENABLED=1 GOOS=${{matrix.goos}} GOARCH=${{matrix.archparams.goarch}} go build -v cli/server/main.go
- name: Add test user
run: sudo useradd -s /bin/bash -m ${{matrix.testuser}} && echo "${{matrix.testuser}}:${{matrix.testpasswd}}" | sudo chpasswd
- name: Ensure there are no existing .profile or similar files for testuser
run: rm ${{matrix.testuserhome}}/.profile ${{matrix.testuserhome}}/.bash_profile ${{matrix.testuserhome}}/.bash_login
- name: Create .ssh3 directory
run: sudo su ${{matrix.testuser}} -c 'mkdir ${{matrix.testuserhome}}/.ssh ${{matrix.testuserhome}}/.ssh3'
- name: add the attacker's key as commented in testuser's authorzed identities
Expand Down

0 comments on commit 53bfc94

Please sign in to comment.