Skip to content

Commit 58bdf87

Browse files
authored
Merge branch 'main' into dependabot/npm_and_yarn/prettier-3.6.2
2 parents d1abe4a + 346f4d2 commit 58bdf87

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

51 files changed

+1732
-1721
lines changed

.github/actions/latest-kubo-tag/entrypoint.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,4 +14,4 @@ cd kubo
1414
git describe --tags "${LATEST_IPFS_TAG}"
1515

1616
echo "The latest Kubo tag is ${LATEST_IPFS_TAG}"
17-
echo "::set-output name=latest_tag::${LATEST_IPFS_TAG}"
17+
echo "latest_tag=${LATEST_IPFS_TAG}" >> $GITHUB_OUTPUT

.github/actions/update-with-latest-versions/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
FROM golang:1.24
1+
FROM golang:1.25
22

33
ENV DEBIAN_FRONTEND=noninteractive
44
RUN apt update && apt install -y jq && rm -rf /var/lib/apt/lists/*

.github/actions/update-with-latest-versions/entrypoint.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,4 +85,4 @@ git config --global user.name "${GITHUB_ACTOR}@users.noreply.github.com"
8585
git add -u
8686
git commit -m "Bumped documentation & installation docs."
8787
git push -fu origin ${BRANCH}
88-
echo "::set-output name=updated_branch::${BRANCH}"
88+
echo "updated_branch=${BRANCH}" >> $GITHUB_OUTPUT

.github/styles/pln-ignore.txt

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ atcute
1515
auditable
1616
audius
1717
auspinner
18+
Bacalhau
1819
bitswap
1920
bit[ss]wap
2021
blockchain
@@ -82,6 +83,7 @@ explainers
8283
fabien
8384
failovers
8485
filebase
86+
Filebase's
8587
filecoin
8688
filecorgi
8789
filesizes
@@ -230,6 +232,7 @@ runtime's
230232
sandboxed
231233
satoshi
232234
satoshi nakamoto
235+
SDKs
233236
serverless
234237
sharding
235238
snapshotted
@@ -240,6 +243,7 @@ someguy
240243
stackparse
241244
stdout
242245
storacha
246+
Storacha's
243247
storj
244248
subcommand
245249
substring

.github/workflows/action.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ jobs:
77
runs-on: ubuntu-latest
88
steps:
99
- id: checkout
10-
uses: actions/checkout@v4
10+
uses: actions/checkout@v5
1111
- id: link-check
1212
uses: gaurav-nelson/github-action-markdown-link-check@v1
1313
with:

.github/workflows/build.yml

Lines changed: 29 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1,46 +1,57 @@
1-
name: Build and Deploy to IPFS
1+
# Build workflow - runs for both PRs and main branch pushes
2+
# This workflow builds the website without access to secrets
3+
# For PRs: Runs on untrusted fork code safely (using pull_request event, not pull_request_target)
4+
# For main: Builds and uploads artifacts for deployment
5+
# Artifacts are passed to the deploy workflow which has access to secrets
6+
7+
name: Build
28

39
permissions:
410
contents: read
5-
pull-requests: write
6-
statuses: write
11+
712
on:
813
push:
914
branches:
1015
- main
11-
pull_request_target:
16+
pull_request:
1217
branches:
1318
- main
1419

20+
env:
21+
BUILD_PATH: 'docs/.vuepress/dist'
22+
23+
concurrency:
24+
group: ${{ github.workflow }}-${{ github.ref }}
25+
cancel-in-progress: true
1526

1627
jobs:
17-
build-and-deploy:
28+
build:
1829
runs-on: ubuntu-latest
19-
outputs: # This exposes the CID output of the action to the rest of the workflow
20-
cid: ${{ steps.deploy.outputs.cid }}
2130
steps:
2231
- name: Checkout code
23-
uses: actions/checkout@v4
32+
uses: actions/checkout@v5
2433
with:
25-
ref: ${{ github.event_name == 'pull_request_target' && github.event.pull_request.head.sha || github.sha }}
34+
# - For PRs: PR head commit
35+
# - For pushes: the pushed commit
36+
ref: ${{ github.event_name == 'pull_request' && github.event.pull_request.head.sha || github.sha }}
37+
2638

2739
- name: Setup Node.js
28-
uses: actions/setup-node@v4
40+
uses: actions/setup-node@v5
2941
with:
3042
node-version: '20'
3143
cache: 'npm'
3244

3345
- name: Install dependencies
34-
run: npm ci
46+
run: npm ci --prefer-offline --no-audit --progress=false
3547

3648
- name: Build project
3749
run: npm run docs:build
3850

39-
- uses: ipfs/ipfs-deploy-action@v1
40-
name: Deploy to IPFS
41-
id: deploy
51+
# Upload artifact for deploy workflow
52+
- name: Upload build artifact
53+
uses: actions/upload-artifact@v4
4254
with:
43-
path-to-deploy: docs/.vuepress/dist
44-
storacha-key: ${{ secrets.STORACHA_KEY }}
45-
storacha-proof: ${{ secrets.STORACHA_PROOF }}
46-
github-token: ${{ github.token }}
55+
name: docs-build-${{ github.run_id }}
56+
path: ${{ env.BUILD_PATH }}
57+
retention-days: 90

.github/workflows/close-empty-issue.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ jobs:
1111
name: Close empty issues and templates
1212
runs-on: ubuntu-latest
1313
steps:
14-
- uses: actions/checkout@v4
14+
- uses: actions/checkout@v5
1515
- name: Run empty issues closer action
1616
uses: rickstaa/empty-issues-closer-action@v1
1717
env:

.github/workflows/deploy.yml

Lines changed: 85 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,85 @@
1+
# Deploy workflow - triggered by workflow_run after successful build
2+
# This workflow has access to secrets but never executes untrusted code
3+
# It only downloads and deploys pre-built artifacts from the build workflow
4+
# Security: Fork code cannot access secrets as it only runs in build workflow
5+
# Deploys to IPFS for all branches and GitHub Pages for main branch only
6+
7+
name: Deploy
8+
9+
# Explicitly declare permissions
10+
permissions:
11+
contents: read
12+
pull-requests: write
13+
statuses: write
14+
15+
on:
16+
workflow_run:
17+
workflows: ["Build"]
18+
types: [completed]
19+
20+
env:
21+
BUILD_PATH: 'docs-build'
22+
23+
jobs:
24+
deploy-ipfs:
25+
if: github.event.workflow_run.conclusion == 'success'
26+
runs-on: ubuntu-latest
27+
outputs:
28+
cid: ${{ steps.deploy.outputs.cid }}
29+
steps:
30+
- name: Download build artifact
31+
uses: actions/download-artifact@v5
32+
with:
33+
name: docs-build-${{ github.event.workflow_run.id }}
34+
path: ${{ env.BUILD_PATH }}
35+
run-id: ${{ github.event.workflow_run.id }}
36+
github-token: ${{ github.token }}
37+
38+
- name: Debug PR context and SHA
39+
run: |
40+
echo "Event: ${{ github.event_name }}"
41+
echo "SHA: ${{ github.sha }}"
42+
echo "Head SHA: ${{ github.event.pull_request.head.sha }}"
43+
echo "workflow_run.head_sha: ${{ github.event.workflow_run.head_sha }}"
44+
45+
- name: Deploy to IPFS
46+
uses: ipfs/ipfs-deploy-action@v1
47+
id: deploy
48+
with:
49+
path-to-deploy: ${{ env.BUILD_PATH }}
50+
cluster-url: "/dnsaddr/ipfs-websites.collab.ipfscluster.io"
51+
cluster-user: ${{ secrets.CLUSTER_USER }}
52+
cluster-password: ${{ secrets.CLUSTER_PASSWORD }}
53+
cluster-pin-expire-in: ${{ github.event.workflow_run.head_branch != 'main' && '2160h' || '' }}
54+
#storacha-key: ${{ secrets.STORACHA_KEY }}
55+
#storacha-proof: ${{ secrets.STORACHA_PROOF }}
56+
github-token: ${{ github.token }}
57+
58+
deploy-gh-pages:
59+
if: |
60+
github.event.workflow_run.conclusion == 'success' &&
61+
github.event.workflow_run.head_branch == 'main'
62+
runs-on: ubuntu-latest
63+
permissions:
64+
pages: write
65+
id-token: write
66+
environment:
67+
name: github-pages
68+
url: ${{ steps.deployment.outputs.page_url }}
69+
steps:
70+
- name: Download build artifact
71+
uses: actions/download-artifact@v4
72+
with:
73+
name: docs-build-${{ github.event.workflow_run.id }}
74+
path: docs-build
75+
run-id: ${{ github.event.workflow_run.id }}
76+
github-token: ${{ github.token }}
77+
78+
- name: Upload Pages artifact
79+
uses: actions/upload-pages-artifact@v3
80+
with:
81+
path: docs-build
82+
83+
- name: Deploy to GitHub Pages
84+
id: deployment
85+
uses: actions/deploy-pages@v4

.github/workflows/reveiwdog-languagetool.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ jobs:
88
name: languagetool
99
runs-on: ubuntu-latest
1010
steps:
11-
- uses: actions/checkout@v4
11+
- uses: actions/checkout@v5
1212
- name: Check Spelling
1313
uses: reviewdog/action-languagetool@v1
1414
with:

.github/workflows/update-on-new-ipfs-tag.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ jobs:
1010
runs-on: ubuntu-latest
1111
steps:
1212
- name: Checkout ipfs-docs
13-
uses: actions/checkout@v4
13+
uses: actions/checkout@v5
1414
- name: Find latest kubo tag
1515
id: latest_ipfs
1616
uses: ./.github/actions/latest-kubo-tag

0 commit comments

Comments
 (0)