Skip to content

Commit 39a350b

Browse files
Merge pull request anthropics#601 from anthropics/devsec/pin-actions
Pin GitHub Actions to commit SHAs
2 parents d4a1fb5 + 706a0b5 commit 39a350b

5 files changed

Lines changed: 7 additions & 7 deletions

File tree

.github/workflows/links.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,7 @@ jobs:
113113
- name: Check Links with Lychee (PR - changed files only)
114114
if: github.event_name == 'pull_request' && steps.changed-files.outputs.has_changes == 'true' && steps.file-list.outputs.has_files == 'true'
115115
id: lychee
116-
uses: lycheeverse/lychee-action@v2
116+
uses: lycheeverse/lychee-action@8646ba30535128ac92d33dfc9133794bfdd9b411 # v2.8.0 (sha-pinned)
117117
with:
118118
args: |
119119
--config lychee.toml
@@ -127,7 +127,7 @@ jobs:
127127
- name: Check Links with Lychee (scheduled/manual - all files)
128128
if: github.event_name == 'schedule' || github.event_name == 'workflow_dispatch'
129129
id: lychee-full
130-
uses: lycheeverse/lychee-action@v2
130+
uses: lycheeverse/lychee-action@8646ba30535128ac92d33dfc9133794bfdd9b411 # v2.8.0 (sha-pinned)
131131
with:
132132
args: |
133133
--config lychee.toml
@@ -142,7 +142,7 @@ jobs:
142142

143143
- name: Comment PR with results
144144
if: github.event_name == 'pull_request' && steps.lychee.outputs.exit_code != 0
145-
uses: marocchino/sticky-pull-request-comment@v2
145+
uses: marocchino/sticky-pull-request-comment@773744901bac0e8cbb5a0dc842800d45e9b2b405 # v2.9.4 (sha-pinned)
146146
with:
147147
header: link-check
148148
path: lychee-report.md

.github/workflows/lint-format.yml

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

2828
- name: Install uv
29-
uses: astral-sh/setup-uv@v4
29+
uses: astral-sh/setup-uv@38f3f104447c67c051c4a08e39b64a148898af3a # v4.2.0 (sha-pinned)
3030
with:
3131
enable-cache: true
3232
cache-dependency-glob: "uv.lock"

.github/workflows/notebook-diff-comment.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ jobs:
1919
fetch-depth: 0 # Need full history to diff against base
2020

2121
- name: Install uv
22-
uses: astral-sh/setup-uv@v4
22+
uses: astral-sh/setup-uv@38f3f104447c67c051c4a08e39b64a148898af3a # v4.2.0 (sha-pinned)
2323
with:
2424
enable-cache: true
2525

.github/workflows/notebook-quality.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ jobs:
2323
- uses: actions/checkout@v6
2424

2525
- name: Install uv
26-
uses: astral-sh/setup-uv@v4
26+
uses: astral-sh/setup-uv@38f3f104447c67c051c4a08e39b64a148898af3a # v4.2.0 (sha-pinned)
2727
with:
2828
enable-cache: true
2929
cache-dependency-glob: "uv.lock"

.github/workflows/notebook-tests.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ jobs:
2727
fetch-depth: 0 # Need full history for diff
2828

2929
- name: Install uv
30-
uses: astral-sh/setup-uv@v4
30+
uses: astral-sh/setup-uv@38f3f104447c67c051c4a08e39b64a148898af3a # v4.2.0 (sha-pinned)
3131
with:
3232
enable-cache: true
3333
cache-dependency-glob: "uv.lock"

0 commit comments

Comments
 (0)