Skip to content

Commit 1be11a1

Browse files
authored
Merge branch 'main' into dependabot/npm_and_yarn/elliptic-6.6.1
2 parents e445188 + a9caa84 commit 1be11a1

Some content is hidden

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

65 files changed

+2634
-2075
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: 35 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
atcute
21
aave
32
accessor
43
acls
@@ -11,18 +10,21 @@ arbol
1110
arbol's
1211
arbol('s)
1312
arg
13+
astro
14+
atcute
1415
auditable
1516
audius
16-
astro
1717
auspinner
18-
bit[ss]wap
18+
Bacalhau
1919
bitswap
20+
bit[ss]wap
2021
blockchain
2122
blockchains
2223
blockstore
2324
bool
2425
bool(ean)
2526
boolean
27+
Bootstrappers
2628
boxo
2729
browserify
2830
caddy
@@ -45,6 +47,7 @@ composable
4547
config
4648
counterparty
4749
coworking
50+
cpu
4851
cpus
4952
crowdsourcing
5053
crypto(currencies)
@@ -53,16 +56,21 @@ dapps
5356
data('s)
5457
datastore
5558
deduplicate
59+
Denylist
5660
dep
5761
deps
5862
deserialization
63+
deserialized
5964
devs
6065
dheeraj
6166
dht
6267
dhts
6368
dialable
69+
dialback
70+
discoverability
6471
dns('s)
6572
dnsaddr
73+
dnscontrol
6674
dnslink
6775
dotgraph
6876
dups
@@ -75,18 +83,21 @@ explainers
7583
fabien
7684
failovers
7785
filebase
86+
Filebase's
7887
filecoin
7988
filecorgi
8089
filesizes
8190
filestore
82-
flatf[ss]
8391
flatfs
92+
flatf[ss]
8493
fleek
8594
fqdns
8695
gasless
8796
geospatial
97+
gif
8898
git(hub)
8999
gnutella
100+
goroutine
90101
goroutines
91102
graphsync
92103
guis
@@ -128,21 +139,21 @@ lastalive
128139
lastbootstrap
129140
lastpeer
130141
leveldb
131-
libp2p
132142
libipld
143+
libp2p
133144
linux
134145
lookups
135146
loopback
136147
mainnet
137148
markdown(lint)
138149
markdownlint
139150
merkle
151+
merkleization
140152
merkleize
141-
merklizing
142-
merkleizing
143-
merkleizes
144153
merkleized
145-
merkleization
154+
merkleizes
155+
merkleizing
156+
merklizing
146157
metadata('s)
147158
metamask
148159
minimalistic
@@ -151,12 +162,13 @@ mojitos
151162
multiaddr
152163
multiaddr(ess)
153164
multiaddress
165+
multiaddresses
154166
multiaddrs
155167
multibase
156168
multicast
157169
multicodec
158-
multicodecs
159170
multicodec(s)
171+
multicodecs
160172
multiformats
161173
multihash
162174
multihashes
@@ -177,6 +189,7 @@ nfts
177189
nginx
178190
nodejs
179191
npm
192+
octodns
180193
packfile
181194
passthrough
182195
peergos
@@ -196,41 +209,48 @@ protobuf
196209
protocol labs
197210
protoschool
198211
proxied
199-
pub[ss]ub
200212
pubsub
213+
pub[ss]ub
201214
qm
202215
rabin
203216
rasterio
217+
reachability
204218
readmes
205219
referenceable
206220
repo
207221
repos
222+
reprovide
208223
reprovider
209224
reproviding
210225
requesters
211226
retrievability
212227
roadmaps
228+
routable
229+
rsa
213230
runtime
214231
runtime's
215-
rsa
216232
sandboxed
217233
satoshi
218234
satoshi nakamoto
235+
SDKs
219236
serverless
220237
sharding
221238
snapshotted
222239
sneakernet
223240
sneakernets
241+
Someguy
242+
someguy
224243
stackparse
225244
stdout
226-
storj
227245
storacha
228-
Someguy
246+
Storacha's
247+
storj
229248
subcommand
230249
substring
231250
sys
232251
systemd
233252
sztandera
253+
takedown
234254
testground
235255
testnet
236256
toolkits
@@ -268,4 +288,5 @@ whyrusleeping
268288
wifi
269289
ws
270290
wss
291+
Yamux
271292
youtube

.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: 32 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,41 +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
1116
pull_request:
17+
branches:
18+
- main
19+
20+
env:
21+
BUILD_PATH: 'docs/.vuepress/dist'
22+
23+
concurrency:
24+
group: ${{ github.workflow }}-${{ github.ref }}
25+
cancel-in-progress: true
1226

1327
jobs:
14-
build-and-deploy:
28+
build:
1529
runs-on: ubuntu-latest
16-
outputs: # This exposes the CID output of the action to the rest of the workflow
17-
cid: ${{ steps.deploy.outputs.cid }}
1830
steps:
1931
- name: Checkout code
20-
uses: actions/checkout@v4
32+
uses: actions/checkout@v5
33+
with:
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+
2138

2239
- name: Setup Node.js
23-
uses: actions/setup-node@v4
40+
uses: actions/setup-node@v5
2441
with:
2542
node-version: '20'
2643
cache: 'npm'
2744

2845
- name: Install dependencies
29-
run: npm ci
46+
run: npm ci --prefer-offline --no-audit --progress=false
3047

3148
- name: Build project
3249
run: npm run docs:build
3350

34-
- uses: ipfs/ipfs-deploy-action@v1
35-
name: Deploy to IPFS
36-
id: deploy
51+
# Upload artifact for deploy workflow
52+
- name: Upload build artifact
53+
uses: actions/upload-artifact@v4
3754
with:
38-
path-to-deploy: docs/.vuepress/dist
39-
storacha-key: ${{ secrets.STORACHA_KEY }}
40-
storacha-proof: ${{ secrets.STORACHA_PROOF }}
41-
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

0 commit comments

Comments
 (0)