Skip to content

Commit b473964

Browse files
Merge pull request #16 from openfetch-js/pr/supply-chain-metadata
Pr/supply chain metadata
2 parents a5cfbba + 8b91977 commit b473964

3 files changed

Lines changed: 77 additions & 2 deletions

File tree

.github/SECURITY.md

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
# Security policy
2+
3+
The full threat model, SSRF/cache/retry guidance, and local security checks live in [`SECURITY.md`](../SECURITY.md) at the repository root (also shipped on npm).
4+
5+
## Reporting a vulnerability
6+
7+
Please do **not** open a public issue for undisclosed security defects.
8+
9+
- Prefer a [GitHub private security advisory](https://github.com/openfetch-js/OpenFetch/security/advisories/new) for this repository, or
10+
- Contact the maintainer privately if you cannot use GitHub advisories.
11+
12+
Include enough detail to reproduce or reason about impact. We aim to acknowledge valid reports and coordinate disclosure after a fix is available.

.github/workflows/publish.yml

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
# Publishes to npm using trusted publishing (OIDC). On npmjs.com, trusted publisher must
2+
# reference this repo: https://github.com/openfetch-js/OpenFetch and workflow file: publish.yml
3+
# Requires: npm CLI >= 11.5.1, Node >= 22.14 (see https://docs.npmjs.com/trusted-publishers )
4+
name: Publish to npm
5+
6+
on:
7+
push:
8+
tags:
9+
- 'v*'
10+
11+
permissions:
12+
contents: read
13+
id-token: write
14+
15+
jobs:
16+
publish:
17+
runs-on: ubuntu-latest
18+
steps:
19+
- uses: actions/checkout@v4
20+
21+
- uses: actions/setup-node@v4
22+
with:
23+
node-version: '22'
24+
registry-url: 'https://registry.npmjs.org'
25+
26+
- name: Upgrade npm for trusted publishing
27+
run: npm install -g npm@^11.5.1
28+
29+
- run: npm ci
30+
- run: npm test
31+
32+
# No NODE_AUTH_TOKEN: authentication is OIDC when trusted publishing is enabled.
33+
# Provenance is generated automatically for trusted publishing from GitHub Actions.
34+
- run: npm publish

package.json

Lines changed: 31 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,17 +41,46 @@
4141
"keywords": [
4242
"fetch",
4343
"http",
44+
"http-client",
45+
"https",
46+
"rest",
47+
"rest-client",
48+
"api-client",
4449
"middleware",
50+
"interceptors",
51+
"retry",
52+
"timeout",
53+
"cache",
54+
"typescript",
55+
"esm",
4556
"rsc",
4657
"react-server-components",
47-
"universal"
58+
"nextjs",
59+
"nodejs",
60+
"bun",
61+
"deno",
62+
"cloudflare-workers",
63+
"edge",
64+
"browser",
65+
"isomorphic",
66+
"universal",
67+
"zero-dependencies",
68+
"fluent",
69+
"abortcontroller",
70+
"axios-alternative",
71+
"ky-alternative",
72+
"openfetch"
4873
],
4974
"license": "MIT",
75+
"publishConfig": {
76+
"access": "public",
77+
"provenance": true
78+
},
5079
"repository": {
5180
"type": "git",
5281
"url": "git+https://github.com/openfetch-js/OpenFetch.git"
5382
},
54-
"homepage": "https://hamdymohamedak.github.io/openfetch-docs/",
83+
"homepage": "https://openfetch-js.github.io/openfetch-docs/",
5584
"bugs": {
5685
"url": "https://github.com/openfetch-js/OpenFetch/issues"
5786
},

0 commit comments

Comments
 (0)