Skip to content

Commit 0ddf3bc

Browse files
authored
ci: pin and bump GH actions (#1596)
1 parent 7edd17e commit 0ddf3bc

File tree

7 files changed

+27
-29
lines changed

7 files changed

+27
-29
lines changed

.github/workflows/ci.yml

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -18,9 +18,9 @@ jobs:
1818
linting:
1919
runs-on: ubuntu-latest
2020
steps:
21-
- uses: actions/checkout@v3
21+
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6
2222
- name: Install uv and set Python version
23-
uses: astral-sh/setup-uv@v7
23+
uses: astral-sh/setup-uv@cec208311dfd045dd5311c1add060b2062131d57 # v8
2424
with:
2525
version: "0.11.2"
2626
python-version: "3.13"
@@ -33,14 +33,14 @@ jobs:
3333
type-checking:
3434
runs-on: ubuntu-latest
3535
steps:
36-
- uses: actions/checkout@v3
36+
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6
3737
- name: Install uv and set Python version
38-
uses: astral-sh/setup-uv@v7
38+
uses: astral-sh/setup-uv@cec208311dfd045dd5311c1add060b2062131d57 # v8
3939
with:
4040
version: "0.11.2"
4141
python-version: "3.13"
4242
enable-cache: true
43-
- uses: actions/cache@v3
43+
- uses: actions/cache@668228422ae6a00e4ad889ee87cd7109ec5666a7 # v5
4444
name: Cache mypy cache
4545
with:
4646
path: ./.mypy_cache
@@ -75,8 +75,8 @@ jobs:
7575

7676
name: Test on Python version ${{ matrix.python-version }}
7777
steps:
78-
- uses: actions/checkout@v3
79-
- uses: pnpm/action-setup@v3
78+
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6
79+
- uses: pnpm/action-setup@fc06bc1257f339d1d5d8b3a19a8cae5388b55320 # v5
8080
with:
8181
version: 10.33.0
8282

@@ -85,12 +85,12 @@ jobs:
8585
git clone https://github.com/langfuse/langfuse.git ./langfuse-server && echo $(cd ./langfuse-server && git rev-parse HEAD)
8686
8787
- name: Setup node (for langfuse server)
88-
uses: actions/setup-node@v3
88+
uses: actions/setup-node@3235b876344d2a9aa001b8d1453c930bba69e610 # v3
8989
with:
9090
node-version: 24
9191

9292
- name: Cache langfuse server dependencies
93-
uses: actions/cache@v3
93+
uses: actions/cache@668228422ae6a00e4ad889ee87cd7109ec5666a7 # v5
9494
with:
9595
path: ./langfuse-server/node_modules
9696
key: |
@@ -155,7 +155,7 @@ jobs:
155155
echo "Langfuse server is up and running!"
156156
157157
- name: Install uv and set Python version
158-
uses: astral-sh/setup-uv@v7
158+
uses: astral-sh/setup-uv@cec208311dfd045dd5311c1add060b2062131d57 # v8
159159
with:
160160
version: "0.11.2"
161161
python-version: ${{ matrix.python-version }}

.github/workflows/claude-review-maintainer-prs.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ jobs:
1616
steps:
1717
- name: Check author permission and existing review request
1818
id: check
19-
uses: actions/github-script@v7
19+
uses: actions/github-script@f28e40c7f34bde8b3046d885e986cb6290c5673b # v7
2020
with:
2121
script: |
2222
const owner = context.repo.owner;
@@ -57,7 +57,7 @@ jobs:
5757
5858
- name: Add Claude review comment
5959
if: steps.check.outputs.should_comment == 'true'
60-
uses: actions/github-script@v7
60+
uses: actions/github-script@f28e40c7f34bde8b3046d885e986cb6290c5673b # v7
6161
with:
6262
script: |
6363
await github.rest.issues.createComment({

.github/workflows/codeql.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -55,11 +55,11 @@ jobs:
5555
# your codebase is analyzed, see https://docs.github.com/en/code-security/code-scanning/creating-an-advanced-setup-for-code-scanning/codeql-code-scanning-for-compiled-languages
5656
steps:
5757
- name: Checkout repository
58-
uses: actions/checkout@v4
58+
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6
5959

6060
# Initializes the CodeQL tools for scanning.
6161
- name: Initialize CodeQL
62-
uses: github/codeql-action/init@v3
62+
uses: github/codeql-action/init@5c8a8a642e79153f5d047b10ec1cba1d1cc65699 # v3
6363
with:
6464
languages: ${{ matrix.language }}
6565
build-mode: ${{ matrix.build-mode }}
@@ -87,6 +87,6 @@ jobs:
8787
exit 1
8888
8989
- name: Perform CodeQL Analysis
90-
uses: github/codeql-action/analyze@v3
90+
uses: github/codeql-action/analyze@5c8a8a642e79153f5d047b10ec1cba1d1cc65699 # v3
9191
with:
9292
category: "/language:${{matrix.language}}"

.github/workflows/dependabot-merge.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ jobs:
1515
steps:
1616
- name: Dependabot metadata
1717
id: metadata
18-
uses: dependabot/fetch-metadata@v1
18+
uses: dependabot/fetch-metadata@ffa630c65fa7e0ecfa0625b5ceda64399aea1b36 # v3
1919
with:
2020
github-token: "${{ secrets.GITHUB_TOKEN }}"
2121
- name: Enable auto-merge for Dependabot PRs

.github/workflows/dependabot-rebase-stale.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ jobs:
1111
runs-on: ubuntu-latest
1212
steps:
1313
- name: "Rebase open Dependabot PR"
14-
uses: orange-buffalo/dependabot-auto-rebase@v1
14+
uses: orange-buffalo/dependabot-auto-rebase@fa9e05d7a8152381af0a92ffca942a0d46712544 # v1
1515
with:
1616
api-token: ${{ secrets.DEP_REBASE_PAT }}
1717
repository: ${{ github.repository }}

.github/workflows/package-availability-check.yml

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

1616
steps:
1717
- name: Set up Python ${{ matrix.python-version }}
18-
uses: actions/setup-python@v2
18+
uses: actions/setup-python@a309ff8b426b58ec0e2a45f0f869d46889d02405 # v6
1919
with:
2020
python-version: ${{ matrix.python-version }}
2121
- name: Install dependencies using pip

.github/workflows/release.yml

Lines changed: 9 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -62,13 +62,13 @@ jobs:
6262
fi
6363
6464
- name: Checkout repository
65-
uses: actions/checkout@v4
65+
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6
6666
with:
6767
fetch-depth: 0
6868
token: ${{ secrets.GH_ACCESS_TOKEN }}
6969

7070
- name: Install uv and set Python version
71-
uses: astral-sh/setup-uv@v7
71+
uses: astral-sh/setup-uv@cec208311dfd045dd5311c1add060b2062131d57 # v8
7272
with:
7373
version: "0.11.2"
7474
python-version: "3.12"
@@ -285,7 +285,7 @@ jobs:
285285

286286
- name: Create GitHub Release
287287
id: create-release
288-
uses: softprops/action-gh-release@v2
288+
uses: softprops/action-gh-release@153bb8e04406b158c6c84fc1615b65b24149a1fe # v2
289289
with:
290290
tag_name: v${{ steps.new-version.outputs.version }}
291291
name: v${{ steps.new-version.outputs.version }}
@@ -299,8 +299,10 @@ jobs:
299299

300300
- name: Notify Slack on success
301301
if: success()
302-
uses: slackapi/slack-github-action@v1.26.0
302+
uses: slackapi/slack-github-action@af78098f536edbc4de71162a307590698245be95 # v3
303303
with:
304+
webhook: ${{ secrets.SLACK_WEBHOOK_RELEASES }}
305+
webhook-type: incoming-webhook
304306
payload: |
305307
{
306308
"text": "✅ Langfuse Python SDK v${{ steps.new-version.outputs.version }} published to PyPI",
@@ -378,14 +380,13 @@ jobs:
378380
}
379381
]
380382
}
381-
env:
382-
SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_RELEASES }}
383-
SLACK_WEBHOOK_TYPE: INCOMING_WEBHOOK
384383
385384
- name: Notify Slack on failure
386385
if: failure()
387-
uses: slackapi/slack-github-action@v1.26.0
386+
uses: slackapi/slack-github-action@af78098f536edbc4de71162a307590698245be95 # v3
388387
with:
388+
webhook: ${{ secrets.SLACK_WEBHOOK_ENGINEERING }}
389+
webhook-type: incoming-webhook
389390
payload: |
390391
{
391392
"text": "❌ Langfuse Python SDK release workflow failed",
@@ -471,6 +472,3 @@ jobs:
471472
}
472473
]
473474
}
474-
env:
475-
SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_ENGINEERING }}
476-
SLACK_WEBHOOK_TYPE: INCOMING_WEBHOOK

0 commit comments

Comments
 (0)