Skip to content

Commit 14af56b

Browse files
ci: pin third-party actions to commit SHAs
Replaces version tags (e.g. astral-sh/setup-uv@v6, slackapi/slack-github-action@v2.1.0) with full commit SHAs across every workflow. Mitigates supply-chain risk from mutable tags.
1 parent 35f693c commit 14af56b

11 files changed

Lines changed: 20 additions & 20 deletions

.github/workflows/build-uv-cache.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ jobs:
2626
uses: actions/checkout@v4
2727

2828
- name: Install uv
29-
uses: astral-sh/setup-uv@v6
29+
uses: astral-sh/setup-uv@d0cc045d04ccac9d8b7881df0226f9e82c39688e # v6
3030
with:
3131
version: "0.11.3"
3232
python-version: ${{ matrix.python-version }}

.github/workflows/generate-tool-specs.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -22,10 +22,10 @@ jobs:
2222
steps:
2323
- name: Generate GitHub App token
2424
id: app-token
25-
uses: tibdex/github-app-token@v2
25+
uses: actions/create-github-app-token@bcd2ba49218906704ab6c1aa796996da409d3eb1 # v3.2.0
2626
with:
27-
app_id: ${{ secrets.CREWAI_TOOL_SPECS_APP_ID }}
28-
private_key: ${{ secrets.CREWAI_TOOL_SPECS_PRIVATE_KEY }}
27+
app-id: ${{ secrets.CREWAI_TOOL_SPECS_APP_ID }}
28+
private-key: ${{ secrets.CREWAI_TOOL_SPECS_PRIVATE_KEY }}
2929

3030
- name: Checkout code
3131
uses: actions/checkout@v4
@@ -34,7 +34,7 @@ jobs:
3434
token: ${{ steps.app-token.outputs.token }}
3535

3636
- name: Install uv
37-
uses: astral-sh/setup-uv@v6
37+
uses: astral-sh/setup-uv@d0cc045d04ccac9d8b7881df0226f9e82c39688e # v6
3838
with:
3939
version: "0.11.3"
4040
python-version: "3.12"

.github/workflows/linter.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ jobs:
1313
code: ${{ steps.filter.outputs.code }}
1414
steps:
1515
- uses: actions/checkout@v4
16-
- uses: dorny/paths-filter@v3
16+
- uses: dorny/paths-filter@d1c1ffe0248fe513906c8e24db8ea791d46f8590 # v3
1717
id: filter
1818
with:
1919
filters: |
@@ -41,7 +41,7 @@ jobs:
4141
uv-main-py3.11-
4242
4343
- name: Install uv
44-
uses: astral-sh/setup-uv@v6
44+
uses: astral-sh/setup-uv@d0cc045d04ccac9d8b7881df0226f9e82c39688e # v6
4545
with:
4646
version: "0.11.3"
4747
python-version: "3.11"

.github/workflows/nightly.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ jobs:
4444
- uses: actions/checkout@v4
4545

4646
- name: Install uv
47-
uses: astral-sh/setup-uv@v6
47+
uses: astral-sh/setup-uv@d0cc045d04ccac9d8b7881df0226f9e82c39688e # v6
4848
with:
4949
version: "0.11.3"
5050
python-version: "3.12"
@@ -103,7 +103,7 @@ jobs:
103103
contents: read
104104
steps:
105105
- name: Install uv
106-
uses: astral-sh/setup-uv@v6
106+
uses: astral-sh/setup-uv@d0cc045d04ccac9d8b7881df0226f9e82c39688e # v6
107107
with:
108108
version: "0.11.3"
109109
python-version: "3.12"

.github/workflows/pr-size.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ jobs:
1010
permissions:
1111
pull-requests: write
1212
steps:
13-
- uses: codelytv/pr-size-labeler@v1
13+
- uses: codelytv/pr-size-labeler@095a41fca88b8764fd9e008ad269bcdb82bb38b9 # v1
1414
with:
1515
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
1616
xs_label: "size/XS"

.github/workflows/pr-title.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ jobs:
1212
pr-title:
1313
runs-on: ubuntu-latest
1414
steps:
15-
- uses: amannn/action-semantic-pull-request@v5
15+
- uses: amannn/action-semantic-pull-request@e32d7e603df1aa1ba07e981f2a23455dee596825 # v5
1616
continue-on-error: true
1717
env:
1818
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

.github/workflows/publish.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ jobs:
3434
python-version: "3.12"
3535

3636
- name: Install uv
37-
uses: astral-sh/setup-uv@v4
37+
uses: astral-sh/setup-uv@38f3f104447c67c051c4a08e39b64a148898af3a # v4
3838

3939
- name: Build packages
4040
run: |
@@ -63,7 +63,7 @@ jobs:
6363
ref: ${{ inputs.release_tag || github.ref }}
6464

6565
- name: Install uv
66-
uses: astral-sh/setup-uv@v6
66+
uses: astral-sh/setup-uv@d0cc045d04ccac9d8b7881df0226f9e82c39688e # v6
6767
with:
6868
version: "0.11.3"
6969
python-version: "3.12"
@@ -159,7 +159,7 @@ jobs:
159159
160160
- name: Notify Slack
161161
if: success()
162-
uses: slackapi/slack-github-action@v2.1.0
162+
uses: slackapi/slack-github-action@b0fa283ad8fea605de13dc3f449259339835fc52 # v2.1.0
163163
with:
164164
webhook: ${{ secrets.SLACK_WEBHOOK_URL }}
165165
webhook-type: incoming-webhook

.github/workflows/tests.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ jobs:
1313
code: ${{ steps.filter.outputs.code }}
1414
steps:
1515
- uses: actions/checkout@v4
16-
- uses: dorny/paths-filter@v3
16+
- uses: dorny/paths-filter@d1c1ffe0248fe513906c8e24db8ea791d46f8590 # v3
1717
id: filter
1818
with:
1919
filters: |
@@ -51,7 +51,7 @@ jobs:
5151
uv-main-py${{ matrix.python-version }}-
5252
5353
- name: Install uv
54-
uses: astral-sh/setup-uv@v6
54+
uses: astral-sh/setup-uv@d0cc045d04ccac9d8b7881df0226f9e82c39688e # v6
5555
with:
5656
version: "0.11.3"
5757
python-version: ${{ matrix.python-version }}

.github/workflows/type-checker.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ jobs:
1313
code: ${{ steps.filter.outputs.code }}
1414
steps:
1515
- uses: actions/checkout@v4
16-
- uses: dorny/paths-filter@v3
16+
- uses: dorny/paths-filter@d1c1ffe0248fe513906c8e24db8ea791d46f8590 # v3
1717
id: filter
1818
with:
1919
filters: |
@@ -48,7 +48,7 @@ jobs:
4848
uv-main-py${{ matrix.python-version }}-
4949
5050
- name: Install uv
51-
uses: astral-sh/setup-uv@v6
51+
uses: astral-sh/setup-uv@d0cc045d04ccac9d8b7881df0226f9e82c39688e # v6
5252
with:
5353
version: "0.11.3"
5454
python-version: ${{ matrix.python-version }}

.github/workflows/update-test-durations.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ jobs:
3838
uv-main-py${{ matrix.python-version }}-
3939
4040
- name: Install uv
41-
uses: astral-sh/setup-uv@v6
41+
uses: astral-sh/setup-uv@d0cc045d04ccac9d8b7881df0226f9e82c39688e # v6
4242
with:
4343
version: "0.11.3"
4444
python-version: ${{ matrix.python-version }}

0 commit comments

Comments
 (0)