Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[pull] main from nodejs:main #1532

Merged
merged 90 commits into from
Aug 22, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
90 commits
Select commit Hold shift + click to select a range
964112e
[automated]: crowdin sync - Enables Simplified Chinese (#6843)
nodejs-crowdin Jun 19, 2024
10887a9
fix: do not translate OpenJS trademark (#6847)
bmuenzenmeyer Jun 19, 2024
ba105ca
meta: bump ws from 8.17.0 to 8.17.1 (#6846)
dependabot[bot] Jun 20, 2024
98c06c1
Blog: v20.15.0 release post (#6852)
marco-ippolito Jun 20, 2024
a6cde27
Add commitizen to repo to make it easy to follow conventional-commits…
rikhall1515 Jun 21, 2024
188a42a
Blog: add pre security release announcement (#6863)
RafaelGSS Jun 25, 2024
ce1bfb7
Blog: update banner to mention security release (#6864)
RafaelGSS Jun 26, 2024
0ab2e25
Blog: remove one a vuln from upcoming sec release (#6868)
RafaelGSS Jul 1, 2024
c3d2e44
Use the default Node.js logo (#6867)
bmuenzenmeyer Jul 1, 2024
171d3fd
Blog: change security release date (#6889)
RafaelGSS Jul 2, 2024
c19f996
Blog: v22.4.0 release post (#6888)
targos Jul 2, 2024
3a455b2
Scaffold multi-package workspace. (#6850)
anthonyshew Jul 3, 2024
71b1b82
Blog: update security release date (#6892)
RafaelGSS Jul 4, 2024
4943bab
fix: readme logo (#6856)
AugustinMauroy Jul 4, 2024
e081e57
fix: code coverage comment (#6895)
AugustinMauroy Jul 4, 2024
ae5e1e3
feat(orama): updates Orama and simplifies Orama Cloud sync (#6899)
micheleriva Jul 4, 2024
5e4fde2
chore: manual update of dependencies (#6896)
ovflowd Jul 4, 2024
68e61d7
fix: removed blog post (#6897)
AugustinMauroy Jul 4, 2024
946940e
meta: bump step-security/harden-runner from 2.8.0 to 2.8.1 (#6876)
dependabot[bot] Jul 5, 2024
9ffde9d
chore: remove reference to outdated examples (#6851)
RedYetiDev Jul 6, 2024
2976eca
"Backpressuring in Streams" doc: Update pipeline examples (#6905)
caarmen Jul 7, 2024
0d508d7
meta: bump github/codeql-action from 3.25.7 to 3.25.11 (#6873)
dependabot[bot] Jul 8, 2024
50bb2de
fix: codeowner (#6898)
AugustinMauroy Jul 8, 2024
a624531
meta: bump patrickedqvist/wait-for-vercel-preview from 1.3.1 to 1.3.2…
dependabot[bot] Jul 8, 2024
6c27ffd
meta: bump actions/checkout from 4.1.6 to 4.1.7 (#6870)
dependabot[bot] Jul 8, 2024
71dbd94
meta: bump @testing-library/react from 15.0.7 to 16.0.0 in the testin…
dependabot[bot] Jul 8, 2024
f60086c
added Urdu language config (#6556)
thisalihassan Jul 8, 2024
6e36dd9
Blog: add July Security Release (#6914)
RafaelGSS Jul 8, 2024
84c7291
security: forced security update
ovflowd Jul 8, 2024
205acbb
fix(actions): use correct paths during i18n checks (#6911)
bmuenzenmeyer Jul 8, 2024
0c3643f
chore: remove git hook (force)
ovflowd Jul 8, 2024
fd327e8
fix: correct 'Edit this page' links
isaacs Jul 8, 2024
8ad6351
fix(blog): incorrect link to version (#6915)
RedYetiDev Jul 8, 2024
b7af61f
fix: hotfixed unit test failing from last patch
ovflowd Jul 8, 2024
d6695fe
doc: note JavaScript is not single threaded (#6848)
benjamingr Jul 9, 2024
b793a32
Blog: fix SHASUMS v22 release (#6916)
RafaelGSS Jul 9, 2024
434ebfd
refactor: merge default and pride logos (#6909)
araujogui Jul 11, 2024
644ad55
Fix: Removed misleading information (#6924)
Wellitsabhi Jul 16, 2024
925c6e1
[automated]: crowdin sync - enabled indonesian (#6918)
nodejs-crowdin Jul 16, 2024
b09d9aa
feat(mastodon.tsx): replace old mastodon icon with new icon (#6860)
liberaldev Jul 17, 2024
41655d2
Blog: v22.5.0 release post (#6931)
aduh95 Jul 17, 2024
da87326
chore: Add serbian language config (#6923)
beny996 Jul 18, 2024
86d14ad
fix: attempt to fix ci memory leak (#6933)
ovflowd Jul 18, 2024
f553623
Blog: v22.5.1 release post (#6935)
richardlau Jul 19, 2024
1bbd815
fix: Added translation for snippet in package manager in download (#6…
nilkhankari Jul 20, 2024
c0c39b0
fix: add link to `nodejs.org/download/release` (#6890)
aduh95 Jul 20, 2024
9778b27
Fix layout shift caused by redundant styles (#6865)
monochromer Jul 20, 2024
19d92c4
CI: fix coverage summary path (#6934)
canerakdas Jul 20, 2024
519658a
Update governance.md
ovflowd Jul 21, 2024
4a53573
fix: indonesian broken footnotes
ovflowd Jul 21, 2024
3fe77d5
doc: fix the fnm docs for a functional instruction guide (#6919)
lirantal Jul 21, 2024
b06763c
fix: make the `searchButton` width dynamic to fit the content (#6904)
nazarepiedady Jul 21, 2024
96192d6
Removed broken link (#6938)
Wellitsabhi Jul 22, 2024
22ebf9e
fix: added ellipsis for long content in breadcrumb (#6794)
TenzDelek Jul 22, 2024
00e19c0
fix: LinkedIn Logo (#6932)
Jay-Karia Jul 22, 2024
ab3e12c
chore: expedited hot fix for training link
ovflowd Jul 23, 2024
cc2f5c8
Blog: v20.16.0 release post (#6940)
marco-ippolito Jul 24, 2024
b74fef4
fix(blog): update "Coming soon" links (#6941)
richardlau Jul 24, 2024
d2f278a
fix: open docs links in the same tab closes #6927 (#6936)
wesleytodd Jul 27, 2024
d3964aa
fix: invalid property name "stop-color" (#6947)
NickNaso Jul 27, 2024
9e56d4a
feat: document the `--inspect-wait` flag (#6948)
cola119 Jul 29, 2024
c84b916
fix: Break long words only in blog posts (#6944)
caminad Jul 31, 2024
7dabdc3
Update translation check logic (#6955)
bmuenzenmeyer Jul 31, 2024
0c28078
meta: bump actions/upload-artifact from 4.3.3 to 4.3.4 (#6959)
dependabot[bot] Aug 2, 2024
5afb318
meta: bump actions/dependency-review-action from 4.3.2 to 4.3.4 (#6960)
dependabot[bot] Aug 2, 2024
587c0b7
meta: bump actions/setup-node from 4.0.2 to 4.0.3 (#6958)
dependabot[bot] Aug 2, 2024
4ad0c61
meta: bump github/codeql-action from 3.25.11 to 3.25.15 (#6961)
dependabot[bot] Aug 2, 2024
c0bd8d9
meta: bump step-security/harden-runner from 2.8.1 to 2.9.0 (#6963)
dependabot[bot] Aug 2, 2024
cf3f89d
meta: bump chromaui/action from 11.5.0 to 11.7.0 (#6962)
dependabot[bot] Aug 2, 2024
678ae73
meta: bump ossf/scorecard-action from 2.3.3 to 2.4.0 (#6957)
dependabot[bot] Aug 2, 2024
bf1450c
meta: bump @testing-library/jest-dom from 6.4.6 to 6.4.8 in the testi…
dependabot[bot] Aug 2, 2024
1435492
meta: bump @heroicons/react from 2.1.4 to 2.1.5 (#6971)
dependabot[bot] Aug 2, 2024
4196959
meta: bump postcss from 8.4.39 to 8.4.40 (#6972)
dependabot[bot] Aug 2, 2024
99556b4
meta: bump lint-staged from 15.2.5 to 15.2.7 (#6973)
dependabot[bot] Aug 2, 2024
1616586
meta: bump vfile from 6.0.1 to 6.0.2 (#6970)
dependabot[bot] Aug 2, 2024
1de8a8a
meta: bump the storybook group with 6 updates (#6965)
dependabot[bot] Aug 2, 2024
6debb9a
meta: bump tailwindcss from 3.4.4 to 3.4.7 in the tailwind group (#6969)
dependabot[bot] Aug 2, 2024
15bb10b
meta: bump remark-preset-lint-node from 5.0.2 to 5.1.2 in the mdx gro…
dependabot[bot] Aug 2, 2024
91ea27d
meta: bump the next-js group with 2 updates (#6967)
dependabot[bot] Aug 2, 2024
87fd625
feat:improve-fnm-download-instructions (#6946)
Sujitale07 Aug 4, 2024
1ce019d
Blog: v22.6.0 release post (#6980)
RafaelGSS Aug 6, 2024
1606239
chore: update nvm to v0.40.0 (#6983)
RedYetiDev Aug 9, 2024
0d30aa4
NODE_ENV is not part of Node.js core and an antipattern (#6986)
mcollina Aug 15, 2024
1addb08
Changed 10E7 to numeric for better readability (#6990)
sachin-vs Aug 18, 2024
25b2206
[automated]: crowdin sync (#6988)
nodejs-crowdin Aug 18, 2024
9af1dcb
feat: Add alternates languages to sitemap (#6977)
Baccega Aug 19, 2024
8def452
docs: Fix tense (#6995)
adeleke5140 Aug 20, 2024
d434035
Blog: v20.17.0 release post (#6996)
marco-ippolito Aug 21, 2024
08c1ac7
fix: missing links from release (#6997)
marco-ippolito Aug 21, 2024
960a3a8
[automated]: crowdin sync - enables Ukrainian (#6993)
nodejs-crowdin Aug 22, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
4 changes: 4 additions & 0 deletions .cz.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{
"path": "./node_modules/cz-conventional-changelog",
"disableSubjectLowerCase": true
}
14 changes: 1 addition & 13 deletions .eslintignore
Original file line number Diff line number Diff line change
@@ -1,17 +1,5 @@
# Node.js
node_modules

# Next.js & Vercel Directories
.next
.turbo
.swc
build

# We don't want to lint/prettify the Coverage Results
coverage
junit.xml

# We shouldn't lint statically generated Storybook files
storybook-static

# This file naturally might break conventional rules
global.d.ts
20 changes: 6 additions & 14 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ jobs:

steps:
- name: Harden Runner
uses: step-security/harden-runner@f086349bfa2bd1361f7909c78558e816508cdc10 # v2.8.0
uses: step-security/harden-runner@0d381219ddf674d61a7572ddd19d7941e271515c # v2.9.0
with:
egress-policy: audit

Expand All @@ -65,18 +65,10 @@ jobs:
run: echo C:\Program Files\Git\usr\bin>>"%GITHUB_PATH%"

- name: Git Checkout
uses: actions/checkout@a5ac7e51b41094c92402da3b24376905380afc29 # v4.1.6
uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
with:
# Since we checkout the HEAD of the current Branch, if the Pull Request comes from a Fork
# we want to clone the fork's repository instead of the base repository
# this allows us to have the correct history tree of the perspective of the Pull Request's branch
# If the Workflow is running on `merge_group` or `push` events it fallsback to the base repository
repository: ${{ github.event.pull_request.head.repo.full_name || github.repository }}
# We checkout the branch itself instead of a specific SHA (Commit) as we want to ensure that this Workflow
# is always running with the latest `ref` (changes) of the Pull Request's branch
# If the Workflow is running on `merge_group` or `push` events it fallsback to `github.ref` which will often be `main`
# or the merge_group `ref`
ref: ${{ github.event.pull_request.head.ref || github.ref }}
# Provides the Pull Request commit SHA or the GitHub merge group ref
ref: ${{ github.event.pull_request.head.sha || github.ref }}
# We only need to fetch the last commit from the head_ref
# since we're not using the `--filter` operation from turborepo
# We don't use the `--filter` as we always want to force builds regardless of having changes or not
Expand All @@ -85,7 +77,7 @@ jobs:
fetch-depth: 1

- name: Set up Node.js
uses: actions/setup-node@60edb5dd545a775178f52524783378180af0d1f8 # v4.0.2
uses: actions/setup-node@1e60f620b9541d16bece96c5465dc8ee9832be0b # v4.0.3
with:
# We want to ensure that the Node.js version running here respects our supported versions
node-version-file: '.nvmrc'
Expand Down Expand Up @@ -136,4 +128,4 @@ jobs:
(matrix.os == 'ubuntu-latest') &&
((github.event_name == 'push') || (github.event_name == 'pull_request_target'))
run: |
npm run sync-orama
cd apps/site && npm run sync-orama
10 changes: 5 additions & 5 deletions .github/workflows/codeql.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,16 +41,16 @@ jobs:

steps:
- name: Harden Runner
uses: step-security/harden-runner@f086349bfa2bd1361f7909c78558e816508cdc10 # v2.8.0
uses: step-security/harden-runner@0d381219ddf674d61a7572ddd19d7941e271515c # v2.9.0
with:
egress-policy: audit

- name: Checkout repository
uses: actions/checkout@a5ac7e51b41094c92402da3b24376905380afc29 # v4.1.6
uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7

# Initializes the CodeQL tools for scanning.
- name: Initialize CodeQL
uses: github/codeql-action/init@f079b8493333aace61c81488f8bd40919487bd9f # v3.25.7
uses: github/codeql-action/init@afb54ba388a7dca6ecae48f608c4ff05ff4cc77a # v3.25.15
with:
languages: ${{ matrix.language }}
# If you wish to specify custom queries, you can do so here or in a config file.
Expand All @@ -60,7 +60,7 @@ jobs:
# Autobuild attempts to build any compiled languages (C/C++, C#, or Java).
# If this step fails, then you should remove it and run the build manually (see below)
- name: Autobuild
uses: github/codeql-action/autobuild@f079b8493333aace61c81488f8bd40919487bd9f # v3.25.7
uses: github/codeql-action/autobuild@afb54ba388a7dca6ecae48f608c4ff05ff4cc77a # v3.25.15

# ℹ️ Command-line programs to run using the OS shell.
# 📚 See https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#jobsjob_idstepsrun
Expand All @@ -73,6 +73,6 @@ jobs:
# ./location_of_script_within_repo/buildscript.sh

- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@f079b8493333aace61c81488f8bd40919487bd9f # v3.25.7
uses: github/codeql-action/analyze@afb54ba388a7dca6ecae48f608c4ff05ff4cc77a # v3.25.15
with:
category: '/language:${{matrix.language}}'
6 changes: 3 additions & 3 deletions .github/workflows/dependency-review.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,12 +21,12 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Harden Runner
uses: step-security/harden-runner@f086349bfa2bd1361f7909c78558e816508cdc10 # v2.8.0
uses: step-security/harden-runner@0d381219ddf674d61a7572ddd19d7941e271515c # v2.9.0
with:
egress-policy: audit

- name: Git Checkout
uses: actions/checkout@a5ac7e51b41094c92402da3b24376905380afc29 # v4.1.6
uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7

- name: Review Dependencies
uses: actions/dependency-review-action@0c155c5e8556a497adf53f2c18edabf945ed8e70 # v4.3.2
uses: actions/dependency-review-action@5a2ce3f5b92ee19cbb1541a4984c76d921601d7c # v4.3.4
20 changes: 6 additions & 14 deletions .github/workflows/lighthouse.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,23 +38,15 @@ jobs:

steps:
- name: Harden Runner
uses: step-security/harden-runner@f086349bfa2bd1361f7909c78558e816508cdc10 # v2.8.0
uses: step-security/harden-runner@0d381219ddf674d61a7572ddd19d7941e271515c # v2.9.0
with:
egress-policy: audit

- name: Git Checkout
uses: actions/checkout@a5ac7e51b41094c92402da3b24376905380afc29 # v4.1.6
uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
with:
# Since we checkout the HEAD of the current Branch, if the Pull Request comes from a Fork
# we want to clone the fork's repository instead of the base repository
# this allows us to have the correct history tree of the perspective of the Pull Request's branch
# If the Workflow is running on `merge_group` or `push` events it fallsback to the base repository
repository: ${{ github.event.pull_request.head.repo.full_name || github.repository }}
# We checkout the branch itself instead of a specific SHA (Commit) as we want to ensure that this Workflow
# is always running with the latest `ref` (changes) of the Pull Request's branch
# If the Workflow is running on `merge_group` or `push` events it fallsback to `github.ref` which will often be `main`
# or the merge_group `ref`
ref: ${{ github.event.pull_request.head.ref || github.ref }}
# Provides the Pull Request commit SHA or the GitHub merge group ref
ref: ${{ github.event.pull_request.head.sha || github.ref }}

- name: Add Comment to PR
# Signal that a lighthouse run is about to start
Expand All @@ -66,7 +58,7 @@ jobs:
comment_tag: 'lighthouse_audit'

- name: Capture Vercel Preview
uses: patrickedqvist/wait-for-vercel-preview@dca4940010f36d2d44caa487087a09b57939b24a # v1.3.1
uses: patrickedqvist/wait-for-vercel-preview@06c79330064b0e6ef7a2574603b62d3c98789125 # v1.3.2
id: vercel_preview_url
with:
token: ${{ secrets.GITHUB_TOKEN }}
Expand Down Expand Up @@ -106,7 +98,7 @@ jobs:
# Run as a separate file so we do not have to inline all of our formatting logic.
# See https://github.com/actions/github-script#run-a-separate-file for more info.
script: |
const { formatLighthouseResults } = await import('${{github.workspace}}/scripts/lighthouse/index.mjs')
const { formatLighthouseResults } = await import('${{github.workspace}}/apps/site/scripts/lighthouse/index.mjs')
await formatLighthouseResults({core})

- name: Add Comment to PR
Expand Down
53 changes: 17 additions & 36 deletions .github/workflows/lint-and-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,17 +37,16 @@ jobs:

steps:
- name: Harden Runner
uses: step-security/harden-runner@f086349bfa2bd1361f7909c78558e816508cdc10 # v2.8.0
uses: step-security/harden-runner@0d381219ddf674d61a7572ddd19d7941e271515c # v2.9.0
with:
egress-policy: audit

- name: Provide Turborepo Arguments
# This step is responsible for providing a reusable string that can be used within other steps and jobs
# that use the `turbo` cli command as a way of easily providing shared arguments to the `turbo` command
id: turborepo_arguments
# See https://turbo.build/repo/docs/reference/command-line-reference/run#--cache-dir
# See https://turbo.build/repo/docs/reference/command-line-reference/run#--force
run: echo "turbo_args=--force=true --cache-dir=.turbo/cache" >> "$GITHUB_OUTPUT"
run: echo "turbo_args=--force=true" >> "$GITHUB_OUTPUT"

lint:
# This Job should run either on `merge_groups` or `push` events
Expand All @@ -66,23 +65,15 @@ jobs:

steps:
- name: Harden Runner
uses: step-security/harden-runner@f086349bfa2bd1361f7909c78558e816508cdc10 # v2.8.0
uses: step-security/harden-runner@0d381219ddf674d61a7572ddd19d7941e271515c # v2.9.0
with:
egress-policy: audit

- name: Git Checkout
uses: actions/checkout@a5ac7e51b41094c92402da3b24376905380afc29 # v4.1.6
uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
with:
# Since we checkout the HEAD of the current Branch, if the Pull Request comes from a Fork
# we want to clone the fork's repository instead of the base repository
# this allows us to have the correct history tree of the perspective of the Pull Request's branch
# If the Workflow is running on `merge_group` or `push` events it fallsback to the base repository
repository: ${{ github.event.pull_request.head.repo.full_name || github.repository }}
# We checkout the branch itself instead of a specific SHA (Commit) as we want to ensure that this Workflow
# is always running with the latest `ref` (changes) of the Pull Request's branch
# If the Workflow is running on `merge_group` or `push` events it fallsback to `github.ref` which will often be `main`
# or the merge_group `ref`
ref: ${{ github.event.pull_request.head.ref || github.ref }}
# Provides the Pull Request commit SHA or the GitHub merge group ref
ref: ${{ github.event.pull_request.head.sha || github.ref }}

- name: Restore Lint Cache
uses: actions/cache/restore@0c45773b623bea8c8e75f6c82b208c3cf94ea4f9 # v4.0.2
Expand All @@ -105,7 +96,7 @@ jobs:
cache-lint-

- name: Set up Node.js
uses: actions/setup-node@60edb5dd545a775178f52524783378180af0d1f8 # v4.0.2
uses: actions/setup-node@1e60f620b9541d16bece96c5465dc8ee9832be0b # v4.0.3
with:
# We want to ensure that the Node.js version running here respects our supported versions
node-version-file: '.nvmrc'
Expand All @@ -126,11 +117,7 @@ jobs:
github.event.pull_request.head.ref != 'chore/crowdin')
# We want to enforce that the actual `turbo@latest` package is used instead of a possible hijack from the user
# the `${{ needs.base.outputs.turbo_args }}` is a string substitution happening from the base job
run: npx --package=turbo@latest -- turbo lint:js lint:md lint:css prettier ${{ needs.base.outputs.turbo_args }}

- name: Run `tsc build`
# We want to ensure that the whole codebase is passing and successfully compiles with TypeScript
run: npx --package=typescript@latest -- tsc --build .
run: npx --package=turbo@latest -- turbo lint check-types prettier ${{ needs.base.outputs.turbo_args }}

- name: Save Lint Cache
# We only want to save caches on `push` events or `pull_request_target` events
Expand Down Expand Up @@ -174,29 +161,21 @@ jobs:

steps:
- name: Harden Runner
uses: step-security/harden-runner@f086349bfa2bd1361f7909c78558e816508cdc10 # v2.8.0
uses: step-security/harden-runner@0d381219ddf674d61a7572ddd19d7941e271515c # v2.9.0
with:
egress-policy: audit

- name: Git Checkout
uses: actions/checkout@a5ac7e51b41094c92402da3b24376905380afc29 # v4.1.6
uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
with:
# Since we checkout the HEAD of the current Branch, if the Pull Request comes from a Fork
# we want to clone the fork's repository instead of the base repository
# this allows us to have the correct history tree of the perspective of the Pull Request's branch
# If the Workflow is running on `merge_group` or `push` events it fallsback to the base repository
repository: ${{ github.event.pull_request.head.repo.full_name || github.repository }}
# We checkout the branch itself instead of a specific SHA (Commit) as we want to ensure that this Workflow
# is always running with the latest `ref` (changes) of the Pull Request's branch
# If the Workflow is running on `merge_group` or `push` events it fallsback to `github.ref` which will often be `main`
# or the merge_group `ref`
ref: ${{ github.event.pull_request.head.ref || github.ref }}
# Provides the Pull Request commit SHA or the GitHub merge group ref
ref: ${{ github.event.pull_request.head.sha || github.ref }}
# The Chromatic (@chromaui/action) Action requires a full history of the current branch in order to be able to compare
# previous changes and previous commits and determine which Storybooks should be tested against and what should be built
fetch-depth: 0

- name: Set up Node.js
uses: actions/setup-node@60edb5dd545a775178f52524783378180af0d1f8 # v4.0.2
uses: actions/setup-node@1e60f620b9541d16bece96c5465dc8ee9832be0b # v4.0.3
with:
# We want to ensure that the Node.js version running here respects our supported versions
node-version-file: '.nvmrc'
Expand Down Expand Up @@ -225,8 +204,9 @@ jobs:
startsWith(github.event.pull_request.head.ref, 'dependabot/') == false &&
github.event.pull_request.head.ref != 'chore/crowdin')
# sha reference has no stable git tag reference or URL. see https://github.com/chromaui/chromatic-cli/issues/797
uses: chromaui/action@5f6574e351eb055223ae8ea9e1a734d1d695ea9c
uses: chromaui/action@fdbe7756d4dbf493e2fbb822df73be7accd07e1c
with:
workingDir: apps/site
buildScriptName: storybook:build
projectToken: ${{ secrets.CHROMATIC_PROJECT_TOKEN }}
exitOnceUploaded: true
Expand All @@ -242,5 +222,6 @@ jobs:
uses: MishaKav/jest-coverage-comment@434e6d2d37116d23d812809b61d499639842fa3b # v1.0.26
with:
title: 'Unit Test Coverage Report'
junitxml-path: ./junit.xml
junitxml-path: ./apps/site/junit.xml
junitxml-title: Unit Test Report
coverage-summary-path: ./apps/site/coverage/coverage-summary.json
2 changes: 1 addition & 1 deletion .github/workflows/pull-request-label.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Harden Runner
uses: step-security/harden-runner@f086349bfa2bd1361f7909c78558e816508cdc10 # v2.8.0
uses: step-security/harden-runner@0d381219ddf674d61a7572ddd19d7941e271515c # v2.9.0
with:
egress-policy: audit

Expand Down
10 changes: 5 additions & 5 deletions .github/workflows/scorecard.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,17 +32,17 @@ jobs:

steps:
- name: Harden Runner
uses: step-security/harden-runner@f086349bfa2bd1361f7909c78558e816508cdc10 # v2.8.0
uses: step-security/harden-runner@0d381219ddf674d61a7572ddd19d7941e271515c # v2.9.0
with:
egress-policy: audit

- name: Git Checkout
uses: actions/checkout@a5ac7e51b41094c92402da3b24376905380afc29 # v4.1.6
uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
with:
persist-credentials: false

- name: Run Scorecard Analysis
uses: ossf/scorecard-action@dc50aa9510b46c811795eb24b2f1ba02a914e534 # v2.3.3
uses: ossf/scorecard-action@62b2cac7ed8198b15735ed49ab1e5cf35480ba46 # v2.4.0
with:
results_file: results.sarif
results_format: sarif
Expand All @@ -51,14 +51,14 @@ jobs:
# Upload the results as artifacts (optional). Commenting out will disable uploads of run results in SARIF
# format to the repository Actions tab.
- name: Upload Artifacts
uses: actions/upload-artifact@65462800fd760344b1a7b4382951275a0abb4808 # v4.3.3
uses: actions/upload-artifact@0b2256b8c012f0828dc542b3febcab082c67f72b # v4.3.4
with:
name: SARIF file
path: results.sarif
retention-days: 5

# Upload the results to GitHub's code scanning dashboard.
- name: Upload Scan Results
uses: github/codeql-action/upload-sarif@f079b8493333aace61c81488f8bd40919487bd9f # v3.25.7
uses: github/codeql-action/upload-sarif@afb54ba388a7dca6ecae48f608c4ff05ff4cc77a # v3.25.15
with:
sarif_file: results.sarif
Loading
Loading