Skip to content

Compress tool outputs, logs, files, and RAG chunks before they reach the LLM. 20% fewer tokens for coding agents, 60-95% fewer tokens for JSON, same answers. Library, proxy, MCP server.

ci: pin every GitHub Action to a commit SHA (#4671)

gglucass2973ca593d2f
diff --git a/.github/actions/headroom-e2e-setup/action.yml b/.github/actions/headroom-e2e-setup/action.yml
index b5cd33cf5..37530dfe1 100644
--- a/.github/actions/headroom-e2e-setup/action.yml
+++ b/.github/actions/headroom-e2e-setup/action.yml
@@ -34,7 +34,7 @@ runs:
using: composite
steps:
- name: Set up Python ${{ inputs.python-version }}
- uses: actions/setup-python@v5
+ uses: actions/setup-python@a26af69be951a213d495a4c3e4e4022e16d87065 # v5.6.0
with:
python-version: ${{ inputs.python-version }}
@@ -43,11 +43,11 @@ runs:
# extension. Toolchain has to be set up before the editable install path.
- name: Install Rust toolchain
if: ${{ inputs.install-mode == 'editable-proxy' }}
- uses: dtolnay/[email protected]
+ uses: dtolnay/rust-toolchain@035fceb3c12fb0c6a9461b52775e16473133e591 # 1.95.0
- name: Cache cargo registry + build
if: ${{ inputs.install-mode == 'editable-proxy' }}
- uses: Swatinem/rust-cache@v2
+ uses: Swatinem/rust-cache@d1527c8f67ef9af357290475d4af4b0fab8f12e0 # v2.9.3
with:
workspaces: ". -> target"
diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml
index 803da9771..b462acd22 100644
--- a/.github/workflows/ci.yml
+++ b/.github/workflows/ci.yml
@@ -48,8 +48,8 @@ jobs:
packaging: ${{ steps.filter.outputs.packaging }}
workflows: ${{ steps.filter.outputs.workflows }}
steps:
- - uses: actions/checkout@v7
- - uses: dorny/paths-filter@v4
+ - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
+ - uses: dorny/paths-filter@ceb8a2b8f2d89434be7ff52d3de7ec3738c5cc9d # v4.0.3
id: filter
with:
filters: |
@@ -106,12 +106,12 @@ jobs:
runs-on: ubuntu-latest
timeout-minutes: 10
steps:
- - uses: actions/checkout@v7
- - uses: actions/setup-python@v7
+ - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
+ - uses: actions/setup-python@6d4fd22b20465ccc0f7354476588e8df7c9ca0e0 # v7.1.0
with:
python-version: ${{ env.PY_VERSION }}
- name: Cache pip
- uses: actions/cache@v6
+ uses: actions/cache@55cc8345863c7cc4c66a329aec7e433d2d1c52a9 # v6.1.0
with:
path: ~/.cache/pip
key: ${{ runner.os }}-pip-lint-${{ hashFiles('pyproject.toml') }}
@@ -133,21 +133,21 @@ jobs:
runs-on: ubuntu-latest
timeout-minutes: 30
steps:
- - uses: actions/checkout@v7
- - uses: actions/setup-python@v7
+ - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
+ - uses: actions/setup-python@6d4fd22b20465ccc0f7354476588e8df7c9ca0e0 # v7.1.0
with:
python-version: ${{ env.PY_VERSION }}
- - uses: dtolnay/rust-toolchain@stable
+ - uses: dtolnay/rust-toolchain@b725eda525362e7cf34af9a7243cac1e3f01a7ec # stable
with:
toolchain: 1.95.0 # Keep in sync with rust-toolchain.toml.
- - uses: Swatinem/rust-cache@v2
+ - uses: Swatinem/rust-cache@d1527c8f67ef9af357290475d4af4b0fab8f12e0 # v2.9.3
with:
workspaces: ". -> target"
- name: Build wheel once (fast CI cargo profile)
run: |
python -m pip install --upgrade pip maturin
maturin build --profile ci --out dist --interpreter "python${PY_VERSION}"
- - uses: actions/upload-artifact@v7
+ - uses: actions/upload-artifact@cf430e030ddbb5b0abf93d22962f4752f3646cd9 # v7.0.2
with:
name: headroom-wheel
path: dist/*.whl
@@ -159,12 +159,12 @@ jobs:
runs-on: windows-latest
timeout-minutes: 45
steps:
- - uses: actions/checkout@v7
- - uses: actions/setup-python@v7
+ - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
+ - uses: actions/setup-python@6d4fd22b20465ccc0f7354476588e8df7c9ca0e0 # v7.1.0
with:
python-version: ${{ env.PY_VERSION }}
- - uses: dtolnay/rust-toolchain@stable
- - uses: Swatinem/rust-cache@v2
+ - uses: dtolnay/rust-toolchain@b725eda525362e7cf34af9a7243cac1e3f01a7ec # stable
+ - uses: Swatinem/rust-cache@d1527c8f67ef9af357290475d4af4b0fab8f12e0 # v2.9.3
with:
workspaces: ". -> target"
- name: Build wheel (fast CI cargo profile)
@@ -172,7 +172,7 @@ jobs:
run: |
python -m pip install --upgrade pip maturin
maturin build --profile ci --out dist --interpreter "python${{ env.PY_VERSION }}"
- - uses: actions/upload-artifact@v7
+ - uses: actions/upload-artifact@cf430e030ddbb5b0abf93d22962f4752f3646cd9 # v7.0.2
with:
name: headroom-wheel-windows
path: dist/*.whl
@@ -196,12 +196,12 @@ jobs:
runs-on: windows-latest
timeout-minutes: 30
steps:
- - uses: actions/checkout@v7
- - uses: actions/setup-python@v7
+ - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
+ - uses: actions/setup-python@6d4fd22b20465ccc0f7354476588e8df7c9ca0e0 # v7.1.0
with:
python-version: ${{ env.PY_VERSION }}
- name: Download Windows wheel
- uses: actions/download-artifact@v8
+ uses: actions/download-artifact@9000827ccba6bdab643e8b6fd33ac0654aef8333 # v8.0.2
with:
name: headroom-wheel-windows
path: dist
@@ -245,21 +245,21 @@ jobs:
runs-on: ${{ matrix.os }}
timeout-minutes: 45
steps:
- - uses: actions/checkout@v7
- - uses: actions/setup-python@v7
+ - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
+ - uses: actions/setup-python@6d4fd22b20465ccc0f7354476588e8df7c9ca0e0 # v7.1.0
with:
python-version: "3.14"
- name: Download Linux wheel
if: runner.os == 'Linux'
- uses: actions/download-artifact@v8
+ uses: actions/download-artifact@9000827ccba6bdab643e8b6fd33ac0654aef8333 # v8.0.2
with:
name: headroom-wheel
path: dist
- - uses: dtolnay/rust-toolchain@stable
+ - uses: dtolnay/rust-toolchain@b725eda525362e7cf34af9a7243cac1e3f01a7ec # stable
if: runner.os == 'macOS'
with:
toolchain: 1.95.0 # Keep in sync with rust-toolchain.toml.
- - uses: Swatinem/rust-cache@v2
+ - uses: Swatinem/rust-cache@d1527c8f67ef9af357290475d4af4b0fab8f12e0 # v2.9.3
if: runner.os == 'macOS'
with:
workspaces: ". -> target"
@@ -311,12 +311,12 @@ jobs:
runs-on: ubuntu-latest
timeout-minutes: 20
steps:
- - uses: actions/setup-python@v7
+ - uses: actions/setup-python@6d4fd22b20465ccc0f7354476588e8df7c9ca0e0 # v7.1.0
with:
python-version: ${{ env.PY_VERSION }}
- name: Cache HuggingFace model
id: hfcache
- uses: actions/cache@v6
+ uses: actions/cache@55cc8345863c7cc4c66a329aec7e433d2d1c52a9 # v6.1.0
with:
path: ~/.cache/huggingface
key: ${{ runner.os }}-models-allMiniLM-v2
@@ -348,13 +348,13 @@ jobs:
# CI's job timeout must report stalls without erasing pytest diagnostics.
HEADROOM_HARD_WATCHDOG_SECS: "0"
steps:
- - uses: actions/checkout@v7
- - uses: actions/setup-python@v7
+ - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
+ - uses: actions/setup-python@6d4fd22b20465ccc0f7354476588e8df7c9ca0e0 # v7.1.0
with:
python-version: ${{ env.PY_VERSION }}
- name: Cache pip
- uses: actions/cache@v6
+ uses: actions/cache@55cc8345863c7cc4c66a329aec7e433d2d1c52a9 # v6.1.0
with:
path: ~/.cache/pip
key: ${{ runner.os }}-pip-${{ env.PY_VERSION }}-${{ hashFiles('pyproject.toml') }}
@@ -362,7 +362,7 @@ jobs:
- name: Restore HuggingFace model cache (warmed by prefetch-model)
id: restore-hfcache
- uses: actions/cache@v6
+ uses: actions/cache@55cc8345863c7cc4c66a329aec7e433d2d1c52a9 # v6.1.0
with:
path: ~/.cache/huggingface
key: ${{ runner.os }}-models-allMiniLM-v2
@@ -383,7 +383,7 @@ jobs:
echo "::error::could not fetch all-MiniLM-L6-v2 from HuggingFace (fallback)"; exit 1
- name: Download prebuilt wheel
- uses: actions/download-artifact@v8
+ uses: actions/download-artifact@9000827ccba6bdab643e8b6fd33ac0654aef8333 # v8.0.2
with:
name: headroom-wheel
path: dist
@@ -425,7 +425,7 @@ jobs:
# A shard with a failing test still writes its report; skipping the
# upload drops every line only that shard covers from codecov/patch.
if: ${{ !cancelled() }}
- uses: codecov/codecov-action@v5
+ uses: codecov/codecov-action@0fb7174895f61a3b6b78fc075e0cd60383518dac # v5.5.5
with:
files: coverage-${{ matrix.shard }}.xml
disable_search: true
@@ -448,11 +448,11 @@ jobs:
runs-on: macos-latest
timeout-minutes: 20
steps:
- - uses: actions/checkout@v7
- - uses: actions/setup-python@v6
+ - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
+ - uses: actions/setup-python@ece7cb06caefa5fff74198d8649806c4678c61a1 # v6.3.0
with:
python-version: ${{ env.PY_VERSION }}
- - uses: dtolnay/rust-toolchain@stable
+ - uses: dtolnay/rust-toolchain@b725eda525362e7cf34af9a7243cac1e3f01a7ec # stable
with:
toolchain: 1.95.0 # Keep in sync with rust-toolchain.toml.
components: rustfmt, clippy
@@ -478,18 +478,18 @@ jobs:
runs-on: ubuntu-latest
timeout-minutes: 30
steps:
- - uses: actions/checkout@v7
- - uses: actions/setup-python@v7
+ - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
+ - uses: actions/setup-python@6d4fd22b20465ccc0f7354476588e8df7c9ca0e0 # v7.1.0
with:
python-version: ${{ env.PY_VERSION }}
- name: Cache pip
- uses: actions/cache@v6
+ uses: actions/cache@55cc8345863c7cc4c66a329aec7e433d2d1c52a9 # v6.1.0
with:
path: ~/.cache/pip
key: ${{ runner.os }}-pip-extras-${{ hashFiles('pyproject.toml') }}
restore-keys: ${{ runner.os }}-pip-extras-
- name: Cache fastembed model
- uses: actions/cache@v6
+ uses: actions/cache@55cc8345863c7cc4c66a329aec7e433d2d1c52a9 # v6.1.0
with:
# The default relevance model loads from its pinned snapshot in the
# HuggingFace hub cache (headroom/onnx_runtime.py _PINNED_REVISIONS);
@@ -497,7 +497,7 @@ jobs:
path: ~/.cache/huggingface/hub/models--Qdrant--bge-small-en-v1.5-onnx-Q
key: ${{ runner.os }}-hf-bge-small-en-v1.5-onnx-Q-52398278842e
- name: Download prebuilt wheel
- uses: actions/download-artifact@v8
+ uses: actions/download-artifact@9000827ccba6bdab643e8b6fd33ac0654aef8333 # v8.0.2
with:
name: headroom-wheel
path: dist
@@ -541,12 +541,12 @@ jobs:
runs-on: ubuntu-latest
timeout-minutes: 20
steps:
- - uses: actions/checkout@v7
- - uses: actions/setup-python@v7
+ - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
+ - uses: actions/setup-python@6d4fd22b20465ccc0f7354476588e8df7c9ca0e0 # v7.1.0
with:
python-version: ${{ env.PY_VERSION }}
- name: Download prebuilt wheel
- uses: actions/download-artifact@v8
+ uses: actions/download-artifact@9000827ccba6bdab643e8b6fd33ac0654aef8333 # v8.0.2
with:
name: headroom-wheel
path: dist
@@ -567,12 +567,12 @@ jobs:
runs-on: ubuntu-latest
timeout-minutes: 20
steps:
- - uses: actions/checkout@v7
- - uses: actions/setup-python@v7
+ - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
+ - uses: actions/setup-python@6d4fd22b20465ccc0f7354476588e8df7c9ca0e0 # v7.1.0
with:
python-version: ${{ env.PY_VERSION }}
- name: Download prebuilt wheel
- uses: actions/download-artifact@v8
+ uses: actions/download-artifact@9000827ccba6bdab643e8b6fd33ac0654aef8333 # v8.0.2
with:
name: headroom-wheel
path: dist
@@ -596,7 +596,7 @@ jobs:
run: pytest tests/test_dashboard_*_playwright.py -v
- name: Upload dashboard screenshots
if: always()
- uses: actions/upload-artifact@v7
+ uses: actions/upload-artifact@cf430e030ddbb5b0abf93d22962f4752f3646cd9 # v7.0.2
with:
name: dashboard-playwright-artifacts
path: ${{ runner.temp }}/playwright-artifacts
@@ -608,10 +608,10 @@ jobs:
runs-on: ubuntu-latest
timeout-minutes: 5
steps:
- - uses: actions/checkout@v7
+ - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
with:
fetch-depth: 0
- - uses: wagoid/commitlint-github-action@v6
+ - uses: wagoid/commitlint-github-action@b948419dd99f3fd78a6548d48f94e3df7f6bf3ed # v6.2.1
with:
configFile: .commitlintrc.json
@@ -621,20 +621,20 @@ jobs:
runs-on: ubuntu-latest
timeout-minutes: 30
steps:
- - uses: actions/checkout@v7
- - uses: actions/setup-python@v7
+ - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
+ - uses: actions/setup-python@6d4fd22b20465ccc0f7354476588e8df7c9ca0e0 # v7.1.0
with:
python-version: "3.11"
- name: Cache pip
- uses: actions/cache@v6
+ uses: actions/cache@55cc8345863c7cc4c66a329aec7e433d2d1c52a9 # v6.1.0
with:
path: ~/.cache/pip
key: ${{ runner.os }}-pip-build-${{ hashFiles('pyproject.toml') }}
restore-keys: ${{ runner.os }}-pip-build-
- - uses: dtolnay/rust-toolchain@stable
+ - uses: dtolnay/rust-toolchain@b725eda525362e7cf34af9a7243cac1e3f01a7ec # stable
with:
toolchain: 1.95.0 # Keep in sync with rust-toolchain.toml.
- - uses: Swatinem/rust-cache@v2
+ - uses: Swatinem/rust-cache@d1527c8f67ef9af357290475d4af4b0fab8f12e0 # v2.9.3
with:
workspaces: ". -> target"
# Smoke check that the SHIPPED build (release profile) + sdist are wired
@@ -656,10 +656,10 @@ jobs:
runs-on: ubuntu-latest
timeout-minutes: 10
steps:
- - uses: actions/checkout@v7
+ - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
- name: Cache actionlint + act
id: tools-cache
- uses: actions/cache@v6
+ uses: actions/cache@55cc8345863c7cc4c66a329aec7e433d2d1c52a9 # v6.1.0
with:
path: |
/usr/local/bin/actionlint
@@ -689,10 +689,10 @@ jobs:
runs-on: ubuntu-latest
timeout-minutes: 60
steps:
- - uses: actions/checkout@v7
+ - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
with:
fetch-depth: 0
- - uses: actions/setup-python@v7
+ - uses: actions/setup-python@6d4fd22b20465ccc0f7354476588e8df7c9ca0e0 # v7.1.0
with:
python-version: "3.11"
- name: Run Docker bind security proof
@@ -735,8 +735,8 @@ jobs:
runs-on: windows-latest
timeout-minutes: 20
steps:
- - uses: actions/checkout@v7
- - uses: actions/setup-python@v7
+ - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
+ - uses: actions/setup-python@6d4fd22b20465ccc0f7354476588e8df7c9ca0e0 # v7.1.0
with:
python-version: "3.12"
- name: Install test dependencies
@@ -766,8 +766,8 @@ jobs:
runs-on: windows-latest
timeout-minutes: 20
steps:
- - uses: actions/checkout@v7
- - uses: actions/setup-python@v7
+ - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
+ - uses: actions/setup-python@6d4fd22b20465ccc0f7354476588e8df7c9ca0e0 # v7.1.0
with:
python-version: ${{ env.PY_VERSION }}
- name: Install headroom-ai[dev] (published wheel; local source shadows it)
@@ -793,8 +793,8 @@ jobs:
runs-on: windows-latest
timeout-minutes: 20
steps:
- - uses: actions/checkout@v7
- - uses: actions/setup-python@v7
+ - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
+ - uses: actions/setup-python@6d4fd22b20465ccc0f7354476588e8df7c9ca0e0 # v7.1.0
with:
python-version: ${{ env.PY_VERSION }}
- name: Install headroom-ai[dev] (published wheel; local source shadows it)
@@ -813,8 +813,8 @@ jobs:
runs-on: macos-latest
timeout-minutes: 20
steps:
- - uses: actions/checkout@v7
- - uses: actions/setup-python@v7
+ - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
+ - uses: actions/setup-python@6d4fd22b20465ccc0f7354476588e8df7c9ca0e0 # v7.1.0
with:
python-version: "3.11"
- name: Install bash and test dependencies
diff --git a/.github/workflows/codeql-triage.yml b/.github/workflows/codeql-triage.yml
index e34cf3034..fffb49229 100644
--- a/.github/workflows/codeql-triage.yml
+++ b/.github/workflows/codeql-triage.yml
@@ -41,7 +41,7 @@ jobs:
--description "Security-relevant; exempt from stale triage" \
--force
- - uses: actions/checkout@v7
+ - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
# One issue per ISO week: re-runs and later dispatches reuse it (see the
# script header). Tested by tests/test_codeql_triage_script.py.
diff --git a/.github/workflows/devcontainers.yml b/.github/workflows/devcontainers.yml
index fff595f83..6cb47a43a 100644
--- a/.github/workflows/devcontainers.yml
+++ b/.github/workflows/devcontainers.yml
@@ -33,7 +33,7 @@ jobs:
config: .devcontainer/memory-stack/devcontainer.json
steps:
- - uses: actions/checkout@v7
+ - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
# Both variants exhaust the GitHub runner's disk, so free space up front
# on every variant. memory-stack brings up Neo4j + Postgres + Redis +
@@ -46,7 +46,7 @@ jobs:
# Reclaim ~14 GB by stripping preinstalled tools none of the devcontainer
# paths use (Android SDK, .NET, Haskell).
- name: Free runner disk
- uses: jlumbroso/[email protected]
+ uses: jlumbroso/free-disk-space@ceedf095f4ec1a097402bc6bd80831f2e1a6fde6 # v2.0.0
with:
tool-cache: true
android: true
@@ -57,12 +57,12 @@ jobs:
swap-storage: false
- name: Set up Node
- uses: actions/setup-node@v7
+ uses: actions/setup-node@949feb2413d6458794dcd2491c4babbbce0c15c1 # v7.1.0
with:
node-version: "20"
- name: Set up Docker Buildx
- uses: docker/setup-buildx-action@v4
+ uses: docker/setup-buildx-action@f87e5991a6d7451dcb8d9637bfbc97413f497069 # v4.4.1
- name: Install Dev Container CLI
run: npm install -g @devcontainers/[email protected]
@@ -83,7 +83,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- - uses: actions/checkout@v7
+ - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
# The worktree devcontainer runs the same `uv sync --extra dev` build as
# the default validate job, which now pulls transformers 5.x. Copying that
@@ -91,7 +91,7 @@ jobs:
# device", see PR #495). Reclaim ~14 GB by stripping preinstalled tools the
# build never touches — mirrors the memory-stack job's existing remedy.
- name: Free runner disk
- uses: jlumbroso/[email protected]
+ uses: jlumbroso/free-disk-space@ceedf095f4ec1a097402bc6bd80831f2e1a6fde6 # v2.0.0
with:
tool-cache: true
android: true
@@ -105,12 +105,12 @@ jobs:
run: git worktree add "$RUNNER_TEMP/headroom-worktree" HEAD
- name: Set up Node
- uses: actions/setup-node@v7
+ uses: actions/setup-node@949feb2413d6458794dcd2491c4babbbce0c15c1 # v7.1.0
with:
node-version: "20"
- name: Set up Docker Buildx
- uses: docker/setup-buildx-action@v4
+ uses: docker/setup-buildx-action@f87e5991a6d7451dcb8d9637bfbc97413f497069 # v4.4.1
- name: Install Dev Container CLI
run: npm install -g @devcontainers/[email protected]
diff --git a/.github/workflows/docker.yml b/.github/workflows/docker.yml
index 41ab3c995..aff9e1f20 100644
--- a/.github/workflows/docker.yml
+++ b/.github/workflows/docker.yml
@@ -72,7 +72,7 @@ jobs:
- { name: arm64, runs_on: ubuntu-24.04-arm, platform: linux/arm64 }
steps:
- - uses: actions/checkout@v7
+ - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
- name: Normalize image name
id: image-name
@@ -94,7 +94,7 @@ jobs:
- name: Set up Python
if: steps.version.outputs.version != ''
- uses: actions/setup-python@v7
+ uses: actions/setup-python@6d4fd22b20465ccc0f7354476588e8df7c9ca0e0 # v7.1.0
with:
python-version: "3.12"
@@ -104,10 +104,10 @@ jobs:
python scripts/version-sync.py --version ${{ steps.version.outputs.version }}
- name: Set up Docker Buildx
- uses: docker/setup-buildx-action@v4
+ uses: docker/setup-buildx-action@f87e5991a6d7451dcb8d9637bfbc97413f497069 # v4.4.1
- name: Log in to GHCR
- uses: docker/login-action@v4
+ uses: docker/login-action@8aa5831fb8d48d8f76594c7ddde61ae58019f550 # v4.8.0
with:
registry: ${{ env.REGISTRY }}
username: ${{ github.actor }}
@@ -117,13 +117,13 @@ jobs:
# multi-arch index manifest and are applied in docker-manifest.
- name: Extract image labels
id: meta
- uses: docker/metadata-action@v6
+ uses: docker/metadata-action@dc802804100637a589fabce1cb79ff13a1411302 # v6.2.0
with:
images: ${{ env.REGISTRY }}/${{ steps.image-name.outputs.image_name }}
- name: Build and push by digest (single platform)
id: bake
- uses: docker/bake-action@v7
+ uses: docker/bake-action@59cb1203cd42bcefd40a1b6d73b589e48c86040e # v7.5.0
continue-on-error: true
with:
files: |
@@ -157,13 +157,13 @@ jobs:
- name: Set up clean Docker Buildx fallback
id: fallback-buildx
if: steps.bake.outcome == 'failure'
- uses: docker/setup-buildx-action@v4
+ uses: docker/setup-buildx-action@f87e5991a6d7451dcb8d9637bfbc97413f497069 # v4.4.1
# A real build failure remains fatal on this uncached attempt.
- name: Retry build without remote cache
id: bake-fallback
if: steps.bake.outcome == 'failure'
- uses: docker/bake-action@v7
+ uses: docker/bake-action@59cb1203cd42bcefd40a1b6d73b589e48c86040e # v7.5.0
with:
builder: ${{ steps.fallback-buildx.outputs.name }}
no-cache: true
@@ -229,7 +229,7 @@ jobs:
"
- name: Upload digest marker
- uses: actions/upload-artifact@v7
+ uses: actions/upload-artifact@cf430e030ddbb5b0abf93d22962f4752f3646cd9 # v7.0.2
with:
# Variant + arch uniquely identify the marker. The manifest job
# downloads both architecture artifacts by exact name; a glob such
@@ -291,23 +291,23 @@ jobs:
run: printf 'sha=%s\n' "${GITHUB_SHA:0:7}" >> "$GITHUB_OUTPUT"
- name: Set up Docker Buildx
- uses: docker/setup-buildx-action@v4
+ uses: docker/setup-buildx-action@f87e5991a6d7451dcb8d9637bfbc97413f497069 # v4.4.1
- name: Log in to GHCR
- uses: docker/login-action@v4
+ uses: docker/login-action@8aa5831fb8d48d8f76594c7ddde61ae58019f550 # v4.8.0
with:
registry: ${{ env.REGISTRY }}
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Download amd64 digest for this variant
- uses: actions/download-artifact@v8
+ uses: actions/download-artifact@9000827ccba6bdab643e8b6fd33ac0654aef8333 # v8.0.2
with:
name: digests-${{ matrix.variant.name || 'root' }}-amd64
path: ${{ runner.temp }}/digests
- name: Download arm64 digest for this variant
- uses: actions/download-artifact@v8
+ uses: actions/download-artifact@9000827ccba6bdab643e8b6fd33ac0654aef8333 # v8.0.2
with:
name: digests-${{ matrix.variant.name || 'root' }}-arm64
path: ${{ runner.temp }}/digests
@@ -317,7 +317,7 @@ jobs:
# bare variant) so existing pull URLs keep working.
- name: Extract metadata (variant)
id: meta
- uses: docker/metadata-action@v6
+ uses: docker/metadata-action@dc802804100637a589fabce1cb79ff13a1411302 # v6.2.0
with:
images: ${{ env.REGISTRY }}/${{ steps.image-name.outputs.image_name }}
# `latest=false` is load-bearing (#3150). The action defaults to
@@ -416,7 +416,7 @@ jobs:
- name: Install cosign
if: steps.manifest.outputs.index_digest != ''
- uses: sigstore/cosign-installer@v3
+ uses: sigstore/cosign-installer@398d4b0eeef1380460a10c8013a76f728fb906ac # v3.9.1
- name: Sign multi-arch index manifest with cosign
if: steps.manifest.outputs.index_digest != ''
diff --git a/.github/workflows/docs.yml b/.github/workflows/docs.yml
index b1a4529a1..266e1f841 100644
--- a/.github/workflows/docs.yml
+++ b/.github/workflows/docs.yml
@@ -34,10 +34,10 @@ jobs:
runs-on: ubuntu-latest
timeout-minutes: 15
steps:
- - uses: actions/checkout@v7
+ - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
- name: Setup Node.js
- uses: actions/setup-node@v7
+ uses: actions/setup-node@949feb2413d6458794dcd2491c4babbbce0c15c1 # v7.1.0
with:
node-version: '22'
cache: npm
diff --git a/.github/workflows/eval.yml b/.github/workflows/eval.yml
index dc2811a75..ef0731d8c 100644
--- a/.github/workflows/eval.yml
+++ b/.github/workflows/eval.yml
@@ -23,13 +23,13 @@ jobs:
runs-on: ubuntu-latest
timeout-minutes: 30
steps:
- - uses: actions/checkout@v7
- - uses: actions/setup-python@v7
+ - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
+ - uses: actions/setup-python@6d4fd22b20465ccc0f7354476588e8df7c9ca0e0 # v7.1.0
with:
python-version: "3.11"
- name: Cache pip
- uses: actions/cache@v6
+ uses: actions/cache@55cc8345863c7cc4c66a329aec7e433d2d1c52a9 # v6.1.0
with:
path: ~/.cache/pip
key: ${{ runner.os }}-pip-eval-${{ hashFiles('pyproject.toml') }}
@@ -38,12 +38,12 @@ jobs:
# `pip install -e .` invokes maturin (declared in pyproject.toml's
# build-system) which calls cargo to compile the Rust extension.
- name: Install Rust toolchain
- uses: dtolnay/rust-toolchain@stable
+ uses: dtolnay/rust-toolchain@b725eda525362e7cf34af9a7243cac1e3f01a7ec # stable
with:
toolchain: 1.95.0 # Keep in sync with rust-toolchain.toml.
- name: Cache cargo registry + build
- uses: Swatinem/rust-cache@v2
+ uses: Swatinem/rust-cache@d1527c8f67ef9af357290475d4af4b0fab8f12e0 # v2.9.3
with:
workspaces: ". -> target"
@@ -95,25 +95,25 @@ jobs:
runs-on: ubuntu-latest
timeout-minutes: 90
steps:
- - uses: actions/checkout@v7
- - uses: actions/setup-python@v7
+ - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
+ - uses: actions/setup-python@6d4fd22b20465ccc0f7354476588e8df7c9ca0e0 # v7.1.0
with:
python-version: "3.11"
- name: Cache pip
- uses: actions/cache@v6
+ uses: actions/cache@55cc8345863c7cc4c66a329aec7e433d2d1c52a9 # v6.1.0
with:
path: ~/.cache/pip
key: ${{ runner.os }}-pip-eval-${{ hashFiles('pyproject.toml') }}
restore-keys: ${{ runner.os }}-pip-eval-
- name: Install Rust toolchain
- uses: dtolnay/rust-toolchain@stable
+ uses: dtolnay/rust-toolchain@b725eda525362e7cf34af9a7243cac1e3f01a7ec # stable
with:
toolchain: 1.95.0 # Keep in sync with rust-toolchain.toml.
- name: Cache cargo registry + build
- uses: Swatinem/rust-cache@v2
+ uses: Swatinem/rust-cache@d1527c8f67ef9af357290475d4af4b0fab8f12e0 # v2.9.3
with:
workspaces: ". -> target"
@@ -182,7 +182,7 @@ jobs:
- name: Upload results
if: always()
- uses: actions/upload-artifact@v7
+ uses: actions/upload-artifact@cf430e030ddbb5b0abf93d22962f4752f3646cd9 # v7.0.2
with:
name: eval-results-${{ github.run_number }}
path: eval_results/
diff --git a/.github/workflows/init-e2e.yml b/.github/workflows/init-e2e.yml
index e6b4531a3..9534d0c10 100644
--- a/.github/workflows/init-e2e.yml
+++ b/.github/workflows/init-e2e.yml
@@ -40,7 +40,7 @@ jobs:
timeout-minutes: 45
steps:
- - uses: actions/checkout@v7
+ - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
- name: Build init e2e image
run: docker build -f e2e/init/Dockerfile -t headroom-init-e2e .
diff --git a/.github/workflows/init-native-e2e.yml b/.github/workflows/init-native-e2e.yml
index 3e125771b..0e2173ff2 100644
--- a/.github/workflows/init-native-e2e.yml
+++ b/.github/workflows/init-native-e2e.yml
@@ -58,7 +58,7 @@ jobs:
- target: openclaw
steps:
- - uses: actions/checkout@v7
+ - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
- name: Setup (shim=${{ matrix.target }})
uses: ./.github/actions/headroom-e2e-setup
diff --git a/.github/workflows/install-native-e2e.yml b/.github/workflows/install-native-e2e.yml
index 99a6703a3..5c7044952 100644
--- a/.github/workflows/install-native-e2e.yml
+++ b/.github/workflows/install-native-e2e.yml
@@ -39,7 +39,7 @@ jobs:
os: [ubuntu-latest, macos-latest]
steps:
- - uses: actions/checkout@v7
+ - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
- name: Setup
uses: ./.github/actions/headroom-e2e-setup
@@ -59,7 +59,7 @@ jobs:
pytest tests/test_cli/test_install_cli.py tests/test_install/test_paths.py --cov=headroom --cov-report=xml:coverage-install-native.xml --cov-report=term-missing -q
- name: Upload coverage to Codecov
- uses: codecov/codecov-action@v5
+ uses: codecov/codecov-action@0fb7174895f61a3b6b78fc075e0cd60383518dac # v5.5.5
with:
files: ./coverage-install-native.xml
flags: install-native
diff --git a/.github/workflows/merge-conflicts.yml b/.github/workflows/merge-conflicts.yml
index 3b88bf55b..2cfc13892 100644
--- a/.github/workflows/merge-conflicts.yml
+++ b/.github/workflows/merge-conflicts.yml
@@ -24,7 +24,7 @@ jobs:
runs-on: ubuntu-latest
timeout-minutes: 5
steps:
- - uses: actions/checkout@v7
+ - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
- name: Reject unresolved merge-conflict markers
run: |
if git grep -nI -E '^(<{7}|>{7}|\|{7})( |$)' -- .; then
diff --git a/.github/workflows/network-diff-capture.yml b/.github/workflows/network-diff-capture.yml
index de8173b0b..860f84fdf 100644
--- a/.github/workflows/network-diff-capture.yml
+++ b/.github/workflows/network-diff-capture.yml
@@ -18,9 +18,9 @@ jobs:
runs-on: ubuntu-latest
timeout-minutes: 20
steps:
- - uses: actions/checkout@v7
+ - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
- - uses: actions/setup-python@v7
+ - uses: actions/setup-python@6d4fd22b20465ccc0f7354476588e8df7c9ca0e0 # v7.1.0
with:
python-version: ${{ env.PY_VERSION }}
@@ -84,9 +84,9 @@ jobs:
ANTHROPIC_API_KEY: ${{ secrets.ANTHROPIC_API_KEY }}
CLAUDE_PROMPT: "Summarize this repository in one sentence. Keep the answer under 30 words."
steps:
- - uses: actions/checkout@v7
+ - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
- - uses: actions/setup-python@v7
+ - uses: actions/setup-python@6d4fd22b20465ccc0f7354476588e8df7c9ca0e0 # v7.1.0
with:
python-version: ${{ env.PY_VERSION }}
@@ -161,7 +161,7 @@ jobs:
- name: Upload capture artifacts
if: always()
- uses: actions/upload-artifact@v7
+ uses: actions/upload-artifact@cf430e030ddbb5b0abf93d22962f4752f3646cd9 # v7.0.2
with:
name: network-diff-capture-${{ github.run_number }}
path: docker/differential-network-capture/captures/
diff --git a/.github/workflows/opencode-plugin.yml b/.github/workflows/opencode-plugin.yml
index aa783eaf5..f7837320f 100644
--- a/.github/workflows/opencode-plugin.yml
+++ b/.github/workflows/opencode-plugin.yml
@@ -33,8 +33,8 @@ jobs:
run:
working-directory: plugins/opencode
steps:
- - uses: actions/checkout@v7
- - uses: actions/setup-node@v7
+ - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
+ - uses: actions/setup-node@949feb2413d6458794dcd2491c4babbbce0c15c1 # v7.1.0
with:
node-version: ">=24.16.0 <25"
cache: npm
diff --git a/.github/workflows/pr-health.yml b/.github/workflows/pr-health.yml
index bbaea26cd..f35fa8c44 100644
--- a/.github/workflows/pr-health.yml
+++ b/.github/workflows/pr-health.yml
@@ -25,7 +25,7 @@ jobs:
runs-on: ubuntu-latest
timeout-minutes: 10
steps:
- - uses: actions/checkout@v7
+ - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
with:
ref: ${{ github.sha }}
@@ -74,7 +74,7 @@ jobs:
- name: Sync governance comment and labels
if: steps.validate.outputs.is_bot_pr != 'true'
- uses: actions/github-script@v7
+ uses: actions/github-script@f28e40c7f34bde8b3046d885e986cb6290c5673b # v7.1.0
env:
REPORT_PATH: .pr-governance-report.json
with:
@@ -151,7 +151,7 @@ jobs:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
REPO: ${{ github.repository }}
steps:
- - uses: actions/checkout@v7
+ - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
with:
ref: ${{ github.sha }}
diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml
index 5e6232343..8ac67b1e0 100644
--- a/.github/workflows/publish.yml
+++ b/.github/workflows/publish.yml
@@ -17,20 +17,20 @@ jobs:
contents: write # For uploading release assets
steps:
- - uses: actions/checkout@v7
+ - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
- name: Set up Python
- uses: actions/setup-python@v7
+ uses: actions/setup-python@6d4fd22b20465ccc0f7354476588e8df7c9ca0e0 # v7.1.0
with:
python-version: "3.11"
- name: Install Rust toolchain
- uses: dtolnay/rust-toolchain@stable
+ uses: dtolnay/rust-toolchain@b725eda525362e7cf34af9a7243cac1e3f01a7ec # stable
with:
toolchain: 1.95.0 # Keep in sync with rust-toolchain.toml.
- name: Cache cargo registry + build
- uses: Swatinem/rust-cache@v2
+ uses: Swatinem/rust-cache@d1527c8f67ef9af357290475d4af4b0fab8f12e0 # v2.9.3
with:
workspaces: ". -> target"
@@ -51,9 +51,9 @@ jobs:
--outfile dist/headroom-sbom.cdx.json
- name: Upload SBOM to release
- uses: softprops/action-gh-release@v3
+ uses: softprops/action-gh-release@8a0cd651e5b2365bd640854a3fa5dfc70e4875f3 # v3.0.4
with:
files: dist/headroom-sbom.cdx.json
- name: Publish to PyPI
- uses: pypa/[email protected]
+ uses: pypa/gh-action-pypi-publish@7245906fb61fa33a13554f9d5fb856fe61758086 # v1.14.3
diff --git a/.github/workflows/release-metadata-sync.yml b/.github/workflows/release-metadata-sync.yml
index 3b11d041d..d8cbe2c8b 100644
--- a/.github/workflows/release-metadata-sync.yml
+++ b/.github/workflows/release-metadata-sync.yml
@@ -57,12 +57,12 @@ jobs:
id: app-token
if: ${{ vars.RELEASE_APP_ID != '' }}
continue-on-error: true
- uses: actions/create-github-app-token@v3
+ uses: actions/create-github-app-token@64ab729a6294000f5aa4a4bc0b73d1f32bc45510 # v3.3.0
with:
app-id: ${{ vars.RELEASE_APP_ID }}
private-key: ${{ secrets.RELEASE_APP_PRIVATE_KEY }}
- - uses: actions/checkout@v7
+ - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
with:
ref: ${{ github.ref_name }}
# Do NOT persist the credential into .git/config. The next step runs
@@ -71,7 +71,7 @@ jobs:
# A persisted token would be readable by that script.
persist-credentials: false
- - uses: actions/setup-python@v7
+ - uses: actions/setup-python@6d4fd22b20465ccc0f7354476588e8df7c9ca0e0 # v7.1.0
with:
python-version: "3.12"
diff --git a/.github/workflows/release-please.yml b/.github/workflows/release-please.yml
index 6acd263ed..a2329dd47 100644
--- a/.github/workflows/release-please.yml
+++ b/.github/workflows/release-please.yml
@@ -54,7 +54,7 @@ jobs:
id: app-token
if: ${{ vars.RELEASE_APP_ID != '' }}
continue-on-error: true
- uses: actions/create-github-app-token@v3
+ uses: actions/create-github-app-token@64ab729a6294000f5aa4a4bc0b73d1f32bc45510 # v3.3.0
with:
app-id: ${{ vars.RELEASE_APP_ID }}
private-key: ${{ secrets.RELEASE_APP_PRIVATE_KEY }}
@@ -63,13 +63,13 @@ jobs:
# then cannot find its exact `---` delimiters and silently skips release
# creation. Repair only merged, pending release PR envelopes before the
# action reads them; do not infer versions or rewrite generated notes.
- - uses: actions/checkout@v7
+ - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
- name: Normalize pending release PR body line endings
env:
GH_TOKEN: ${{ steps.app-token.outputs.token || secrets.RELEASE_PLEASE_TOKEN || secrets.GITHUB_TOKEN }}
run: python scripts/normalize_release_pr_bodies.py --repo "${{ github.repository }}" --apply
- - uses: googleapis/release-please-action@v5
+ - uses: googleapis/release-please-action@45996ed1f6d02564a971a2fa1b5860e934307cf7 # v5.0.0
with:
# Neither an app token nor a PAT is GITHUB_TOKEN, and that matters: a
# release/tag created by GITHUB_TOKEN does NOT emit events that trigger
diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml
index 37e59a135..6d6b53f62 100644
--- a/.github/workflows/release.yml
+++ b/.github/workflows/release.yml
@@ -87,7 +87,7 @@ jobs:
bump: ${{ steps.ver.outputs.bump }}
previous_tag: ${{ steps.ver.outputs.previous_tag }}
steps:
- - uses: actions/checkout@v7
+ - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
with:
fetch-depth: 0
@@ -129,17 +129,17 @@ jobs:
permissions:
contents: read
steps:
- - uses: actions/checkout@v7
+ - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
with:
fetch-depth: 0
- name: Set up Python
- uses: actions/setup-python@v7
+ uses: actions/setup-python@6d4fd22b20465ccc0f7354476588e8df7c9ca0e0 # v7.1.0
with:
python-version: "3.12"
- name: Set up Node.js
- uses: actions/setup-node@v7
+ uses: actions/setup-node@949feb2413d6458794dcd2491c4babbbce0c15c1 # v7.1.0
with:
node-version: ">=24.16.0 <25"
@@ -182,7 +182,7 @@ jobs:
shell: bash
- name: Upload changelog via action
- uses: actions/upload-artifact@v7
+ uses: actions/upload-artifact@cf430e030ddbb5b0abf93d22962f4752f3646cd9 # v7.0.2
with:
name: changelog
path: /tmp/changelog-backup.md
@@ -193,7 +193,7 @@ jobs:
node scripts/build_npm_release_assets.mjs "${{ needs.detect-version.outputs.npm_version }}" release-assets
- name: Upload release assets artifact
- uses: actions/upload-artifact@v7
+ uses: actions/upload-artifact@cf430e030ddbb5b0abf93d22962f4752f3646cd9 # v7.0.2
with:
name: release-assets
path: release-assets/
@@ -264,12 +264,12 @@ jobs:
manylinux: ""
runs-on: ${{ matrix.os }}
steps:
- - uses: actions/checkout@v7
+ - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
with:
fetch-depth: 0
- name: Set up Python
- uses: actions/setup-python@v7
+ uses: actions/setup-python@6d4fd22b20465ccc0f7354476588e8df7c9ca0e0 # v7.1.0
with:
python-version: "3.11"
@@ -283,7 +283,7 @@ jobs:
python scripts/verify-versions.py
- name: Build wheels
- uses: PyO3/maturin-action@v1
+ uses: PyO3/maturin-action@e83996d129638aa358a18fbd1dfb82f0b0fb5d3b # v1.51.0
with:
target: ${{ matrix.target }}
args: --release --out dist --interpreter python3.10 python3.11 python3.12 python3.13
@@ -313,7 +313,7 @@ jobs:
# build from any future `os` rename.
- name: Build sdist (linux x86_64 only — sdist is platform-independent)
if: matrix.target == 'x86_64-unknown-linux-gnu'
- uses: PyO3/maturin-action@v1
+ uses: PyO3/maturin-action@e83996d129638aa358a18fbd1dfb82f0b0fb5d3b # v1.51.0
with:
command: sdist
args: --out dist
@@ -396,7 +396,7 @@ jobs:
done
- name: Upload wheels artifact
- uses: actions/upload-artifact@v7
+ uses: actions/upload-artifact@cf430e030ddbb5b0abf93d22962f4752f3646cd9 # v7.0.2
with:
name: wheels-${{ matrix.os }}-${{ matrix.target }}
path: dist/*
@@ -410,14 +410,14 @@ jobs:
contents: read
steps:
- name: Download all wheel artifacts
- uses: actions/download-artifact@v8
+ uses: actions/download-artifact@9000827ccba6bdab643e8b6fd33ac0654aef8333 # v8.0.2
with:
pattern: wheels-*
path: wheels-tmp/
merge-multiple: true
- name: Download release assets
- uses: actions/download-artifact@v8
+ uses: actions/download-artifact@9000827ccba6bdab643e8b6fd33ac0654aef8333 # v8.0.2
with:
name: release-assets
path: release-assets/
@@ -432,13 +432,13 @@ jobs:
ls -la release-assets/
- name: Upload merged dist artifact
- uses: actions/upload-artifact@v7
+ uses: actions/upload-artifact@cf430e030ddbb5b0abf93d22962f4752f3646cd9 # v7.0.2
with:
name: dist
path: dist/
- name: Upload merged release-assets artifact
- uses: actions/upload-artifact@v7
+ uses: actions/upload-artifact@cf430e030ddbb5b0abf93d22962f4752f3646cd9 # v7.0.2
with:
name: release-assets-merged
path: release-assets/
@@ -512,7 +512,7 @@ jobs:
steps:
- name: Download wheels artifact for this target
- uses: actions/download-artifact@v8
+ uses: actions/download-artifact@9000827ccba6bdab643e8b6fd33ac0654aef8333 # v8.0.2
with:
name: ${{ matrix.wheel_artifact }}
path: dist/
@@ -524,7 +524,7 @@ jobs:
# is on PATH as `python` for the smoke step below.
- name: Set up Python (Windows host)
if: matrix.image == '' && runner.os == 'Windows'
- uses: actions/setup-python@v7
+ uses: actions/setup-python@6d4fd22b20465ccc0f7354476588e8df7c9ca0e0 # v7.1.0
with:
python-version: ${{ matrix.python }}
@@ -772,14 +772,14 @@ jobs:
id-token: write # Required for OIDC trusted publishing
steps:
- name: Download merged dist artifact (sdist + cross-platform wheels)
- uses: actions/download-artifact@v8
+ uses: actions/download-artifact@9000827ccba6bdab643e8b6fd33ac0654aef8333 # v8.0.2
with:
name: dist
path: dist/
- name: Publish ${{ env.PYPI_PACKAGE }} to PyPI
id: pypi-publish
- uses: pypa/[email protected]
+ uses: pypa/gh-action-pypi-publish@7245906fb61fa33a13554f9d5fb856fe61758086 # v1.14.3
with:
# Idempotent re-runs: when a wheel filename for the computed
# version is already on PyPI (e.g. a previous push to main
@@ -803,12 +803,12 @@ jobs:
permissions:
contents: read
steps:
- - uses: actions/checkout@v7
+ - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
with:
fetch-depth: 0
- name: Set up Node.js
- uses: actions/setup-node@v7
+ uses: actions/setup-node@949feb2413d6458794dcd2491c4babbbce0c15c1 # v7.1.0
with:
node-version: ">=24.16.0 <25"
registry-url: ${{ env.NPM_REGISTRY_URL }}
@@ -898,7 +898,7 @@ jobs:
contents: read
packages: write
steps:
- - uses: actions/checkout@v7
+ - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
with:
fetch-depth: 0
@@ -909,7 +909,7 @@ jobs:
printf 'scope=%s\n' "$scope" >> "$GITHUB_OUTPUT"
- name: Set up Node.js for GitHub Package Registry
- uses: actions/setup-node@v7
+ uses: actions/setup-node@949feb2413d6458794dcd2491c4babbbce0c15c1 # v7.1.0
with:
node-version: ">=24.16.0 <25"
registry-url: ${{ env.GITHUB_PACKAGES_REGISTRY_URL }}
@@ -1030,18 +1030,18 @@ jobs:
permissions:
contents: write
steps:
- - uses: actions/checkout@v7
+ - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
with:
fetch-depth: 0
- name: Download changelog artifact
- uses: actions/download-artifact@v8
+ uses: actions/download-artifact@9000827ccba6bdab643e8b6fd33ac0654aef8333 # v8.0.2
with:
name: changelog
path: /tmp
- name: Download merged release assets (npm tarballs + wheels + sdist)
- uses: actions/download-artifact@v8
+ uses: actions/download-artifact@9000827ccba6bdab643e8b6fd33ac0654aef8333 # v8.0.2
with:
name: release-assets-merged
path: release-assets
@@ -1123,7 +1123,7 @@ jobs:
permissions:
contents: read
steps:
- - uses: actions/checkout@v7
+ - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
- name: Announce completed GitHub Release assets
uses: ./.github/actions/release-slack-notification
with:
diff --git a/.github/workflows/rust.yml b/.github/workflows/rust.yml
index 7e17b47be..ec8b227b8 100644
--- a/.github/workflows/rust.yml
+++ b/.github/workflows/rust.yml
@@ -41,8 +41,8 @@ jobs:
outputs:
rust: ${{ steps.decide.outputs.rust }}
steps:
- - uses: actions/checkout@v7
- - uses: dorny/paths-filter@v4
+ - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
+ - uses: dorny/paths-filter@ceb8a2b8f2d89434be7ff52d3de7ec3738c5cc9d # v4.0.3
id: filter
if: github.event_name == 'pull_request' || github.event_name == 'push'
with:
@@ -83,20 +83,20 @@ jobs:
- name: macos
os: macos-26
steps:
- - uses: actions/checkout@v7
+ - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
- name: Install stable toolchain
# Pin action code to @stable (latest fixes), toolchain version
# via input. The @1.95.0 ref shipped action code that errors on
# ubuntu-latest with `detected conflict: 'bin/cargo-clippy'`
# because the pre-installed runner Rust collides with the
# clippy-preview component install.
- uses: dtolnay/rust-toolchain@stable
+ uses: dtolnay/rust-toolchain@b725eda525362e7cf34af9a7243cac1e3f01a7ec # stable
with:
toolchain: 1.95.0
components: rustfmt, clippy
- name: Cache cargo registry + build
- uses: Swatinem/rust-cache@v2
- - uses: actions/setup-python@v7
+ uses: Swatinem/rust-cache@d1527c8f67ef9af357290475d4af4b0fab8f12e0 # v2.9.3
+ - uses: actions/setup-python@6d4fd22b20465ccc0f7354476588e8df7c9ca0e0 # v7.1.0
with:
python-version: '3.11'
- name: Provide ONNX Runtime dylib
@@ -176,13 +176,13 @@ jobs:
matrix:
os: [ubuntu-latest, macos-latest, windows-latest]
steps:
- - uses: actions/checkout@v7
+ - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
- name: Install stable toolchain
- uses: dtolnay/rust-toolchain@stable
+ uses: dtolnay/rust-toolchain@b725eda525362e7cf34af9a7243cac1e3f01a7ec # stable
with:
toolchain: 1.95.0
- name: Cache cargo registry + build
- uses: Swatinem/rust-cache@v2
+ uses: Swatinem/rust-cache@d1527c8f67ef9af357290475d4af4b0fab8f12e0 # v2.9.3
- name: cargo test simulator-backed proxy e2e
run: cargo test -p headroom-proxy --test e2e_simulators
@@ -208,12 +208,12 @@ jobs:
# Intel macOS uses `ort-load-dynamic` (no prebuilt ORT from ort-sys);
# Apple Silicon bundles ORT via `ort-download-binaries-rustls-tls`.
steps:
- - uses: actions/checkout@v7
- - uses: actions/setup-python@v7
+ - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
+ - uses: actions/setup-python@6d4fd22b20465ccc0f7354476588e8df7c9ca0e0 # v7.1.0
with:
python-version: '3.11'
- name: "Build wheel (single-wheel architecture builds headroom-ai)"
- uses: PyO3/maturin-action@v1
+ uses: PyO3/maturin-action@e83996d129638aa358a18fbd1dfb82f0b0fb5d3b # v1.51.0
# Maturin reads `[tool.maturin]` from the root `pyproject.toml`
# which points at `crates/headroom-py/Cargo.toml` for the cdylib.
# Output is `headroom_ai-<ver>-<py>-<py>-<platform>.whl` containing
@@ -223,7 +223,7 @@ jobs:
args: --release --out dist
target: ${{ matrix.maturin-target }}
- name: Upload wheel artifact
- uses: actions/upload-artifact@v7
+ uses: actions/upload-artifact@cf430e030ddbb5b0abf93d22962f4752f3646cd9 # v7.0.2
with:
name: wheels-${{ matrix.target }}
path: dist/*.whl
@@ -249,11 +249,11 @@ jobs:
if: needs.rust-changes.outputs.rust == 'true'
runs-on: ubuntu-latest
steps:
- - uses: actions/checkout@v7
- - uses: dtolnay/rust-toolchain@stable
+ - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
+ - uses: dtolnay/rust-toolchain@b725eda525362e7cf34af9a7243cac1e3f01a7ec # stable
with:
toolchain: 1.95.0
- - uses: Swatinem/rust-cache@v2
+ - uses: Swatinem/rust-cache@d1527c8f67ef9af357290475d4af4b0fab8f12e0 # v2.9.3
# No Python toolchain: headroom-parity links headroom-core directly and
# never crosses into the interpreter, so the venv + maturin + `pip
# install -e .` setup this job used to do was pure overhead.
diff --git a/.github/workflows/sdk-typescript.yml b/.github/workflows/sdk-typescript.yml
index ad7f9efe3..e30fbc70a 100644
--- a/.github/workflows/sdk-typescript.yml
+++ b/.github/workflows/sdk-typescript.yml
@@ -31,8 +31,8 @@ jobs:
run:
working-directory: sdk/typescript
steps:
- - uses: actions/checkout@v7
- - uses: actions/setup-node@v7
+ - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
+ - uses: actions/setup-node@949feb2413d6458794dcd2491c4babbbce0c15c1 # v7.1.0
with:
node-version: ">=24.16.0 <25"
cache: npm
diff --git a/.github/workflows/security.yml b/.github/workflows/security.yml
index 6aa807654..a904a235e 100644
--- a/.github/workflows/security.yml
+++ b/.github/workflows/security.yml
@@ -33,10 +33,10 @@ jobs:
runs-on: ubuntu-latest
timeout-minutes: 15
steps:
- - uses: actions/checkout@v7
+ - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
- name: Set up Python
- uses: actions/setup-python@v7
+ uses: actions/setup-python@6d4fd22b20465ccc0f7354476588e8df7c9ca0e0 # v7.1.0
with:
python-version: "3.12"
@@ -75,7 +75,7 @@ jobs:
runs-on: ubuntu-latest
timeout-minutes: 15
steps:
- - uses: actions/checkout@v7
+ - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
with:
fetch-depth: 0
@@ -91,7 +91,7 @@ jobs:
- name: Set up Python
if: steps.gate.outputs.run == 'true'
- uses: actions/setup-python@v7
+ uses: actions/setup-python@6d4fd22b20465ccc0f7354476588e8df7c9ca0e0 # v7.1.0
with:
python-version: "3.12"
@@ -164,10 +164,10 @@ jobs:
runs-on: ubuntu-latest
timeout-minutes: 15
steps:
- - uses: actions/checkout@v7
+ - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
- name: Install cargo-audit + cargo-deny
- uses: taiki-e/install-action@v2
+ uses: taiki-e/install-action@c509219cf42fba86913069efd0ade2458c59337b # v2.90.1
with:
tool: cargo-audit,cargo-deny
@@ -196,8 +196,8 @@ jobs:
- plugins/opencode
- e2e/wrap/tools
steps:
- - uses: actions/checkout@v7
- - uses: actions/setup-node@v7
+ - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
+ - uses: actions/setup-node@949feb2413d6458794dcd2491c4babbbce0c15c1 # v7.1.0
with:
node-version: ">=24.16.0 <25"
# A directory may hold npm-audit-exceptions.json for advisories in copies
@@ -267,10 +267,10 @@ jobs:
matrix:
language: [python, javascript-typescript, actions]
steps:
- - uses: actions/checkout@v7
+ - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
- name: Initialize CodeQL
- uses: github/codeql-action/init@v4
+ uses: github/codeql-action/init@33d7b85da1a04171e211befe2c739303b9a4c066 # v4.39.3
with:
languages: ${{ matrix.language }}
queries: security-extended
@@ -282,7 +282,7 @@ jobs:
- tests
- name: Perform CodeQL analysis
- uses: github/codeql-action/analyze@v4
+ uses: github/codeql-action/analyze@33d7b85da1a04171e211befe2c739303b9a4c066 # v4.39.3
with:
category: "/language:${{ matrix.language }}"
@@ -297,7 +297,7 @@ jobs:
runs-on: ubuntu-latest
timeout-minutes: 10
steps:
- - uses: actions/checkout@v7
+ - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
with:
fetch-depth: 0
diff --git a/.github/workflows/stale.yml b/.github/workflows/stale.yml
index acbd5bbb5..c28971324 100644
--- a/.github/workflows/stale.yml
+++ b/.github/workflows/stale.yml
@@ -29,7 +29,7 @@ jobs:
--description "No recent activity; may be closed if it stays inactive" \
--force
- - uses: actions/stale@v11
+ - uses: actions/stale@4391f3da665fdf50b6810c1a66712fb9ba21aa93 # v11.0.0
with:
repo-token: ${{ secrets.GITHUB_TOKEN }}
operations-per-run: 200
diff --git a/.github/workflows/tools-hash-refresh.yml b/.github/workflows/tools-hash-refresh.yml
index f27a609a5..35ead1d22 100644
--- a/.github/workflows/tools-hash-refresh.yml
+++ b/.github/workflows/tools-hash-refresh.yml
@@ -21,8 +21,8 @@ jobs:
verify-pins:
runs-on: ubuntu-latest
steps:
- - uses: actions/checkout@v7
- - uses: actions/setup-python@v7
+ - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
+ - uses: actions/setup-python@6d4fd22b20465ccc0f7354476588e8df7c9ca0e0 # v7.1.0
with:
python-version: "3.12"
- name: Verify tool SHA-256 pins
diff --git a/.github/workflows/wrap-e2e.yml b/.github/workflows/wrap-e2e.yml
index 0044c5df7..2a5e2670b 100644
--- a/.github/workflows/wrap-e2e.yml
+++ b/.github/workflows/wrap-e2e.yml
@@ -39,7 +39,7 @@ jobs:
timeout-minutes: 45
steps:
- - uses: actions/checkout@v7
+ - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
- name: Build wrap e2e image
run: docker build -f e2e/wrap/Dockerfile -t headroom-wrap-e2e .
diff --git a/.github/workflows/wrap-native-e2e.yml b/.github/workflows/wrap-native-e2e.yml
index 3684368a4..bd95e1342 100644
--- a/.github/workflows/wrap-native-e2e.yml
+++ b/.github/workflows/wrap-native-e2e.yml
@@ -43,7 +43,7 @@ jobs:
os: [ubuntu-latest, macos-latest]
steps:
- - uses: actions/checkout@v7
+ - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
- name: Setup
uses: ./.github/actions/headroom-e2e-setup
@@ -63,7 +63,7 @@ jobs:
pytest tests/test_cli/test_wrap_bridge.py --cov=headroom --cov-report=xml:coverage-wrap-native.xml --cov-report=term-missing -q
- name: Upload coverage to Codecov
- uses: codecov/codecov-action@v5
+ uses: codecov/codecov-action@0fb7174895f61a3b6b78fc075e0cd60383518dac # v5.5.5
with:
files: ./coverage-wrap-native.xml
flags: wrap-native
diff --git a/scripts/tests/test_ci_workflow.py b/scripts/tests/test_ci_workflow.py
index 04ef7b293..2f2632651 100644
--- a/scripts/tests/test_ci_workflow.py
+++ b/scripts/tests/test_ci_workflow.py
@@ -2,6 +2,7 @@
from __future__ import annotations
+import re
from pathlib import Path
import yaml
@@ -31,3 +32,18 @@ def test_sharded_ci_disables_process_killing_hard_watchdog() -> None:
workflow = yaml.safe_load(Path(".github/workflows/ci.yml").read_text(encoding="utf-8"))
assert workflow["jobs"]["test"]["env"]["HEADROOM_HARD_WATCHDOG_SECS"] == "0"
+
+
+def test_every_action_is_pinned_to_a_commit_sha() -> None:
+ """A tag like actions/checkout@v7 can be moved to other code; a commit SHA cannot."""
+ uses = re.compile(r"^\s*(?:-\s*)?uses:\s*[\"']?([^\s\"'#]+)", re.MULTILINE)
+ unpinned = [
+ f"{path}: {ref}"
+ for path in sorted(Path(".github").rglob("*.y*ml"))
+ for ref in uses.findall(path.read_text(encoding="utf-8"))
+ if not ref.startswith("./") and not re.search(r"@[0-9a-f]{40}$", ref)
+ ]
+
+ assert unpinned == [], "pin these to a full commit SHA, version as a comment:\n" + "\n".join(
+ unpinned
+ )
diff --git a/tests/test_release_workflows.py b/tests/test_release_workflows.py
index 2a49e00dd..a3d2e6003 100644
--- a/tests/test_release_workflows.py
+++ b/tests/test_release_workflows.py
@@ -318,7 +318,7 @@ def test_docker_build_cache_failures_are_best_effort() -> None:
assert cached["continue-on-error"] is True
assert "ignore-error=true" in cache_to
assert fallback_builder["if"] == "steps.bake.outcome == 'failure'"
- assert fallback_builder["uses"] == "docker/setup-buildx-action@v4"
+ assert fallback_builder["uses"].startswith("docker/setup-buildx-action@")
assert fallback["if"] == "steps.bake.outcome == 'failure'"
assert fallback["uses"] == cached["uses"]
assert fallback["with"]["builder"] == "${{ steps.fallback-buildx.outputs.name }}"
@@ -1225,7 +1225,7 @@ def test_pypi_publish_failure_blocks_github_release() -> None:
npm_job_start = content.index("publish-npm:", pypi_job_start)
pypi_job = content[pypi_job_start:npm_job_start]
- assert re.search(r"uses: pypa/gh-action-pypi-publish@v\d+\.\d+\.\d+", pypi_job)
+ assert re.search(r"uses: pypa/gh-action-pypi-publish@[0-9a-f]{40} # v\d+\.\d+\.\d+", pypi_job)
assert "continue-on-error: true" not in pypi_job
assert "(vars.PYPI_SKIP == 'true' || needs.publish-pypi.result == 'success')" in content
@@ -1670,7 +1670,7 @@ def test_release_please_workflow_exists_and_targets_main() -> None:
)
content = rp_path.read_text(encoding="utf-8")
- assert any(f"googleapis/release-please-action@v{v}" in content for v in (4, 5)), (
+ assert re.search(r"googleapis/release-please-action@[0-9a-f]{40} # v[45]\.", content), (
"release-please.yml must use the v4 or v5 action — earlier versions "
"have different manifest semantics."
)