Pin GH Actions to commit sha (#2265)

This commit is contained in:
Billy Tat
2026-03-26 13:00:23 -07:00
committed by GitHub
parent d2226322cf
commit 51bfd1f8f9
2 changed files with 7 additions and 7 deletions
+4 -4
View File
@@ -13,10 +13,10 @@ jobs:
name: Build Docusaurus name: Build Docusaurus
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
- uses: actions/checkout@v4 - uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4
with: with:
fetch-depth: 0 fetch-depth: 0
- uses: actions/setup-node@v4 - uses: actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020 # v4
with: with:
node-version: 18 node-version: 18
cache: yarn cache: yarn
@@ -29,7 +29,7 @@ jobs:
run: yarn build --no-minify run: yarn build --no-minify
- name: Upload Build Artifact - name: Upload Build Artifact
uses: actions/upload-pages-artifact@v3 uses: actions/upload-pages-artifact@56afc609e74202658d3ffba0e8f6dda462b719fa # v3
with: with:
path: build path: build
@@ -49,4 +49,4 @@ jobs:
steps: steps:
- name: Deploy to GitHub Pages - name: Deploy to GitHub Pages
id: deployment id: deployment
uses: actions/deploy-pages@v4 uses: actions/deploy-pages@d6db90164ac5ed86f2b6aed7e0febac5b3c0c03e # v4
+3 -3
View File
@@ -11,10 +11,10 @@ jobs:
name: Test deployment name: Test deployment
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
- uses: actions/checkout@v4 - uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4
with: with:
fetch-depth: 0 fetch-depth: 0
- uses: actions/setup-node@v4 - uses: actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020 # v4
with: with:
node-version: 18 node-version: 18
cache: yarn cache: yarn
@@ -28,4 +28,4 @@ jobs:
- name: Test build website - name: Test build website
env: env:
NODE_OPTIONS: "--max_old_space_size=10240" NODE_OPTIONS: "--max_old_space_size=10240"
run: yarn build --no-minify run: yarn build --no-minify