chore: Update TS_LOCATION path for test environment #276
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Build Project | |
on: | |
push: | |
branches: | |
- 'main' | |
pull_request: | |
branches: | |
- 'main' | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: actions-rs/toolchain@v1 | |
with: | |
toolchain: stable | |
- name: Configure PAM | |
run: | | |
sudo bash -c 'echo "#%PAM-1.0 | |
auth [success=1 default=ignore] pam_permit.so | |
auth requisite pam_permit.so | |
auth required pam_permit.so | |
account [success=1 default=ignore] pam_permit.so | |
account requisite pam_permit.so | |
account required pam_permit.so | |
session [success=1 default=ignore] pam_permit.so | |
session requisite pam_permit.so | |
session required pam_permit.so" | tee /etc/pam.d/sr' | |
- name: Install RootAsRole | |
run: cargo xtask install -bip sudo | |
- name: print config | |
run: sr cat /etc/security/rootasrole.json | |
- name: getenv | |
run: env | |
- name: Run Sr | |
env: | |
RUST_LOG: debug | |
run: /usr/bin/sr -h | |
- name: Run Chsr with sr | |
run: sr /usr/bin/chsr -h |