Skip to content

Commit 9732084

Browse files
authored
ci(deps): pin GitHub Actions to commit SHAs (#8065)
Every third-party GitHub Action in the workflows is now pinned to a full commit SHA instead of a floating major tag, closing a supply-chain gap where a mutable tag like `@v6` could be force-pushed to point at malicious code. Seven actions were already SHA-pinned; this brings the remaining first-party `actions/*` and `astral-sh/setup-uv` references in line. ## Changes - Pinned all previously tag-referenced actions to their current commit SHA with the exact release as a trailing comment (the format Dependabot reads and updates): `actions/checkout` → `v6.0.3`, `actions/setup-python` → `v6.2.0`, `actions/github-script` → `v9.0.0`, `actions/upload-artifact` → `v7.0.1`, `actions/download-artifact` → `v8.0.1`, `actions/cache/{restore,save}` → `v5.0.5`, `actions/configure-pages` → `v6.0.0`, `actions/deploy-pages` → `v5.0.0`, `actions/upload-pages-artifact` → `v5.0.0`, `actions/create-github-app-token` → `v3.2.0`, and `astral-sh/setup-uv` → `v7.6.0`. - Applied across all workflow files plus the `uv_setup` composite action; local same-repo references (`./.github/workflows/_*.yml`, `./.github/actions/uv_setup`) left as path refs since they resolve from the same commit.
1 parent 8558481 commit 9732084

17 files changed

Lines changed: 50 additions & 50 deletions

‎.github/actions/uv_setup/action.yml‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ runs:
2424
using: composite
2525
steps:
2626
- name: Install uv and set the python version
27-
uses: astral-sh/setup-uv@v7
27+
uses: astral-sh/setup-uv@37802adc94f370d6bfd71619e3f0bf239e1f3b78 # v7.6.0
2828
with:
2929
python-version: ${{ inputs.python-version }}
3030
enable-cache: ${{ inputs.enable-cache }}

‎.github/workflows/_integration_test.yml‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ jobs:
3737
run:
3838
working-directory: libs/cli
3939
steps:
40-
- uses: actions/checkout@v6
40+
- uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6.0.3
4141
- name: Get changed files
4242
id: changed-files
4343
if: github.event_name != 'workflow_dispatch'

‎.github/workflows/_lint.yml‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ jobs:
3131
- "3.12"
3232
name: "lint #${{ matrix.python-version }}"
3333
steps:
34-
- uses: actions/checkout@v6
34+
- uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6.0.3
3535
- name: Get changed files
3636
id: changed-files
3737
if: github.event_name != 'workflow_dispatch'

‎.github/workflows/_sdk_integration_test.yml‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ jobs:
2323
env:
2424
HAS_LANGSMITH_API_KEY: ${{ secrets.LANGSMITH_API_KEY != '' }}
2525
steps:
26-
- uses: actions/checkout@v6
26+
- uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6.0.3
2727

2828
- name: Set up Python
2929
uses: ./.github/actions/uv_setup

‎.github/workflows/_test.yml‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ jobs:
2525

2626
name: "test #${{ matrix.python-version }}"
2727
steps:
28-
- uses: actions/checkout@v6
28+
- uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6.0.3
2929
- name: Set up Python ${{ matrix.python-version }}
3030
uses: ./.github/actions/uv_setup
3131
with:

‎.github/workflows/_test_langgraph.yml‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ jobs:
2323
working-directory: libs/langgraph
2424
name: "test #${{ matrix.python-version }}"
2525
steps:
26-
- uses: actions/checkout@v6
26+
- uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6.0.3
2727
- name: Set up Python ${{ matrix.python-version }}
2828
uses: ./.github/actions/uv_setup
2929
with:

‎.github/workflows/_test_release.yml‎

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ jobs:
2323
version: ${{ steps.check-version.outputs.version }}
2424

2525
steps:
26-
- uses: actions/checkout@v6
26+
- uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6.0.3
2727

2828
- name: Set up Python ${{ env.PYTHON_VERSION }}
2929
uses: ./.github/actions/uv_setup
@@ -48,7 +48,7 @@ jobs:
4848
working-directory: ${{ inputs.working-directory }}
4949

5050
- name: Upload build
51-
uses: actions/upload-artifact@v7
51+
uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7.0.1
5252
with:
5353
name: test-dist
5454
path: ${{ inputs.working-directory }}/dist/
@@ -74,9 +74,9 @@ jobs:
7474
id-token: write
7575

7676
steps:
77-
- uses: actions/checkout@v6
77+
- uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6.0.3
7878

79-
- uses: actions/download-artifact@v8
79+
- uses: actions/download-artifact@3e5f45b2cfb9172054b4087a40e8e0b5a5461e7c # v8.0.1
8080
with:
8181
name: test-dist
8282
path: ${{ inputs.working-directory }}/dist/

‎.github/workflows/baseline.yml‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ jobs:
1717
run:
1818
working-directory: libs/langgraph
1919
steps:
20-
- uses: actions/checkout@v6
20+
- uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6.0.3
2121
- run: SHA=$(git rev-parse HEAD) && echo "SHA=$SHA" >> $GITHUB_ENV
2222
- name: Set up Python 3.11
2323
uses: ./.github/actions/uv_setup
@@ -30,7 +30,7 @@ jobs:
3030
- name: Run benchmarks
3131
run: OUTPUT=out/benchmark-baseline.json make -s benchmark
3232
- name: Save outputs
33-
uses: actions/cache/save@v5
33+
uses: actions/cache/save@27d5ce7f107fe9357f9df03efb73ab90386fccae # v5.0.5
3434
with:
3535
key: ${{ runner.os }}-benchmark-baseline-${{ env.SHA }}
3636
path: |

‎.github/workflows/bench.yml‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ jobs:
1515
run:
1616
working-directory: libs/langgraph
1717
steps:
18-
- uses: actions/checkout@v6
18+
- uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6.0.3
1919
- id: files
2020
name: Get changed files
2121
uses: Ana06/get-changed-files@25f79e676e7ea1868813e21465014798211fad8c # v2.3.0
@@ -30,7 +30,7 @@ jobs:
3030
- name: Install dependencies
3131
run: uv sync --group test
3232
- name: Download baseline
33-
uses: actions/cache/restore@v5
33+
uses: actions/cache/restore@27d5ce7f107fe9357f9df03efb73ab90386fccae # v5.0.5
3434
with:
3535
key: ${{ runner.os }}-benchmark-baseline
3636
restore-keys: |
@@ -57,7 +57,7 @@ jobs:
5757
echo EOF
5858
} >> "$GITHUB_OUTPUT"
5959
- name: Annotation
60-
uses: actions/github-script@v9
60+
uses: actions/github-script@3a2844b7e9c422d3c10d287c895573f7108da1b3 # v9.0.0
6161
env:
6262
CHANGED_FILES: ${{ steps.files.outputs.added_modified_renamed }}
6363
BENCHMARK_OUTPUT: ${{ steps.benchmark.outputs.OUTPUT }}

‎.github/workflows/ci.yml‎

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ jobs:
3030
deps: ${{ steps.filter.outputs.deps || 'true' }}
3131
sdk_py: ${{ steps.filter.outputs.sdk_py || 'true' }}
3232
steps:
33-
- uses: actions/checkout@v6
33+
- uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6.0.3
3434
- uses: dorny/paths-filter@fbd0ab8f3e69293af611ebaee6363fc25e6d187d # v4
3535
if: github.event_name != 'workflow_dispatch'
3636
id: filter
@@ -112,9 +112,9 @@ jobs:
112112
name: "Check SDK methods matching"
113113
runs-on: ubuntu-latest
114114
steps:
115-
- uses: actions/checkout@v6
115+
- uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6.0.3
116116
- name: Set up Python
117-
uses: actions/setup-python@v6
117+
uses: actions/setup-python@a309ff8b426b58ec0e2a45f0f869d46889d02405 # v6.2.0
118118
with:
119119
python-version: "3.11"
120120
- name: Run check_sdk_methods script
@@ -130,7 +130,7 @@ jobs:
130130
python-version:
131131
- "3.13"
132132
steps:
133-
- uses: actions/checkout@v6
133+
- uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6.0.3
134134
- name: Set up Python ${{ matrix.python-version }}
135135
uses: ./.github/actions/uv_setup
136136
with:

0 commit comments

Comments
 (0)