Skip to content

Commit a9338f8

Browse files
author
Codacy Security Bot
committed
Security: pin GitHub Actions to SHA hashes
Replaces mutable tag/branch references with immutable SHA hashes to prevent supply chain attacks (ref: TeamPCP/Trivy March 2026). Actions left as tags: 0
1 parent 6688feb commit a9338f8

4 files changed

Lines changed: 27 additions & 27 deletions

File tree

.github/workflows/python.yml

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ jobs:
1414
outputs:
1515
packages: ${{ steps.find-packages.outputs.packages }}
1616
steps:
17-
- uses: actions/checkout@v4
17+
- uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4
1818

1919
- name: Find Python packages
2020
id: find-packages
@@ -31,13 +31,13 @@ jobs:
3131
name: Build ${{ matrix.package }}
3232
runs-on: ubuntu-latest
3333
steps:
34-
- uses: actions/checkout@v4
34+
- uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4
3535

3636
- name: Install uv
37-
uses: astral-sh/setup-uv@v3
37+
uses: astral-sh/setup-uv@caf0cab7a618c569241d31dcd442f54681755d39 # v3
3838

3939
- name: Set up Python
40-
uses: actions/setup-python@v5
40+
uses: actions/setup-python@a26af69be951a213d495a4c3e4e4022e16d87065 # v5
4141
with:
4242
python-version-file: "src/${{ matrix.package }}/.python-version"
4343

@@ -54,7 +54,7 @@ jobs:
5454
run: uv build
5555

5656
- name: Upload artifacts
57-
uses: actions/upload-artifact@v4
57+
uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4
5858
with:
5959
name: dist-${{ matrix.package }}
6060
path: src/${{ matrix.package }}/dist/
@@ -75,10 +75,10 @@ jobs:
7575

7676
steps:
7777
- name: Download artifacts
78-
uses: actions/download-artifact@v4
78+
uses: actions/download-artifact@d3f86a106a0bac45b974a628896c90dbdf5c8093 # v4
7979
with:
8080
name: dist-${{ matrix.package }}
8181
path: dist/
8282

8383
- name: Publish package to PyPI
84-
uses: pypa/gh-action-pypi-publish@release/v1
84+
uses: pypa/gh-action-pypi-publish@ed0c53931b1dc9bd32cbe73a98c7f6766f8a527e # release/v1

.github/workflows/release.yml

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ jobs:
1414
npm_packages: ${{ steps.create-npm-packages.outputs.npm_packages}}
1515
pypi_packages: ${{ steps.create-pypi-packages.outputs.pypi_packages}}
1616
steps:
17-
- uses: actions/checkout@v4
17+
- uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4
1818
with:
1919
fetch-depth: 0
2020

@@ -26,7 +26,7 @@ jobs:
2626
echo "Using last release hash: ${HASH}"
2727
2828
- name: Install uv
29-
uses: astral-sh/setup-uv@v5
29+
uses: astral-sh/setup-uv@d4b2f3b6ecc6e67c4457f6d3e41ec42d3d0fcb86 # v5
3030

3131
- name: Create version name
3232
id: create-version
@@ -42,7 +42,7 @@ jobs:
4242
cat RELEASE_NOTES.md
4343
4444
- name: Release notes
45-
uses: actions/upload-artifact@v4
45+
uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4
4646
with:
4747
name: release-notes
4848
path: RELEASE_NOTES.md
@@ -71,12 +71,12 @@ jobs:
7171
outputs:
7272
changes_made: ${{ steps.commit.outputs.changes_made }}
7373
steps:
74-
- uses: actions/checkout@v4
74+
- uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4
7575
with:
7676
fetch-depth: 0
7777

7878
- name: Install uv
79-
uses: astral-sh/setup-uv@v5
79+
uses: astral-sh/setup-uv@d4b2f3b6ecc6e67c4457f6d3e41ec42d3d0fcb86 # v5
8080

8181
- name: Update packages
8282
run: |
@@ -114,15 +114,15 @@ jobs:
114114
id-token: write # Required for trusted publishing
115115
runs-on: ubuntu-latest
116116
steps:
117-
- uses: actions/checkout@v4
117+
- uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4
118118
with:
119119
ref: ${{ needs.create-metadata.outputs.version }}
120120

121121
- name: Install uv
122-
uses: astral-sh/setup-uv@v5
122+
uses: astral-sh/setup-uv@d4b2f3b6ecc6e67c4457f6d3e41ec42d3d0fcb86 # v5
123123

124124
- name: Set up Python
125-
uses: actions/setup-python@v5
125+
uses: actions/setup-python@a26af69be951a213d495a4c3e4e4022e16d87065 # v5
126126
with:
127127
python-version-file: "src/${{ matrix.package }}/.python-version"
128128

@@ -139,7 +139,7 @@ jobs:
139139
run: uv build
140140

141141
- name: Publish package to PyPI
142-
uses: pypa/gh-action-pypi-publish@release/v1
142+
uses: pypa/gh-action-pypi-publish@ed0c53931b1dc9bd32cbe73a98c7f6766f8a527e # release/v1
143143
with:
144144
packages-dir: src/${{ matrix.package }}/dist
145145

@@ -153,11 +153,11 @@ jobs:
153153
environment: release
154154
runs-on: ubuntu-latest
155155
steps:
156-
- uses: actions/checkout@v4
156+
- uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4
157157
with:
158158
ref: ${{ needs.create-metadata.outputs.version }}
159159

160-
- uses: actions/setup-node@v4
160+
- uses: actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020 # v4
161161
with:
162162
node-version: 22
163163
cache: npm
@@ -196,10 +196,10 @@ jobs:
196196
permissions:
197197
contents: write
198198
steps:
199-
- uses: actions/checkout@v4
199+
- uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4
200200

201201
- name: Download release notes
202-
uses: actions/download-artifact@v4
202+
uses: actions/download-artifact@d3f86a106a0bac45b974a628896c90dbdf5c8093 # v4
203203
with:
204204
name: release-notes
205205

@@ -213,7 +213,7 @@ jobs:
213213
--notes-file RELEASE_NOTES.md
214214
215215
- name: Docker MCP images
216-
uses: peter-evans/repository-dispatch@v3
216+
uses: peter-evans/repository-dispatch@ff45666b9427631e3450c54a1bcbee4d9ff4d7c0 # v3
217217
with:
218218
token: ${{ secrets.DOCKER_TOKEN }}
219219
repository: docker/labs-ai-tools-for-devs

.github/workflows/typescript.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ jobs:
1414
outputs:
1515
packages: ${{ steps.find-packages.outputs.packages }}
1616
steps:
17-
- uses: actions/checkout@v4
17+
- uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4
1818
- name: Find JS packages
1919
id: find-packages
2020
working-directory: src
@@ -30,9 +30,9 @@ jobs:
3030
name: Build ${{ matrix.package }}
3131
runs-on: ubuntu-latest
3232
steps:
33-
- uses: actions/checkout@v4
33+
- uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4
3434

35-
- uses: actions/setup-node@v4
35+
- uses: actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020 # v4
3636
with:
3737
node-version: 22
3838
cache: npm
@@ -61,8 +61,8 @@ jobs:
6161
id-token: write
6262

6363
steps:
64-
- uses: actions/checkout@v4
65-
- uses: actions/setup-node@v4
64+
- uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4
65+
- uses: actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020 # v4
6666
with:
6767
node-version: 22
6868
cache: npm

.github/workflows/version-check.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ jobs:
1313
name: Check GitHub server version consistency
1414
runs-on: ubuntu-latest
1515
steps:
16-
- uses: actions/checkout@v4
16+
- uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4
1717

1818
- name: Check version consistency
1919
run: |

0 commit comments

Comments
 (0)