ci: Bump dtolnay/rust-toolchain from efa25f7f19611383d5b0ccf2d1c8914531636bf9 to 3c5f7ea28cd621ae0bf5283f0e981fb97b8a7af9 #27
Workflow file for this run
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
| # SPDX-License-Identifier: PMPL-1.0-or-later | |
| name: Guix/Nix Package Policy | |
| on: [push, pull_request] | |
| permissions: read-all | |
| jobs: | |
| check: | |
| runs-on: ubuntu-latest | |
| permissions: | |
| contents: read | |
| steps: | |
| - uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1 | |
| - name: Enforce Guix primary / Nix fallback | |
| run: | | |
| # Check for package manager files | |
| HAS_GUIX=$(find . -name "*.scm" -o -name ".guix-channel" -o -name "guix.scm" 2>/dev/null | head -1) | |
| HAS_NIX=$(find . -name "*.nix" 2>/dev/null | head -1) | |
| # Block new package-lock.json, yarn.lock, Gemfile.lock, etc. | |
| NEW_LOCKS=$(git diff --name-only --diff-filter=A HEAD~1 2>/dev/null | grep -E 'package-lock\.json|yarn\.lock|Gemfile\.lock|Pipfile\.lock|poetry\.lock|cargo\.lock' || true) | |
| if [ -n "$NEW_LOCKS" ]; then | |
| echo "⚠️ Lock files detected. Prefer Guix manifests for reproducibility." | |
| fi | |
| # Prefer Guix, fallback to Nix | |
| if [ -n "$HAS_GUIX" ]; then | |
| echo "✅ Guix package management detected (primary)" | |
| elif [ -n "$HAS_NIX" ]; then | |
| echo "✅ Nix package management detected (fallback)" | |
| else | |
| echo "ℹ️ Consider adding guix.scm or flake.nix for reproducible builds" | |
| fi | |
| echo "✅ Package policy check passed" |