Skip to content

Commit a0a1c17

Browse files
committed
Fix security alerts: pin actions and OpenCode CLI by hash, bump Pillow to 13
1 parent 856d2a2 commit a0a1c17

9 files changed

Lines changed: 269 additions & 259 deletions

File tree

‎.github/dependabot.yml‎

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,3 +32,9 @@ updates:
3232
groups:
3333
codegen-minor-patch:
3434
update-types: [minor, patch]
35+
- package-ecosystem: npm
36+
directory: /.github/live
37+
schedule:
38+
interval: daily
39+
commit-message:
40+
prefix: "ci"

‎.github/live/package-lock.json‎

Lines changed: 202 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

‎.github/live/package.json‎

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
{
2+
"private": true,
3+
"description": "OpenCode CLI used by the live CI job; package-lock.json pins it by integrity hash.",
4+
"dependencies": {
5+
"@opencode/cli": "2.1.2"
6+
}
7+
}

‎.github/workflows/ci.yml‎

Lines changed: 16 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,8 @@ jobs:
1717
name: Lint, types, generated code
1818
runs-on: ubuntu-latest
1919
steps:
20-
- uses: actions/checkout@v5
21-
- uses: astral-sh/setup-uv@v6
20+
- uses: actions/checkout@fbc6f3992d24b796d5a048ff273f7fcc4a7b6c09 # v5.1.0
21+
- uses: astral-sh/setup-uv@d0cc045d04ccac9d8b7881df0226f9e82c39688e # v6.8.0
2222
with:
2323
enable-cache: true
2424
- run: uv sync --locked
@@ -43,8 +43,8 @@ jobs:
4343
- os: windows-latest
4444
python: "3.13"
4545
steps:
46-
- uses: actions/checkout@v5
47-
- uses: astral-sh/setup-uv@v6
46+
- uses: actions/checkout@fbc6f3992d24b796d5a048ff273f7fcc4a7b6c09 # v5.1.0
47+
- uses: astral-sh/setup-uv@d0cc045d04ccac9d8b7881df0226f9e82c39688e # v6.8.0
4848
with:
4949
enable-cache: true
5050
python-version: ${{ matrix.python }}
@@ -55,8 +55,8 @@ jobs:
5555
name: Test with lowest supported dependencies
5656
runs-on: ubuntu-latest
5757
steps:
58-
- uses: actions/checkout@v5
59-
- uses: astral-sh/setup-uv@v6
58+
- uses: actions/checkout@fbc6f3992d24b796d5a048ff273f7fcc4a7b6c09 # v5.1.0
59+
- uses: astral-sh/setup-uv@d0cc045d04ccac9d8b7881df0226f9e82c39688e # v6.8.0
6060
with:
6161
python-version: "3.10"
6262
- run: >-
@@ -65,20 +65,19 @@ jobs:
6565
pytest -m "not live" -p no:cacheprovider
6666
6767
live:
68-
name: Live server (OpenCode ${{ matrix.opencode }})
68+
name: Live server
6969
runs-on: ubuntu-latest
70-
strategy:
71-
matrix:
72-
opencode: ["2.1.2"]
7370
steps:
74-
- uses: actions/checkout@v5
75-
- uses: astral-sh/setup-uv@v6
71+
- uses: actions/checkout@fbc6f3992d24b796d5a048ff273f7fcc4a7b6c09 # v5.1.0
72+
- uses: astral-sh/setup-uv@d0cc045d04ccac9d8b7881df0226f9e82c39688e # v6.8.0
7673
with:
7774
enable-cache: true
78-
- uses: actions/setup-node@v5
75+
- uses: actions/setup-node@a0853c24544627f65ddf259abe73b1d18a591444 # v5.0.0
7976
with:
8077
node-version: 22
81-
- run: npm install -g @opencode/cli@${{ matrix.opencode }}
78+
# The OpenCode version is pinned by hash in .github/live/package-lock.json.
79+
- run: npm ci --prefix .github/live
80+
- run: echo "$GITHUB_WORKSPACE/.github/live/node_modules/.bin" >> "$GITHUB_PATH"
8281
- run: opencode --version
8382
- run: uv sync --locked
8483
- run: uv run pytest -m live -v
@@ -87,11 +86,11 @@ jobs:
8786
name: Build distributions
8887
runs-on: ubuntu-latest
8988
steps:
90-
- uses: actions/checkout@v5
91-
- uses: astral-sh/setup-uv@v6
89+
- uses: actions/checkout@fbc6f3992d24b796d5a048ff273f7fcc4a7b6c09 # v5.1.0
90+
- uses: astral-sh/setup-uv@d0cc045d04ccac9d8b7881df0226f9e82c39688e # v6.8.0
9291
- run: uv build
9392
- run: uvx twine check --strict dist/*
94-
- uses: actions/upload-artifact@v4
93+
- uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4.6.2
9594
with:
9695
name: dist
9796
path: dist/

‎.github/workflows/docs.yml‎

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,8 @@ jobs:
1818
name: Build docs
1919
runs-on: ubuntu-latest
2020
steps:
21-
- uses: actions/checkout@v5
22-
- uses: astral-sh/setup-uv@v6
21+
- uses: actions/checkout@fbc6f3992d24b796d5a048ff273f7fcc4a7b6c09 # v5.1.0
22+
- uses: astral-sh/setup-uv@d0cc045d04ccac9d8b7881df0226f9e82c39688e # v6.8.0
2323
with:
2424
enable-cache: true
2525
- name: Install social card dependencies
@@ -29,7 +29,7 @@ jobs:
2929
env:
3030
SOCIAL_CARDS: "true"
3131
- if: github.event_name != 'pull_request'
32-
uses: actions/upload-pages-artifact@v4
32+
uses: actions/upload-pages-artifact@7b1f4a764d45c48632c6b24a0339c27f5614fb0b # v4.0.0
3333
with:
3434
path: site
3535

@@ -46,4 +46,4 @@ jobs:
4646
url: ${{ steps.deployment.outputs.page_url }}
4747
steps:
4848
- id: deployment
49-
uses: actions/deploy-pages@v4
49+
uses: actions/deploy-pages@d6db90164ac5ed86f2b6aed7e0febac5b3c0c03e # v4.0.5

‎.github/workflows/release.yml‎

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ jobs:
3030
outputs:
3131
version: ${{ steps.next.outputs.version }}
3232
steps:
33-
- uses: actions/checkout@v5
33+
- uses: actions/checkout@fbc6f3992d24b796d5a048ff273f7fcc4a7b6c09 # v5.1.0
3434
with:
3535
fetch-depth: 0
3636
persist-credentials: false
@@ -45,16 +45,16 @@ jobs:
4545
if: needs.version.outputs.version != ''
4646
runs-on: ubuntu-latest
4747
steps:
48-
- uses: actions/checkout@v5
48+
- uses: actions/checkout@fbc6f3992d24b796d5a048ff273f7fcc4a7b6c09 # v5.1.0
4949
with:
5050
persist-credentials: false
51-
- uses: astral-sh/setup-uv@v6
51+
- uses: astral-sh/setup-uv@d0cc045d04ccac9d8b7881df0226f9e82c39688e # v6.8.0
5252
- name: Build
5353
env:
5454
SETUPTOOLS_SCM_PRETEND_VERSION: ${{ needs.version.outputs.version }}
5555
run: uv build
5656
- run: uvx twine check --strict dist/*
57-
- uses: actions/upload-artifact@v4
57+
- uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4.6.2
5858
with:
5959
name: dist
6060
path: dist/
@@ -69,11 +69,11 @@ jobs:
6969
id-token: write # trusted publishing, no stored token
7070
attestations: write
7171
steps:
72-
- uses: actions/download-artifact@v4
72+
- uses: actions/download-artifact@d3f86a106a0bac45b974a628896c90dbdf5c8093 # v4.3.0
7373
with:
7474
name: dist
7575
path: dist/
76-
- uses: pypa/gh-action-pypi-publish@release/v1
76+
- uses: pypa/gh-action-pypi-publish@7245906fb61fa33a13554f9d5fb856fe61758086 # v1.14.3
7777
with:
7878
attestations: true
7979

@@ -83,7 +83,7 @@ jobs:
8383
permissions:
8484
contents: write
8585
steps:
86-
- uses: actions/download-artifact@v4
86+
- uses: actions/download-artifact@d3f86a106a0bac45b974a628896c90dbdf5c8093 # v4.3.0
8787
with:
8888
name: dist
8989
path: dist/

0 commit comments

Comments
 (0)