chore: add read-only bash commands to permission allowlist (#42) #124
This file contains hidden or 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: ci | |
| on: | |
| push: | |
| branches: | |
| - main | |
| pull_request: | |
| jobs: | |
| chezmoi-apply: | |
| strategy: | |
| matrix: | |
| os: [macos-latest, ubuntu-latest] | |
| runs-on: ${{ matrix.os }} | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Install Homebrew (Ubuntu) | |
| if: runner.os == 'Linux' | |
| run: | | |
| /bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)" | |
| echo "/home/linuxbrew/.linuxbrew/bin" >> $GITHUB_PATH | |
| - name: Install chezmoi | |
| run: brew install chezmoi | |
| - name: Run chezmoi init (non-interactive) | |
| run: | | |
| chezmoi init --source="${{ github.workspace }}" --promptBool=minimal=true --promptString=profile=personal --apply | |
| - name: Verify dotfiles | |
| run: | | |
| echo "=== .gitconfig ===" | |
| cat ~/.gitconfig | |
| echo "" | |
| echo "=== .zshrc ===" | |
| cat ~/.zshrc |