Skip to content

Commit 6cfec5a

Browse files
committed
ci: pin actions to commit SHAs and restrict default permissions
Address Greptile review findings: - Pin checkout, setup-uv, and download-artifact to commit SHAs matching the pattern from #517 - Add top-level permissions: {} to restrict default token scope
1 parent bb5172e commit 6cfec5a

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

.github/workflows/publish-devnotes.yml

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,8 @@ on:
77
- "docs/devnotes/**"
88
workflow_dispatch:
99

10+
permissions: {}
11+
1012
jobs:
1113
build-notebooks:
1214
uses: ./.github/workflows/build-notebooks.yml
@@ -21,17 +23,17 @@ jobs:
2123
contents: write
2224
steps:
2325
- name: Checkout repository
24-
uses: actions/checkout@v6
26+
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6
2527
- name: Install uv
26-
uses: astral-sh/setup-uv@v7
28+
uses: astral-sh/setup-uv@37802adc94f370d6bfd71619e3f0bf239e1f3b78 # v7
2729
with:
2830
version: "0.9.5"
2931
- name: Set up Python
3032
run: uv python install 3.11
3133
- name: Install dependencies for docs
3234
run: uv sync --all-packages --group docs
3335
- name: Download notebooks
34-
uses: actions/download-artifact@v7
36+
uses: actions/download-artifact@37930b1c2abaa49bbe596cd826c3c89aef350131 # v7
3537
with:
3638
name: notebooks
3739
path: docs/notebooks

0 commit comments

Comments
 (0)