From dbc11abcb6d26b4270d1d81477569d9cc53b66a0 Mon Sep 17 00:00:00 2001 From: Dilek <140312585+dlkakbs@users.noreply.github.com> Date: Thu, 9 Apr 2026 18:57:20 +0300 Subject: [PATCH] fix(ci): pin floating GitHub Actions tags and ascii-guard to explicit versions (#3982) * fix(ci): pin floating GitHub Actions tags and ascii-guard to explicit versions Actions pinned to @main pull whatever is at that ref at execution time, so a compromised upstream org could execute arbitrary code in CI. - Pin DeterminateSystems/nix-installer-action to commit SHA (v22) - Pin DeterminateSystems/magic-nix-cache-action to commit SHA (v13) - Pin ascii-guard to 2.3.0 in docs-site-checks workflow SHA comments include the version tag for human readability; Renovate or Dependabot can keep these updated automatically. * Add skill metadata extraction step in workflow Add step to extract skill metadata for dashboard in CI workflow. --------- Co-authored-by: Siddharth Balyan <52913345+alt-glitch@users.noreply.github.com> --- .github/workflows/docs-site-checks.yml | 4 ++-- .github/workflows/nix.yml | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/docs-site-checks.yml b/.github/workflows/docs-site-checks.yml index 14cdb8f6a..ea05d2804 100644 --- a/.github/workflows/docs-site-checks.yml +++ b/.github/workflows/docs-site-checks.yml @@ -27,8 +27,8 @@ jobs: with: python-version: '3.11' - - name: Install Python dependencies - run: python -m pip install ascii-guard pyyaml + - name: Install ascii-guard + run: python -m pip install ascii-guard==2.3.0 pyyaml==6.0.3 - name: Extract skill metadata for dashboard run: python3 website/scripts/extract-skills.py diff --git a/.github/workflows/nix.yml b/.github/workflows/nix.yml index 004f8236a..dba33bfff 100644 --- a/.github/workflows/nix.yml +++ b/.github/workflows/nix.yml @@ -27,8 +27,8 @@ jobs: timeout-minutes: 30 steps: - uses: actions/checkout@v4 - - uses: DeterminateSystems/nix-installer-action@main - - uses: DeterminateSystems/magic-nix-cache-action@main + - uses: DeterminateSystems/nix-installer-action@ef8a148080ab6020fd15196c2084a2eea5ff2d25 # v22 + - uses: DeterminateSystems/magic-nix-cache-action@565684385bcd71bad329742eefe8d12f2e765b39 # v13 - name: Check flake if: runner.os == 'Linux' run: nix flake check --print-build-logs