Skip to content

Commit dac03b2

Browse files
chore(ci): harden the build and release supply chain (#1631)
Co-authored-by: Claude Fable 5 <noreply@anthropic.com>
1 parent 0af1846 commit dac03b2

26 files changed

Lines changed: 473 additions & 763 deletions

.changeset/fair-falcons-attend.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
---
2+
---
3+
4+
No release note: updates CI and build dependencies without changing shipped behavior.

.github/workflows/cd-docs-teardown.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,15 +36,15 @@ jobs:
3636
continue-on-error: true
3737

3838
- name: Update PR comment
39-
uses: marocchino/sticky-pull-request-comment@773744901bac0e8cbb5a0dc842800d45e9b2b405 # v2.9.4
39+
uses: marocchino/sticky-pull-request-comment@5770ad5eb8f42dd2c4f34da00c94c5381e49af88 # v3.0.5
4040
with:
4141
header: docs-preview
4242
message: |
4343
## 📚 Documentation Preview
4444
4545
~~Preview has been removed~~ (PR closed)
4646
- name: Update Storybook PR comment
47-
uses: marocchino/sticky-pull-request-comment@773744901bac0e8cbb5a0dc842800d45e9b2b405 # v2.9.4
47+
uses: marocchino/sticky-pull-request-comment@5770ad5eb8f42dd2c4f34da00c94c5381e49af88 # v3.0.5
4848
with:
4949
header: storybook-preview
5050
message: |

.github/workflows/cd-docs.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@ jobs:
105105
env:
106106
SURGE_TOKEN: ${{ secrets.SURGE_TOKEN }}
107107
run: ./node_modules/.bin/surge ./docs-build "$PREVIEW_URL" --token "$SURGE_TOKEN"
108-
- uses: marocchino/sticky-pull-request-comment@773744901bac0e8cbb5a0dc842800d45e9b2b405 # v2.9.4
108+
- uses: marocchino/sticky-pull-request-comment@5770ad5eb8f42dd2c4f34da00c94c5381e49af88 # v3.0.5
109109
with:
110110
header: docs-preview
111111
message: |
@@ -149,8 +149,8 @@ jobs:
149149
with:
150150
name: docs-build-production
151151
path: docs-build
152-
- uses: actions/upload-pages-artifact@56afc609e74202658d3ffba0e8f6dda462b719fa # v3
152+
- uses: actions/upload-pages-artifact@fc324d3547104276b827a68afc52ff2a11cc49c9 # v5.0.0
153153
with:
154154
path: docs-build
155155
- id: deployment
156-
uses: actions/deploy-pages@d6db90164ac5ed86f2b6aed7e0febac5b3c0c03e # v4
156+
uses: actions/deploy-pages@cd2ce8fcbc39b97be8ca5fce6e763baed58fa128 # v5.0.0

.github/workflows/ci-security-scan.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,14 +42,14 @@ jobs:
4242
- name: Upload Trivy results
4343
if: always()
4444
continue-on-error: true
45-
uses: github/codeql-action/upload-sarif@89a39a4e59826350b863aa6b6252a07ad50cf83e # v4.32.4
45+
uses: github/codeql-action/upload-sarif@cdf488f595d80d6e07e03d4674febd5ab45fa938 # v4.37.9
4646
with:
4747
sarif_file: "trivy-results.sarif"
4848

4949
- name: Secret detection
5050
id: secrets
5151
continue-on-error: true
52-
uses: trufflesecurity/trufflehog@7c0734f987ad0bb30ee8da210773b800ee2016d3 # v3.93.4
52+
uses: trufflesecurity/trufflehog@20652fbbdefffcdaa493a5bf57ab2ac6b1db715b # v3.97.1
5353
with:
5454
path: ./
5555
base: ${{ github.event_name == 'pull_request' && github.base_ref || '' }}

.github/workflows/ci-tests.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -198,7 +198,7 @@ jobs:
198198
if: >-
199199
success() &&
200200
(github.event_name != 'pull_request' || github.event.pull_request.head.repo.full_name == github.repository)
201-
uses: chromaui/action@1cfa065cbdab28f6ca3afaeb3d761383076a35aa # v11
201+
uses: chromaui/action@4cc98810d00b34b8f9e89d454d64a8ac3d088340 # v18.7.1
202202
with:
203203
projectToken: ${{ secrets.CHROMATIC_PROJECT_TOKEN }}
204204
workingDir: webapp
@@ -224,7 +224,7 @@ jobs:
224224
run: ./node_modules/.bin/surge ./webapp/storybook-static "$PREVIEW_URL" --token "$SURGE_TOKEN"
225225
- name: Add Storybook preview to the pull request
226226
if: steps.storybook_preview.outcome == 'success'
227-
uses: marocchino/sticky-pull-request-comment@773744901bac0e8cbb5a0dc842800d45e9b2b405 # v2.9.4
227+
uses: marocchino/sticky-pull-request-comment@5770ad5eb8f42dd2c4f34da00c94c5381e49af88 # v3.0.5
228228
with:
229229
header: storybook-preview
230230
message: |

.github/workflows/cicd.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -330,7 +330,7 @@ jobs:
330330
if: always()
331331
steps:
332332
- name: Generate workflow timeline
333-
uses: Kesin11/actions-timeline@7c7e0821d38f27460f4a71ef874a1c8cf23602e4 # v2
333+
uses: Kesin11/actions-timeline@57fc93f20c6da7fbc14063c6d24a2a5627c799ad # v3.2.0
334334
with:
335335
show-waiting-runner: true
336336

.github/workflows/cleanup-preview.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ jobs:
7777
# Always overwrites the sticky comment, closed pull requests included: a torn-down preview
7878
# must never leave a live-looking link behind.
7979
if: always() && steps.tombstone.outcome == 'success'
80-
uses: marocchino/sticky-pull-request-comment@773744901bac0e8cbb5a0dc842800d45e9b2b405 # v2.9.4
80+
uses: marocchino/sticky-pull-request-comment@5770ad5eb8f42dd2c4f34da00c94c5381e49af88 # v3.0.5
8181
with:
8282
header: app-preview
8383
number: ${{ github.event.pull_request.number }}

.github/workflows/deploy-preview.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ jobs:
6262
6363
- name: Explain why the preview did not deploy
6464
if: steps.context.outputs.announce == 'true'
65-
uses: marocchino/sticky-pull-request-comment@773744901bac0e8cbb5a0dc842800d45e9b2b405 # v2.9.4
65+
uses: marocchino/sticky-pull-request-comment@5770ad5eb8f42dd2c4f34da00c94c5381e49af88 # v3.0.5
6666
with:
6767
header: app-preview
6868
number: ${{ steps.context.outputs.pr_number }}
@@ -110,7 +110,7 @@ jobs:
110110
111111
- name: Announce the deployment
112112
if: steps.github_deployment.outputs.deployment_id != ''
113-
uses: marocchino/sticky-pull-request-comment@773744901bac0e8cbb5a0dc842800d45e9b2b405 # v2.9.4
113+
uses: marocchino/sticky-pull-request-comment@5770ad5eb8f42dd2c4f34da00c94c5381e49af88 # v3.0.5
114114
with:
115115
header: app-preview
116116
number: ${{ steps.context.outputs.pr_number }}
@@ -167,7 +167,7 @@ jobs:
167167
168168
- name: Publish the preview link
169169
if: steps.finalize.outputs.final_state == 'success'
170-
uses: marocchino/sticky-pull-request-comment@773744901bac0e8cbb5a0dc842800d45e9b2b405 # v2.9.4
170+
uses: marocchino/sticky-pull-request-comment@5770ad5eb8f42dd2c4f34da00c94c5381e49af88 # v3.0.5
171171
with:
172172
header: app-preview
173173
number: ${{ steps.context.outputs.pr_number }}
@@ -185,7 +185,7 @@ jobs:
185185
steps.context.outputs.eligible == 'true' &&
186186
steps.recheck.outputs.opted_out != 'true' &&
187187
steps.wait.outputs.state != 'success'
188-
uses: marocchino/sticky-pull-request-comment@773744901bac0e8cbb5a0dc842800d45e9b2b405 # v2.9.4
188+
uses: marocchino/sticky-pull-request-comment@5770ad5eb8f42dd2c4f34da00c94c5381e49af88 # v3.0.5
189189
with:
190190
header: app-preview
191191
number: ${{ steps.context.outputs.pr_number }}

.github/workflows/pull-request.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -49,14 +49,14 @@ jobs:
4949
continue-on-error: true
5050

5151
- name: "Comment on PR with validation error"
52-
uses: marocchino/sticky-pull-request-comment@773744901bac0e8cbb5a0dc842800d45e9b2b405 # v2.9.4
52+
uses: marocchino/sticky-pull-request-comment@5770ad5eb8f42dd2c4f34da00c94c5381e49af88 # v3.0.5
5353
if: steps.commitlint.outcome == 'failure'
5454
with:
5555
header: pr-title-lint-error
5656
path: ${{ runner.temp }}/commitlint-comment.md
5757

5858
- name: "Remove error comment on success"
59-
uses: marocchino/sticky-pull-request-comment@773744901bac0e8cbb5a0dc842800d45e9b2b405 # v2.9.4
59+
uses: marocchino/sticky-pull-request-comment@5770ad5eb8f42dd2c4f34da00c94c5381e49af88 # v3.0.5
6060
if: steps.commitlint.outcome == 'success'
6161
with:
6262
header: pr-title-lint-error
@@ -74,7 +74,7 @@ jobs:
7474
pull-requests: write
7575
if: github.event.action == 'opened'
7676
steps:
77-
- uses: technote-space/assign-author@9558557c5c4816f38bd06176fbc324ba14bb3160 # v1
77+
- uses: technote-space/assign-author@9558557c5c4816f38bd06176fbc324ba14bb3160 # v1.6.2
7878

7979
labeler:
8080
name: "Apply labels"
@@ -87,12 +87,12 @@ jobs:
8787
- name: "Checkout repository"
8888
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
8989

90-
- uses: actions/labeler@8558fd74291d67161a8a78ce36a881fa63b766a9 # v5
90+
- uses: actions/labeler@bf12e9b00b37c5c0ca2b87b79b2daf7891dbda13 # v7.0.0
9191
with:
9292
configuration-path: .github/labeler.yml
9393

9494
- name: "Apply size and semantic labels"
95-
uses: actions/github-script@ed597411d8f924073f98dfc5c65a23a2325f34cd # v8
95+
uses: actions/github-script@3a2844b7e9c422d3c10d287c895573f7108da1b3 # v9.0.0
9696
with:
9797
script: |
9898
const { default: labelPullRequest } = await import(

.github/workflows/release.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -347,7 +347,7 @@ jobs:
347347
cat subjects.sha256
348348
349349
- name: Attest release image lock
350-
uses: actions/attest@59d89421af93a897026c735860bf21b6eb4f7b26 # v4.1.0
350+
uses: actions/attest@1e69f48acb82d1966a394da916b4c1698aa569d6 # v4.2.2
351351
with:
352352
subject-checksums: subjects.sha256
353353
predicate-type: https://in-toto.io/attestation/release/v0.1

0 commit comments

Comments
 (0)