Skip to content

Commit 7b2584a

Browse files
flyersworderclaude
andcommitted
ci: pin GitHub Actions by SHA and add Dependabot for actions
Pin actions by commit SHA to prevent tag-hijacking attacks (per PyPI litellm/telnyx incident report). Add Dependabot github-actions ecosystem to keep SHAs updated automatically. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
1 parent 0462c14 commit 7b2584a

2 files changed

Lines changed: 13 additions & 5 deletions

File tree

.github/dependabot.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,13 @@
11
version: 2
22
updates:
3+
- package-ecosystem: "github-actions"
4+
directory: "/"
5+
schedule:
6+
interval: "weekly"
7+
day: "monday"
8+
labels:
9+
- "dependencies"
10+
311
- package-ecosystem: "pip"
412
directory: "/"
513
schedule:

.github/workflows/ci-and-publish.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,8 @@ jobs:
1717
test:
1818
runs-on: ubuntu-latest
1919
steps:
20-
- uses: actions/checkout@v6
21-
- uses: astral-sh/setup-uv@v8.0.0
20+
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6
21+
- uses: astral-sh/setup-uv@cec208311dfd045dd5311c1add060b2062131d57 # v8.0.0
2222
with:
2323
enable-cache: true
2424
cache-dependency-glob: "pyproject.toml"
@@ -33,10 +33,10 @@ jobs:
3333
permissions:
3434
id-token: write
3535
steps:
36-
- uses: actions/checkout@v6
37-
- uses: astral-sh/setup-uv@v8.0.0
36+
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6
37+
- uses: astral-sh/setup-uv@cec208311dfd045dd5311c1add060b2062131d57 # v8.0.0
3838
with:
3939
enable-cache: true
4040
- run: uv python install 3.12
4141
- run: uv build --no-sources
42-
- uses: pypa/gh-action-pypi-publish@v1.14.0
42+
- uses: pypa/gh-action-pypi-publish@6733eb7d741f0b11ec6a39b58540dab7590f9b7d # v1.14.0

0 commit comments

Comments
 (0)