Merge pull request #47 from escoffier-labs/feat/security-supply-chain… #105
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: | |
| permissions: | |
| contents: read | |
| jobs: | |
| test: | |
| runs-on: ubuntu-latest | |
| strategy: | |
| matrix: | |
| python: ["3.10", "3.11", "3.12"] | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: actions/setup-python@v5 | |
| with: | |
| python-version: ${{ matrix.python }} | |
| - name: Install | |
| run: | | |
| python -m pip install --upgrade pip | |
| python -m pip install -e ".[dev]" | |
| - name: Pytest | |
| run: python -m pytest -q | |
| content-guard: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| with: | |
| path: solo-mise | |
| - uses: actions/checkout@v4 | |
| with: | |
| repository: solomonneas/content-guard | |
| ref: v0.1.1 | |
| path: content-guard | |
| - uses: actions/setup-python@v5 | |
| with: | |
| python-version: "3.12" | |
| - name: Scan | |
| run: | | |
| cd solo-mise | |
| PYTHONPATH=../content-guard/src python -m content_guard scan . \ | |
| --policy ../content-guard/policies/public-repo.json | |
| install-from-source: | |
| runs-on: ubuntu-latest | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| combo: | |
| - name: "repo+claude" | |
| flags: "--depth repo --harnesses claude" | |
| - name: "repo+codex" | |
| flags: "--depth repo --harnesses codex" | |
| - name: "workspace+claude+openclaw" | |
| flags: "--depth workspace --harnesses claude,openclaw" | |
| - name: "workspace+codex+openclaw" | |
| flags: "--depth workspace --harnesses codex,openclaw" | |
| - name: "kitchen-sink" | |
| flags: "--depth workspace --harnesses claude,codex,openclaw,hermes" | |
| - name: "workspace+none" | |
| flags: "--depth workspace --harnesses none" | |
| - name: "repo+claude+publisher" | |
| flags: "--depth repo --harnesses claude --include publisher" | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: actions/setup-python@v5 | |
| with: | |
| python-version: "3.12" | |
| - name: pipx install | |
| run: | | |
| python -m pip install --upgrade pip pipx | |
| pipx install . | |
| solo-mise --version | |
| - name: Init + doctor | |
| run: | | |
| target="/tmp/sm-${{ matrix.combo.name }}" | |
| rm -rf "$target" | |
| mkdir -p "$target" | |
| git init -q -b main "$target" | |
| solo-mise init --target "$target" ${{ matrix.combo.flags }} | |
| solo-mise doctor --target "$target" |